perf inject: Remove more aux-related stuff when processing instruction traces
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 25 Sep 2015 13:15:54 +0000 (16:15 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Sep 2015 20:17:15 +0000 (17:17 -0300)
commit73117308f953afb60a1383725b7d5372feeb2433
tree979b258524e26a5cf2acdf8991f0b9b75b6da14c
parent4768230ad57d4e4fc6d36c44e98e0062c89b0dc0
perf inject: Remove more aux-related stuff when processing instruction traces

perf inject can process instruction traces (using the --itrace option)
which removes aux-related events and replaces them with the requested
synthesized events.

However there are still some leftovers, namely PERF_RECORD_ITRACE_START
events and the original evsel (selected event) e.g. intel_pt//

For the sake of completeness, remove them too.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1443186956-18718-24-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/builtin-inject.c