perf scripting python: Shorten function signatures
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: b7fff6b5f977115be1757f18b1aca928803b1e17 Gitweb: http://git.kernel.org/tip/b7fff6b5f977115be1757f18b1aca928803b1e17 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 19 Dec 2013 16:34:52 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Thu, 19 Dec 2013 16:34:52 -0300
perf scripting python: 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]>
--- .../util/scripting-engines/trace-event-python.c | 26 ++++++++-------------- 1 file changed, 9 insertions(+), 17 deletions(-)
tools/perf/util/scripting-engines/trace-event-python.c +9 -17
@@ -231,13 +231,10 @@ static inline struct event_format *find_cache_event(struct perf_evsel *evsel)return event; } -static void python_process_tracepoint (union perf_event *perf_event -__maybe_unused , -struct perf_sample *sample, -struct perf_evsel *evsel, -struct machine *machine__maybe_unused , -struct thread *thread, -struct addr_location *al) +static void python_process_tracepoint (struct perf_sample *sample, +struct perf_evsel *evsel, +struct thread *thread, +struct addr_location *al) {PyObject *handler, *retval, *context, *t, *obj, *dict =NULL ;static char handler_name[256 ];
@@ -351,11 +348,8 @@ static void python_process_tracepoint(union perf_event *perf_eventPy_DECREF (t); } -static void python_process_general_event (union perf_event *perf_event -__maybe_unused , -struct perf_sample *sample, +static void python_process_general_event (struct perf_sample *sample,struct perf_evsel *evsel, -struct machine *machine__maybe_unused ,struct thread *thread,struct addr_location *al) {
@@ -411,22 +405,20 @@ exit:Py_DECREF (t); } -static void python_process_event (union perf_event *perf_event, +static void python_process_event (union perf_event *event__maybe_unused ,struct perf_sample *sample,struct perf_evsel *evsel, -struct machine *machine, +struct machine *machine__maybe_unused ,struct thread *thread,struct addr_location *al) {switch (evsel->attr.type) {case PERF_TYPE_TRACEPOINT : -python_process_tracepoint (perf_event, sample, evsel, - machine, thread, al); +python_process_tracepoint (sample, evsel, thread, al);break ;/* Reserve for future process_hw/sw/raw APIs */ default : -python_process_general_event (perf_event, sample, evsel, - machine, thread, al); +python_process_general_event (sample, evsel, thread, al); } }