diff options
author | Chris Phlipot <cphlipot0@gmail.com> | 2016-04-19 04:56:02 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-04-19 11:36:54 -0400 |
commit | d6632dd59b66c89724ef28e2723586d1429382aa (patch) | |
tree | ebfbc483d143fc34d3bec9017c9eb623667caaa2 | |
parent | e3815264a6c57147f8b5639536b1df3c98244642 (diff) |
perf script: Fix postgresql ubuntu install instructions
The current instructions for setting up an Ubuntu system for using the
export-to-postgresql.py script are incorrect.
The instructions in the script have been updated to work on newer
versions of ubuntu.
-Add missing dependencies to apt-get command:
python-pyside.qtsql, libqt4-sql-psql
-Add '-s' option to createuser command to force the user to be a
superuser since the command doesn't prompt as indicated in the
current instructions.
Tested on: Ubuntu 14.04, Ubuntu 16.04(beta)
Signed-off-by: Chris Phlipot <cphlipot0@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1461056164-14914-3-git-send-email-cphlipot0@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/scripts/python/export-to-postgresql.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/scripts/python/export-to-postgresql.py b/tools/perf/scripts/python/export-to-postgresql.py index 1b02cdc0cab6..6f0ca6873c17 100644 --- a/tools/perf/scripts/python/export-to-postgresql.py +++ b/tools/perf/scripts/python/export-to-postgresql.py | |||
@@ -34,10 +34,9 @@ import datetime | |||
34 | # | 34 | # |
35 | # ubuntu: | 35 | # ubuntu: |
36 | # | 36 | # |
37 | # $ sudo apt-get install postgresql | 37 | # $ sudo apt-get install postgresql python-pyside.qtsql libqt4-sql-psql |
38 | # $ sudo su - postgres | 38 | # $ sudo su - postgres |
39 | # $ createuser <your user id here> | 39 | # $ createuser -s <your user id here> |
40 | # Shall the new role be a superuser? (y/n) y | ||
41 | # | 40 | # |
42 | # An example of using this script with Intel PT: | 41 | # An example of using this script with Intel PT: |
43 | # | 42 | # |