diff options
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-perl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c index 52580d09d75c..d28001016fb5 100644 --- a/tools/perf/util/scripting-engines/trace-event-perl.c +++ b/tools/perf/util/scripting-engines/trace-event-perl.c | |||
@@ -261,7 +261,7 @@ static void perl_process_tracepoint(union perf_event *perf_event __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 __unused, | 263 | struct machine *machine __unused, |
264 | struct thread *thread) | 264 | struct addr_location *al) |
265 | { | 265 | { |
266 | struct format_field *field; | 266 | struct format_field *field; |
267 | static char handler[256]; | 267 | static char handler[256]; |
@@ -272,6 +272,7 @@ static void perl_process_tracepoint(union perf_event *perf_event __unused, | |||
272 | int cpu = sample->cpu; | 272 | int cpu = sample->cpu; |
273 | void *data = sample->raw_data; | 273 | void *data = sample->raw_data; |
274 | unsigned long long nsecs = sample->time; | 274 | unsigned long long nsecs = sample->time; |
275 | struct thread *thread = al->thread; | ||
275 | char *comm = thread->comm; | 276 | char *comm = thread->comm; |
276 | 277 | ||
277 | dSP; | 278 | dSP; |
@@ -349,7 +350,7 @@ static void perl_process_event_generic(union perf_event *event, | |||
349 | struct perf_sample *sample, | 350 | struct perf_sample *sample, |
350 | struct perf_evsel *evsel, | 351 | struct perf_evsel *evsel, |
351 | struct machine *machine __unused, | 352 | struct machine *machine __unused, |
352 | struct thread *thread __unused) | 353 | struct addr_location *al __unused) |
353 | { | 354 | { |
354 | dSP; | 355 | dSP; |
355 | 356 | ||
@@ -375,10 +376,10 @@ static void perl_process_event(union perf_event *event, | |||
375 | struct perf_sample *sample, | 376 | struct perf_sample *sample, |
376 | struct perf_evsel *evsel, | 377 | struct perf_evsel *evsel, |
377 | struct machine *machine, | 378 | struct machine *machine, |
378 | struct thread *thread) | 379 | struct addr_location *al) |
379 | { | 380 | { |
380 | perl_process_tracepoint(event, sample, evsel, machine, thread); | 381 | perl_process_tracepoint(event, sample, evsel, machine, al); |
381 | perl_process_event_generic(event, sample, evsel, machine, thread); | 382 | perl_process_event_generic(event, sample, evsel, machine, al); |
382 | } | 383 | } |
383 | 384 | ||
384 | static void run_start_sub(void) | 385 | static void run_start_sub(void) |