aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorIngo Molnar <[email protected]>2014-08-24 12:08:20 +0200
committerIngo Molnar <[email protected]>2014-08-24 16:47:23 +0200
commite21ded5ecc531a64d6fc0c1693285e890b4e9569 (patch)
treedd8436b2fdeacf12dec49cde06f9a9b50bf7c11a /tools/perf/util/scripting-engines/trace-event-python.c
parentaf924aa35129edf338ebc8da6a4eae08cf7cb297 (diff)
parent39ee533fcc7feb5b7938a3973a2bf5ad79bb595b (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: User visible changes: * Don't try to find DSOs in SYSV maps (Don Zickus) * Fallback to MAP__FUNCTION if daddr maps are NULL, i.e. addresses get looked upon more maps (Don Zickus) * Kernel fix to properly handle exited tasks, by returning POLLHUP values on perf event file descriptors. Tooling changes will come next, but were tested with this kernel fix. (Jiri Olsa) * Add +field argument support for --field option, so that one can add fields to the default list of fields to show, i.e. now one can just do: perf report --fields +pid And the pid will appear in addition to the default fields. (Jiri Olsa) Infrastructure changes: * More Intel PT prep stuff, including: - Add a 'perf test' for tracking with sched_switch - Add 'flush' callback to scripting API * hists browser (used in top and report) refactorings, getting rid of unused variables and reducing source code size by handling similar cases in a fewer functions (Namhyung Kim). * Explicitly include util/debug.h for powerpc, was being indirectly included, broke the build when some change made it stop being included. (Sukadev Bhattiprolu) Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
-rw-r--r--tools/perf/util/scripting-engines/trace-event-python.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c
index 26e5f14239ed..56ba07cce549 100644
--- a/tools/perf/util/scripting-engines/trace-event-python.c
+++ b/tools/perf/util/scripting-engines/trace-event-python.c
@@ -639,6 +639,11 @@ error:
return err;
}
+static int python_flush_script(void)
+{
+ return 0;
+}
+
/*
* Stop trace script
*/
@@ -823,6 +828,7 @@ static int python_generate_script(struct pevent *pevent, const char *outfile)
struct scripting_ops python_scripting_ops = {
.name = "Python",
.start_script = python_start_script,
+ .flush_script = python_flush_script,
.stop_script = python_stop_script,
.process_event = python_process_event,
.generate_script = python_generate_script,