perf tools: Pass whole attr to event selectors
Since commit 69aad6f1(perf tools: Introduce event selectors), only perf_event_attr::type and ::config are passed to event selector, which makes perf tool not work correctly. For example, PEBS does not work because perf_event_attr::precise_ip is not passed to the syscall. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <1294369869.20563.19.camel@minggr.sh.intel.com> Signed-off-by:Lin Ming <ming.m.lin@intel.com> Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-stat.c 1 addition, 2 deletionstools/perf/builtin-stat.c
- tools/perf/builtin-test.c 5 additions, 1 deletiontools/perf/builtin-test.c
- tools/perf/util/evsel.c 2 additions, 3 deletionstools/perf/util/evsel.c
- tools/perf/util/evsel.h 1 addition, 1 deletiontools/perf/util/evsel.h
- tools/perf/util/parse-events.c 10 additions, 3 deletionstools/perf/util/parse-events.c
Loading
Please register or sign in to comment