Commit 031c2a00 authored by Adrian Hunter's avatar Adrian Hunter Committed by Arnaldo Carvalho de Melo

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: default avatarAdrian 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.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 341e73cb
...@@ -106,7 +106,7 @@ in transaction, respectively. ...@@ -106,7 +106,7 @@ in transaction, respectively.
While it is possible to create scripts to analyze the data, an alternative While it is possible to create scripts to analyze the data, an alternative
approach is available to export the data to a sqlite or postgresql database. approach is available to export the data to a sqlite or postgresql database.
Refer to script export-to-sqlite.py or export-to-postgresql.py for more details, Refer to script export-to-sqlite.py or export-to-postgresql.py for more details,
and to script call-graph-from-sql.py for an example of using the database. and to script exported-sql-viewer.py for an example of using the database.
There is also script intel-pt-events.py which provides an example of how to There is also script intel-pt-events.py which provides an example of how to
unpack the raw data for power events and PTWRITE. unpack the raw data for power events and PTWRITE.
......
...@@ -59,7 +59,7 @@ import datetime ...@@ -59,7 +59,7 @@ import datetime
# pt_example=# \q # pt_example=# \q
# #
# An example of using the database is provided by the script # An example of using the database is provided by the script
# call-graph-from-sql.py. Refer to that script for details. # exported-sql-viewer.py. Refer to that script for details.
# #
# Tables: # Tables:
# #
......
...@@ -40,7 +40,7 @@ import datetime ...@@ -40,7 +40,7 @@ import datetime
# sqlite> .quit # sqlite> .quit
# #
# An example of using the database is provided by the script # An example of using the database is provided by the script
# call-graph-from-sql.py. Refer to that script for details. # exported-sql-viewer.py. Refer to that script for details.
# #
# The database structure is practically the same as created by the script # The database structure is practically the same as created by the script
# export-to-postgresql.py. Refer to that script for details. A notable # export-to-postgresql.py. Refer to that script for details. A notable
......
...@@ -10,12 +10,12 @@ ...@@ -10,12 +10,12 @@
# Following on from the example in the export scripts, a # Following on from the example in the export scripts, a
# call-graph can be displayed for the pt_example database like this: # call-graph can be displayed for the pt_example database like this:
# #
# python tools/perf/scripts/python/call-graph-from-sql.py pt_example # python tools/perf/scripts/python/exported-sql-viewer.py pt_example
# #
# Note that for PostgreSQL, this script supports connecting to remote databases # Note that for PostgreSQL, this script supports connecting to remote databases
# by setting hostname, port, username, password, and dbname e.g. # by setting hostname, port, username, password, and dbname e.g.
# #
# python tools/perf/scripts/python/call-graph-from-sql.py "hostname=myhost username=myuser password=mypassword dbname=pt_example" # python tools/perf/scripts/python/exported-sql-viewer.py "hostname=myhost username=myuser password=mypassword dbname=pt_example"
# #
# The result is a GUI window with a tree representing a context-sensitive # The result is a GUI window with a tree representing a context-sensitive
# call-graph. Expanding a couple of levels of the tree and adjusting column # call-graph. Expanding a couple of levels of the tree and adjusting column
...@@ -365,7 +365,7 @@ class DBRef(): ...@@ -365,7 +365,7 @@ class DBRef():
def Main(): def Main():
if (len(sys.argv) < 2): if (len(sys.argv) < 2):
print >> sys.stderr, "Usage is: call-graph-from-sql.py <database name>" print >> sys.stderr, "Usage is: exported-sql-viewer.py <database name>"
raise Exception("Too few arguments") raise Exception("Too few arguments")
dbname = sys.argv[1] dbname = sys.argv[1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment