Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Adrian Hunter and committed by
Arnaldo Carvalho de Melo
c8a82728 2b728861

+2 -1
+2 -1
tools/perf/scripts/python/export-to-postgresql.py
··· 340 340 'to_sym_offset bigint,' 341 341 'to_ip bigint,' 342 342 'branch_type integer,' 343 - 'in_tx boolean)') 343 + 'in_tx boolean,' 344 + 'call_path_id bigint)') 344 345 else: 345 346 do_query(query, 'CREATE TABLE samples (' 346 347 'id bigint NOT NULL,'