perf tests: Forward the perf_sample in the dwarf unwind test
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: eb9f03231b7a27999abe22d3c5f71700338630c6 Gitweb: http://git.kernel.org/tip/eb9f03231b7a27999abe22d3c5f71700338630c6 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 22 Mar 2016 19:00:43 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 23 Mar 2016 12:03:07 -0300
perf tests: Forward the perf_sample in the dwarf unwind test
It _will_ be used, no sense in receiving it and nor fowarding it along.
Cc Adrian Hunter <[email protected]>
Cc Hemant Kumar <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Naveen N. Rao <[email protected]>
Cc Ravi Bangoria <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/tests/dwarf-unwind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/tests/dwarf-unwind.c +2 -2
@@ -20,10 +20,10 @@static int mmap_handler (struct perf_tool *tool__maybe_unused ,union perf_event *event, -struct perf_sample *sample__maybe_unused , +struct perf_sample *sample,struct machine *machine) { -return machine__process_mmap2_event (machine, event,NULL ); +return machine__process_mmap2_event (machine, event, sample); }static int init_live_machine (struct machine *machine)