aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
-rw-r--r--tools/perf/util/scripting-engines/trace-event-perl.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c
index d5e5969f6fea..b672ef0ae46d 100644
--- a/tools/perf/util/scripting-engines/trace-event-perl.c
+++ b/tools/perf/util/scripting-engines/trace-event-perl.c
@@ -257,12 +257,9 @@ static inline struct event_format *find_cache_event(struct perf_evsel *evsel)
257 return event; 257 return event;
258} 258}
259 259
260static void perl_process_tracepoint(union perf_event *perf_event __maybe_unused, 260static void perl_process_tracepoint(struct perf_sample *sample,
261 struct perf_sample *sample,
262 struct perf_evsel *evsel, 261 struct perf_evsel *evsel,
263 struct machine *machine __maybe_unused, 262 struct thread *thread)
264 struct thread *thread,
265 struct addr_location *al)
266{ 263{
267 struct format_field *field; 264 struct format_field *field;
268 static char handler[256]; 265 static char handler[256];
@@ -349,10 +346,7 @@ static void perl_process_tracepoint(union perf_event *perf_event __maybe_unused,
349 346
350static void perl_process_event_generic(union perf_event *event, 347static void perl_process_event_generic(union perf_event *event,
351 struct perf_sample *sample, 348 struct perf_sample *sample,
352 struct perf_evsel *evsel, 349 struct perf_evsel *evsel)
353 struct machine *machine __maybe_unused,
354 struct thread *thread __maybe_unused,
355 struct addr_location *al __maybe_unused)
356{ 350{
357 dSP; 351 dSP;
358 352
@@ -377,12 +371,12 @@ static void perl_process_event_generic(union perf_event *event,
377static void perl_process_event(union perf_event *event, 371static void perl_process_event(union perf_event *event,
378 struct perf_sample *sample, 372 struct perf_sample *sample,
379 struct perf_evsel *evsel, 373 struct perf_evsel *evsel,
380 struct machine *machine, 374 struct machine *machine __maybe_unused,
381 struct thread *thread, 375 struct thread *thread,
382 struct addr_location *al) 376 struct addr_location *al __maybe_unused)
383{ 377{
384 perl_process_tracepoint(event, sample, evsel, machine, thread, al); 378 perl_process_tracepoint(sample, evsel, thread);
385 perl_process_event_generic(event, sample, evsel, machine, thread, al); 379 perl_process_event_generic(event, sample, evsel);
386} 380}
387 381
388static void run_start_sub(void) 382static void run_start_sub(void)