aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2017-08-03 04:31:29 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-08-15 15:38:06 -0400
commit69e6e410f1a1e69cb656e8ebddaae0ba2138b235 (patch)
tree56c4a9d1437c7432e9f20c6ca932ace2d9dd6526 /tools/perf/scripts/python
parent564b9527d1ccf5d581275391e39ac4b1f29f0d08 (diff)
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>
Diffstat (limited to 'tools/perf/scripts/python')
-rw-r--r--tools/perf/scripts/python/call-graph-from-sql.py (renamed from tools/perf/scripts/python/call-graph-from-postgresql.py)10
-rw-r--r--tools/perf/scripts/python/export-to-postgresql.py2
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/scripts/python/call-graph-from-postgresql.py b/tools/perf/scripts/python/call-graph-from-sql.py
index ed9f7f3ccf22..f18406d3faf7 100644
--- a/tools/perf/scripts/python/call-graph-from-postgresql.py
+++ b/tools/perf/scripts/python/call-graph-from-sql.py
@@ -1,6 +1,6 @@
1#!/usr/bin/python2 1#!/usr/bin/python2
2# call-graph-from-postgresql.py: create call-graph from postgresql database 2# call-graph-from-sql.py: create call-graph from postgresql database
3# Copyright (c) 2014, Intel Corporation. 3# Copyright (c) 2014-2017, Intel Corporation.
4# 4#
5# This program is free software; you can redistribute it and/or modify it 5# This program is free software; you can redistribute it and/or modify it
6# under the terms and conditions of the GNU General Public License, 6# under the terms and conditions of the GNU General Public License,
@@ -17,12 +17,12 @@
17# Following on from the example in the export-to-postgresql.py script, a 17# Following on from the example in the export-to-postgresql.py script, a
18# call-graph can be displayed for the pt_example database like this: 18# call-graph can be displayed for the pt_example database like this:
19# 19#
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
21# 21#
22# Note this script supports connecting to remote databases by setting hostname, 22# Note this script supports connecting to remote databases by setting hostname,
23# port, username, password, and dbname e.g. 23# port, username, password, and dbname e.g.
24# 24#
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"
26# 26#
27# The result is a GUI window with a tree representing a context-sensitive 27# The result is a GUI window with a tree representing a context-sensitive
28# call-graph. Expanding a couple of levels of the tree and adjusting column 28# call-graph. Expanding a couple of levels of the tree and adjusting column
@@ -291,7 +291,7 @@ class MainWindow(QMainWindow):
291 291
292if __name__ == '__main__': 292if __name__ == '__main__':
293 if (len(sys.argv) < 2): 293 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>"
295 raise Exception("Too few arguments") 295 raise Exception("Too few arguments")
296 296
297 dbname = sys.argv[1] 297 dbname = sys.argv[1]
diff --git a/tools/perf/scripts/python/export-to-postgresql.py b/tools/perf/scripts/python/export-to-postgresql.py
index f57811443beb..efcaf6cac2eb 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-postgresql.py. Refer to that script for details. 62# call-graph-from-sql.py. Refer to that script for details.
63# 63#
64# Tables: 64# Tables:
65# 65#