History

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.

Adrian Hunter committed 9 years ago

Commit c8a82721 parent 2b728861 file · +2 −1Browse files

Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all

Unified · Split

tools/perf/scripts/python/export-to-postgresql.py+2−1
@@ -340,7 +340,8 @@ if branches: · 339 unmodified lines
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,'