diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2017-08-03 04:31:26 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-08-15 15:05:36 -0400 |
commit | c8a827285c33e7a19e81dfbff2740e1e67ca42df (patch) | |
tree | e9d46cd519976bd9a6d702657e71e5b5100bd2dc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2b728861a63a7ba6073a476244a83f575864273e (diff) |
perf scripts python: Fix missing call_path_id in export-to-postgresql script
The export does not work if only branches are exported because of a
missing column in the samples table. Fix by adding the missing
call_path_id.
Fixes: 3521f3bc9dae ("perf script: Update export-to-postgresql to support callchain export")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Link: http://lkml.kernel.org/r/1501749090-20357-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
-rw-r--r-- | tools/perf/scripts/python/export-to-postgresql.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/export-to-postgresql.py b/tools/perf/scripts/python/export-to-postgresql.py index 7656ff8aa066..f57811443beb 100644 --- a/tools/perf/scripts/python/export-to-postgresql.py +++ b/tools/perf/scripts/python/export-to-postgresql.py | |||
@@ -340,7 +340,8 @@ if branches: | |||
340 | 'to_sym_offset bigint,' | 340 | 'to_sym_offset bigint,' |
341 | 'to_ip bigint,' | 341 | 'to_ip bigint,' |
342 | 'branch_type integer,' | 342 | 'branch_type integer,' |
343 | 'in_tx boolean)') | 343 | 'in_tx boolean,' |
344 | 'call_path_id bigint)') | ||
344 | else: | 345 | else: |
345 | do_query(query, 'CREATE TABLE samples (' | 346 | do_query(query, 'CREATE TABLE samples (' |
346 | 'id bigint NOT NULL,' | 347 | 'id bigint NOT NULL,' |