diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-10-30 10:09:48 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-11-03 16:11:59 -0500 |
commit | 758008b262f70be41104e4e33ba99181ac03775d (patch) | |
tree | a790cf772df84114319a29c0142e3cdaecb24f00 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 6a70307ddcd9999598c399d55dc44c07816a575f (diff) |
perf tools: Defer export of comms that were not 'set'
Tracing for a workload begins before the comm event is seen, which
results in the initial comm having a string of the form ":<pid>" (e.g.
":12345").
In order to export the correct string, defer the export until the new
script 'flush' callback.
Signed-off-by: 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: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1414678188-14946-8-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index cb1d9602f418..118bc62850a8 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -1030,7 +1030,9 @@ error: | |||
1030 | 1030 | ||
1031 | static int python_flush_script(void) | 1031 | static int python_flush_script(void) |
1032 | { | 1032 | { |
1033 | return 0; | 1033 | struct tables *tables = &tables_global; |
1034 | |||
1035 | return db_export__flush(&tables->dbe); | ||
1034 | } | 1036 | } |
1035 | 1037 | ||
1036 | /* | 1038 | /* |