perf scripting perl: Shorten function signatures
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 8853a1b76288d79aa1a6c5b8fe623d892aa9958b Gitweb: http://git.kernel.org/tip/8853a1b76288d79aa1a6c5b8fe623d892aa9958b Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 19 Dec 2013 16:39:31 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Thu, 19 Dec 2013 16:39:31 -0300
perf scripting perl: Shorten function signatures
Removing unused parameters.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/scripting-engines/trace-event-perl.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-)
tools/perf/util/scripting-engines/trace-event-perl.c +7 -13
@@ -257,12 +257,9 @@ static inline struct event_format *find_cache_event(struct perf_evsel *evsel)return event; } -static void perl_process_tracepoint (union perf_event *perf_event__maybe_unused , -struct perf_sample *sample, +static void perl_process_tracepoint (struct perf_sample *sample,struct perf_evsel *evsel, -struct machine *machine__maybe_unused , -struct thread *thread, -struct addr_location *al) +struct thread *thread) {struct format_field *field;static char handler[256 ];
@@ -349,10 +346,7 @@ static void perl_process_tracepoint(union perf_event *perf_event __maybe_unused,static void perl_process_event_generic (union perf_event *event,struct perf_sample *sample, -struct perf_evsel *evsel, -struct machine *machine__maybe_unused , -struct thread *thread__maybe_unused , -struct addr_location *al__maybe_unused ) +struct perf_evsel *evsel) { dSP;
@@ -377,12 +371,12 @@ static void perl_process_event_generic(union perf_event *event,static void perl_process_event (union perf_event *event,struct perf_sample *sample,struct perf_evsel *evsel, -struct machine *machine, +struct machine *machine__maybe_unused ,struct thread *thread, -struct addr_location *al) +struct addr_location *al__maybe_unused ) { -perl_process_tracepoint (event, sample, evsel, machine, thread, al); -perl_process_event_generic (event, sample, evsel, machine, thread, al); +perl_process_tracepoint (sample, evsel, thread); +perl_process_event_generic (event, sample, evsel); }static void run_start_sub (void )