diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-09-13 11:11:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-09-13 11:11:19 -0400 |
commit | be267be8b191d5fac9f65a29e047470f364315eb (patch) | |
tree | 80cdb3f7c1d53fc6209fac2d57ff9a4052e2750e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | d5cb2aef4fda355fbafe8db4f425b73ea94d2019 (diff) | |
parent | 9ec3f4e437ede2f3b5087d412abe16a0219b3b99 (diff) |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
* Remove die()/exit() calls from several tools.
* Add missing perf_regs.h file to MANIFEST
* Clean up and improve 'perf sched' performance by elliminating lots of
needless calls to libtraceevent.
* More patches to make perf build on Android, from Irina Tirdea
* Resolve vdso callchains, from Jiri Olsa
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index afba09729183..730c6630cba5 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -221,10 +221,11 @@ static inline struct event_format *find_cache_event(struct perf_evsel *evsel) | |||
221 | return event; | 221 | return event; |
222 | } | 222 | } |
223 | 223 | ||
224 | static void python_process_tracepoint(union perf_event *perf_event __unused, | 224 | static void python_process_tracepoint(union perf_event *perf_event |
225 | __maybe_unused, | ||
225 | struct perf_sample *sample, | 226 | struct perf_sample *sample, |
226 | struct perf_evsel *evsel, | 227 | struct perf_evsel *evsel, |
227 | struct machine *machine __unused, | 228 | struct machine *machine __maybe_unused, |
228 | struct addr_location *al) | 229 | struct addr_location *al) |
229 | { | 230 | { |
230 | PyObject *handler, *retval, *context, *t, *obj, *dict = NULL; | 231 | PyObject *handler, *retval, *context, *t, *obj, *dict = NULL; |
@@ -339,10 +340,11 @@ static void python_process_tracepoint(union perf_event *perf_event __unused, | |||
339 | Py_DECREF(t); | 340 | Py_DECREF(t); |
340 | } | 341 | } |
341 | 342 | ||
342 | static void python_process_general_event(union perf_event *perf_event __unused, | 343 | static void python_process_general_event(union perf_event *perf_event |
344 | __maybe_unused, | ||
343 | struct perf_sample *sample, | 345 | struct perf_sample *sample, |
344 | struct perf_evsel *evsel, | 346 | struct perf_evsel *evsel, |
345 | struct machine *machine __unused, | 347 | struct machine *machine __maybe_unused, |
346 | struct addr_location *al) | 348 | struct addr_location *al) |
347 | { | 349 | { |
348 | PyObject *handler, *retval, *t, *dict; | 350 | PyObject *handler, *retval, *t, *dict; |