Skip to content

Commit 69e6e41

Browse files
ahunter6acmel
authored andcommitted
perf script python: Rename call-graph-from-postgresql.py to call-graph-from-sql.py
Rename call-graph-from-postgresql.py to call-graph-from-sql.py in preparation for adding support to it for SQLite 3. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Link: http://lkml.kernel.org/r/1501749090-20357-5-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 564b952 commit 69e6e41

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎tools/perf/Documentation/intel-pt.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ in transaction, respectively.
106106
While it is possible to create scripts to analyze the data, an alternative
107107
approach is available to export the data to a sqlite or postgresql database.
108108
Refer to script export-to-sqlite.py or export-to-postgresql.py for more details,
109-
and to script call-graph-from-postgresql.py for an example of using the database.
109+
and to script call-graph-from-sql.py for an example of using the database.
110110

111111
There is also script intel-pt-events.py which provides an example of how to
112112
unpack the raw data for power events and PTWRITE.

tools/perf/scripts/python/call-graph-from-postgresql.py renamed to tools/perf/scripts/python/call-graph-from-sql.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python2
2-
# call-graph-from-postgresql.py: create call-graph from postgresql database
3-
# Copyright (c) 2014, Intel Corporation.
2+
# call-graph-from-sql.py: create call-graph from postgresql database
3+
# Copyright (c) 2014-2017, Intel Corporation.
44
#
55
# This program is free software; you can redistribute it and/or modify it
66
# under the terms and conditions of the GNU General Public License,
@@ -17,12 +17,12 @@
1717
# Following on from the example in the export-to-postgresql.py script, a
1818
# call-graph can be displayed for the pt_example database like this:
1919
#
20-
# python tools/perf/scripts/python/call-graph-from-postgresql.py pt_example
20+
# python tools/perf/scripts/python/call-graph-from-sql.py pt_example
2121
#
2222
# Note this script supports connecting to remote databases by setting hostname,
2323
# port, username, password, and dbname e.g.
2424
#
25-
# python tools/perf/scripts/python/call-graph-from-postgresql.py "hostname=myhost username=myuser password=mypassword dbname=pt_example"
25+
# python tools/perf/scripts/python/call-graph-from-sql.py "hostname=myhost username=myuser password=mypassword dbname=pt_example"
2626
#
2727
# The result is a GUI window with a tree representing a context-sensitive
2828
# call-graph. Expanding a couple of levels of the tree and adjusting column
@@ -291,7 +291,7 @@ def __init__(self, db, dbname, parent=None):
291291

292292
if __name__ == '__main__':
293293
if (len(sys.argv) < 2):
294-
print >> sys.stderr, "Usage is: call-graph-from-postgresql.py <database name>"
294+
print >> sys.stderr, "Usage is: call-graph-from-sql.py <database name>"
295295
raise Exception("Too few arguments")
296296

297297
dbname = sys.argv[1]

‎tools/perf/scripts/python/export-to-postgresql.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# pt_example=# \q
6060
#
6161
# An example of using the database is provided by the script
62-
# call-graph-from-postgresql.py. Refer to that script for details.
62+
# call-graph-from-sql.py. Refer to that script for details.
6363
#
6464
# Tables:
6565
#

0 commit comments

Comments
 (0)