Skip to content

Commit c8a8272

Browse files
ahunter6acmel
authored andcommitted
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: 3521f3b ("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>
1 parent 2b72886 commit c8a8272

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tools/perf/scripts/python/export-to-postgresql.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ def do_query(q, s):
340340
'to_sym_offset bigint,'
341341
'to_ip bigint,'
342342
'branch_type integer,'
343-
'in_tx boolean)')
343+
'in_tx boolean,'
344+
'call_path_id bigint)')
344345
else:
345346
do_query(query, 'CREATE TABLE samples ('
346347
'id bigint NOT NULL,'

0 commit comments

Comments
 (0)