diff options
| author | Tony Lindgren <tony@atomide.com> | 2018-11-08 12:32:24 -0500 |
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2018-11-08 12:32:24 -0500 |
| commit | 91e43395820baad80248987608216c35da9df65b (patch) | |
| tree | 29d41d1a036eb1abd6a60f16ad37aa578acd8159 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | eef3dc34a1e0b01d53328b88c25237bcc7323777 (diff) | |
| parent | cec83ff1241ec98113a19385ea9e9cfa9aa4125b (diff) | |
Merge branch 'fixes-dts' into omap-for-v4.20/fixes
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
| -rw-r--r-- | tools/perf/scripts/python/export-to-postgresql.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/export-to-postgresql.py b/tools/perf/scripts/python/export-to-postgresql.py index efcaf6cac2eb..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 | # |
| @@ -204,14 +204,23 @@ from ctypes import * | |||
| 204 | libpq = CDLL("libpq.so.5") | 204 | libpq = CDLL("libpq.so.5") |
| 205 | PQconnectdb = libpq.PQconnectdb | 205 | PQconnectdb = libpq.PQconnectdb |
| 206 | PQconnectdb.restype = c_void_p | 206 | PQconnectdb.restype = c_void_p |
| 207 | PQconnectdb.argtypes = [ c_char_p ] | ||
| 207 | PQfinish = libpq.PQfinish | 208 | PQfinish = libpq.PQfinish |
| 209 | PQfinish.argtypes = [ c_void_p ] | ||
| 208 | PQstatus = libpq.PQstatus | 210 | PQstatus = libpq.PQstatus |
| 211 | PQstatus.restype = c_int | ||
| 212 | PQstatus.argtypes = [ c_void_p ] | ||
| 209 | PQexec = libpq.PQexec | 213 | PQexec = libpq.PQexec |
| 210 | PQexec.restype = c_void_p | 214 | PQexec.restype = c_void_p |
| 215 | PQexec.argtypes = [ c_void_p, c_char_p ] | ||
| 211 | PQresultStatus = libpq.PQresultStatus | 216 | PQresultStatus = libpq.PQresultStatus |
| 217 | PQresultStatus.restype = c_int | ||
| 218 | PQresultStatus.argtypes = [ c_void_p ] | ||
| 212 | PQputCopyData = libpq.PQputCopyData | 219 | PQputCopyData = libpq.PQputCopyData |
| 220 | PQputCopyData.restype = c_int | ||
| 213 | PQputCopyData.argtypes = [ c_void_p, c_void_p, c_int ] | 221 | PQputCopyData.argtypes = [ c_void_p, c_void_p, c_int ] |
| 214 | PQputCopyEnd = libpq.PQputCopyEnd | 222 | PQputCopyEnd = libpq.PQputCopyEnd |
| 223 | PQputCopyEnd.restype = c_int | ||
| 215 | PQputCopyEnd.argtypes = [ c_void_p, c_void_p ] | 224 | PQputCopyEnd.argtypes = [ c_void_p, c_void_p ] |
| 216 | 225 | ||
| 217 | sys.path.append(os.environ['PERF_EXEC_PATH'] + \ | 226 | sys.path.append(os.environ['PERF_EXEC_PATH'] + \ |
