aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2013-12-19 14:39:31 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-12-19 14:39:31 -0500
commit8853a1b76288d79aa1a6c5b8fe623d892aa9958b (patch)
treeddbb1b82c404bf8bfa1adeb5c4806814889a8fe9 /tools/perf/util/scripting-engines/trace-event-perl.c
parentb7fff6b5f977115be1757f18b1aca928803b1e17 (diff)
perf scripting perl: Shorten function signatures
Removing unused parameters. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-b7r7o80o2xwwtlzgqxv50foe@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
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)