OSDN Git Service

perf inject: Add --strip option to strip out non-synthesized events
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 25 Sep 2015 13:15:55 +0000 (16:15 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Sep 2015 20:19:51 +0000 (17:19 -0300)
commitf56fb9864c501dc85ebe40af5bf925dd07d990c0
tree77e330e300b6311f663f695767eb872746868c2d
parent73117308f953afb60a1383725b7d5372feeb2433
perf inject: Add --strip option to strip out non-synthesized events

Add a new option --strip which is used with --itrace to strip out
non-synthesized events.  This results in a perf.data file that is
simpler for external tools to parse.  In particular, this can be used to
prepare a perf.data file for consumption by autofdo.

A subsequent patch makes a change to Intel PT also to enable use with
autofdo and gives an example of that use.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1443186956-18718-25-git-send-email-adrian.hunter@intel.com
[ Made it use perf_evlist__remove() + perf_evsel__delete() ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-inject.txt
tools/perf/builtin-inject.c