diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-10-08 11:43:00 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-10-08 11:43:00 -0400 |
commit | e3c55d406bd8df1a878546002c93db90c42be10c (patch) | |
tree | efb0ba2707c95fd7166cf1b76887c43c977e37dd /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 4d6e482675f13e33599fc3d18fc723959be0a9b6 (diff) | |
parent | d0e639c9e06d44e713170031fe05fb60ebe680af (diff) |
Merge tag 'v3.12-rc4' into next
Merge with mainline to bring in changes to input subsystem that were
committed through other trees.
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-perl.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c index eacec859f299..a85e4ae5f3ac 100644 --- a/tools/perf/util/scripting-engines/trace-event-perl.c +++ b/tools/perf/util/scripting-engines/trace-event-perl.c | |||
@@ -261,7 +261,8 @@ static void perl_process_tracepoint(union perf_event *perf_event __maybe_unused, | |||
261 | struct perf_sample *sample, | 261 | struct perf_sample *sample, |
262 | struct perf_evsel *evsel, | 262 | struct perf_evsel *evsel, |
263 | struct machine *machine __maybe_unused, | 263 | struct machine *machine __maybe_unused, |
264 | struct addr_location *al) | 264 | struct thread *thread, |
265 | struct addr_location *al) | ||
265 | { | 266 | { |
266 | struct format_field *field; | 267 | struct format_field *field; |
267 | static char handler[256]; | 268 | static char handler[256]; |
@@ -272,7 +273,6 @@ static void perl_process_tracepoint(union perf_event *perf_event __maybe_unused, | |||
272 | int cpu = sample->cpu; | 273 | int cpu = sample->cpu; |
273 | void *data = sample->raw_data; | 274 | void *data = sample->raw_data; |
274 | unsigned long long nsecs = sample->time; | 275 | unsigned long long nsecs = sample->time; |
275 | struct thread *thread = al->thread; | ||
276 | char *comm = thread->comm; | 276 | char *comm = thread->comm; |
277 | 277 | ||
278 | dSP; | 278 | dSP; |
@@ -351,7 +351,8 @@ static void perl_process_event_generic(union perf_event *event, | |||
351 | struct perf_sample *sample, | 351 | struct perf_sample *sample, |
352 | struct perf_evsel *evsel, | 352 | struct perf_evsel *evsel, |
353 | struct machine *machine __maybe_unused, | 353 | struct machine *machine __maybe_unused, |
354 | struct addr_location *al __maybe_unused) | 354 | struct thread *thread __maybe_unused, |
355 | struct addr_location *al __maybe_unused) | ||
355 | { | 356 | { |
356 | dSP; | 357 | dSP; |
357 | 358 | ||
@@ -377,10 +378,11 @@ static void perl_process_event(union perf_event *event, | |||
377 | struct perf_sample *sample, | 378 | struct perf_sample *sample, |
378 | struct perf_evsel *evsel, | 379 | struct perf_evsel *evsel, |
379 | struct machine *machine, | 380 | struct machine *machine, |
380 | struct addr_location *al) | 381 | struct thread *thread, |
382 | struct addr_location *al) | ||
381 | { | 383 | { |
382 | perl_process_tracepoint(event, sample, evsel, machine, al); | 384 | perl_process_tracepoint(event, sample, evsel, machine, thread, al); |
383 | perl_process_event_generic(event, sample, evsel, machine, al); | 385 | perl_process_event_generic(event, sample, evsel, machine, thread, al); |
384 | } | 386 | } |
385 | 387 | ||
386 | static void run_start_sub(void) | 388 | static void run_start_sub(void) |