]> git.ipfire.org Git - people/arne_f/kernel.git/commit
perf script python: Fix export-to-postgresql.py occasional failure
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 11 Sep 2018 11:45:03 +0000 (14:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2018 07:18:18 +0000 (09:18 +0200)
commitcfb08fb1815f162350b2d7786eed14a6317ba36b
tree2786de1011d4d87e109530ae8571eeff997a1b3e
parent37e64cb69f0fc65abdf5e3ad96a6d4fed627ca3a
perf script python: Fix export-to-postgresql.py occasional failure

commit 25e11700b54c7b6b5ebfc4361981dae12299557b upstream.

Occasional export failures were found to be caused by truncating 64-bit
pointers to 32-bits. Fix by explicitly setting types for all ctype
arguments and results.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/20180911114504.28516-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/perf/scripts/python/export-to-postgresql.py