Ilya Palachev <> writes:
> But why create_gcov does not inform about that (no branch events were
> found)? It creates empty gcov file and says nothing :(
> Moreover, in the mentioned README it is said that perf should also be
> executed with option -e BR_INST_RETIRED:TAKEN.

Standard perf doesn't have a full event list
This assumes a perf patched with the libpfm patch.

Also I suspect it really wants to use PEBS events, so pp should be added.

Alternatively you can use ocperf (from which is just a wrapper: record -e br_inst_retired.near_taken:pp -b ... 

or specify the event manually (depending on your CPU, like)

perf record -e
-b ...

BTW the biggest problem with autofdo currently is that it is
quite bitrotten and supports only several years old perf.
So all of this above will only work with old distributions,
unless you compile an old perf utility first.


-- -- Speaking for myself only

Reply via email to