perf tools: Pass whole attr to event selectors
authorLin Ming <ming.m.lin@intel.com>
Fri, 7 Jan 2011 03:11:09 +0000 (11:11 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 7 Jan 2011 03:44:36 +0000 (01:44 -0200)
commit23a2f3ab46596d9fd0b0e592d2101bea90970594
tree6b3d9e3755a3e71bb0e6b47e62b269e50b6cf37d
parent6b01f2c4f6188da50d8fe094e369a9c0390424ab
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>
tools/perf/builtin-stat.c
tools/perf/builtin-test.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h
tools/perf/util/parse-events.c