aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2018-10-01 02:28:46 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-10-23 13:26:44 -0400
commit031c2a004ba75a4f8f2a6d0a7ca6f2fe5912de22 (patch)
treee8795e96609efbad3bf294a4d4d270a47778f0b7
parent341e73cbd3019d350d1271803b45d84af88f2408 (diff)
perf scripts python: call-graph-from-sql.py: Rename to exported-sql-viewer.py
Additional reports will be added to the script so rename to reflect the more general purpose. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20181001062853.28285-13-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Documentation/intel-pt.txt2
-rw-r--r--tools/perf/scripts/python/export-to-postgresql.py2
-rw-r--r--tools/perf/scripts/python/export-to-sqlite.py2
-rwxr-xr-x[-rw-r--r--]tools/perf/scripts/python/exported-sql-viewer.py (renamed from tools/perf/scripts/python/call-graph-from-sql.py)6
4 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/Documentation/intel-pt.txt b/tools/perf/Documentation/intel-pt.txt
index 76971d2e4164..115eaacc455f 100644
--- a/tools/perf/Documentation/intel-pt.txt
+++ b/tools/perf/Documentation/intel-pt.txt
@@ -106,7 +106,7 @@ in transaction, respectively.
106While it is possible to create scripts to analyze the data, an alternative 106While it is possible to create scripts to analyze the data, an alternative
107approach is available to export the data to a sqlite or postgresql database. 107approach is available to export the data to a sqlite or postgresql database.
108Refer to script export-to-sqlite.py or export-to-postgresql.py for more details, 108Refer to script export-to-sqlite.py or export-to-postgresql.py for more details,
109and to script call-graph-from-sql.py for an example of using the database. 109and to script exported-sql-viewer.py for an example of using the database.
110 110
111There is also script intel-pt-events.py which provides an example of how to 111There is also script intel-pt-events.py which provides an example of how to
112unpack the raw data for power events and PTWRITE. 112unpack the raw data for power events and PTWRITE.
diff --git a/tools/perf/scripts/python/export-to-postgresql.py b/tools/perf/scripts/python/export-to-postgresql.py
index e46f51b17513..0564dd7377f2 100644
--- a/tools/perf/scripts/python/export-to-postgresql.py
+++ b/tools/perf/scripts/python/export-to-postgresql.py
@@ -59,7 +59,7 @@ import datetime
59# pt_example=# \q 59# pt_example=# \q
60# 60#
61# An example of using the database is provided by the script 61# An example of using the database is provided by the script
62# call-graph-from-sql.py. Refer to that script for details. 62# exported-sql-viewer.py. Refer to that script for details.
63# 63#
64# Tables: 64# Tables:
65# 65#
diff --git a/tools/perf/scripts/python/export-to-sqlite.py b/tools/perf/scripts/python/export-to-sqlite.py
index e4bb82c8aba9..245caf2643ed 100644
--- a/tools/perf/scripts/python/export-to-sqlite.py
+++ b/tools/perf/scripts/python/export-to-sqlite.py
@@ -40,7 +40,7 @@ import datetime
40# sqlite> .quit 40# sqlite> .quit
41# 41#
42# An example of using the database is provided by the script 42# An example of using the database is provided by the script
43# call-graph-from-sql.py. Refer to that script for details. 43# exported-sql-viewer.py. Refer to that script for details.
44# 44#
45# The database structure is practically the same as created by the script 45# The database structure is practically the same as created by the script
46# export-to-postgresql.py. Refer to that script for details. A notable 46# export-to-postgresql.py. Refer to that script for details. A notable
diff --git a/tools/perf/scripts/python/call-graph-from-sql.py b/tools/perf/scripts/python/exported-sql-viewer.py
index ee1085169a3e..03e7a1de7f31 100644..100755
--- a/tools/perf/scripts/python/call-graph-from-sql.py
+++ b/tools/perf/scripts/python/exported-sql-viewer.py
@@ -10,12 +10,12 @@
10# Following on from the example in the export scripts, a 10# Following on from the example in the export scripts, a
11# call-graph can be displayed for the pt_example database like this: 11# call-graph can be displayed for the pt_example database like this:
12# 12#
13# python tools/perf/scripts/python/call-graph-from-sql.py pt_example 13# python tools/perf/scripts/python/exported-sql-viewer.py pt_example
14# 14#
15# Note that for PostgreSQL, this script supports connecting to remote databases 15# Note that for PostgreSQL, this script supports connecting to remote databases
16# by setting hostname, port, username, password, and dbname e.g. 16# by setting hostname, port, username, password, and dbname e.g.
17# 17#
18# python tools/perf/scripts/python/call-graph-from-sql.py "hostname=myhost username=myuser password=mypassword dbname=pt_example" 18# python tools/perf/scripts/python/exported-sql-viewer.py "hostname=myhost username=myuser password=mypassword dbname=pt_example"
19# 19#
20# The result is a GUI window with a tree representing a context-sensitive 20# The result is a GUI window with a tree representing a context-sensitive
21# call-graph. Expanding a couple of levels of the tree and adjusting column 21# call-graph. Expanding a couple of levels of the tree and adjusting column
@@ -365,7 +365,7 @@ class DBRef():
365 365
366def Main(): 366def Main():
367 if (len(sys.argv) < 2): 367 if (len(sys.argv) < 2):
368 print >> sys.stderr, "Usage is: call-graph-from-sql.py <database name>" 368 print >> sys.stderr, "Usage is: exported-sql-viewer.py <database name>"
369 raise Exception("Too few arguments") 369 raise Exception("Too few arguments")
370 370
371 dbname = sys.argv[1] 371 dbname = sys.argv[1]