Skip to content

perf script: Add support for exporting to sqlite3

Adrian Hunter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf script: Fix missing call_path_id in export-to-postgresql scripttools/perf/scripts/python/export-to-postgresql.py+2 -10 replies
2/5perf script: Fix query in call-graph-from-postgresql.pytools/perf/scripts/python/call-graph-from-postgresql.py+1 -10 replies
3/5perf script: Add support for exporting to sqlite3tools/perf/Documentation/intel-pt.txt tools/perf/scripts/python/bin/export-to-sqlite-record tools/perf/scripts/python/bin/export-to-sqlite-report +1 more+491 -30 replies
4/5perf script: Rename call-graph-from-postgresql.py to call-graph-from-sql.pytools/perf/Documentation/intel-pt.txt tools/perf/scripts/python/call-graph-from-postgresql.py tools/perf/scripts/python/call-graph-from-sql.py +1 more+329 -3290 replies
5/5perf script: Add support for sqlite3 to call-graph-from-sql.pytools/perf/scripts/python/call-graph-from-sql.py+36 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] perf script: Add support for exporting to sqlite3

Hi

Here is a script for exporting to SQLite 3 the same data as the PostgreSQL export. The call-graph script is renamed and amended to work with both PostgreSQL and SQLite.

Adrian Hunter (5):
perf script: Fix missing call_path_id in export-to-postgresql script perf script: Fix query in call-graph-from-postgresql.py
perf script: Add support for exporting to sqlite3
perf script: Rename call-graph-from-postgresql.py to call-graph-from-sql.py perf script: Add support for sqlite3 to call-graph-from-sql.py

 tools/perf/Documentation/intel-pt.txt              |   6 +-
 .../scripts/python/bin/export-to-sqlite-record     |   8 +
 .../scripts/python/bin/export-to-sqlite-report     |  29 ++
 ...h-from-postgresql.py => call-graph-from-sql.py} |  70 ++--
 tools/perf/scripts/python/export-to-postgresql.py  |   5 +-
 tools/perf/scripts/python/export-to-sqlite.py      | 451 +++++++++++++++++++++
 6 files changed, 535 insertions(+), 34 deletions(-)
 create mode 100644 tools/perf/scripts/python/bin/export-to-sqlite-record
 create mode 100644 tools/perf/scripts/python/bin/export-to-sqlite-report
 rename tools/perf/scripts/python/{call-graph-from-postgresql.py => call-graph-from-sql.py} (87%)
 create mode 100644 tools/perf/scripts/python/export-to-sqlite.py

Regards
Adrian