]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf script python: Fix export-to-sqlite.py sample columns
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 11 Sep 2018 11:45:04 +0000 (14:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2018 07:16:23 +0000 (09:16 +0200)
commite3f725f5c46aa7e989430b0ecc3463a5c4e4cd49
tree3a247fa0bf3bd6073e3287024fd899ca5d60fb92
parent82ac2740aa74668b694c04de659155571b6514e7
perf script python: Fix export-to-sqlite.py sample columns

commit d005efe18db0b4a123dd92ea8e77e27aee8f99fd upstream.

With the "branches" export option, not all sample columns are exported.
However the unwanted columns are not at the end of the tuple, as assumed
by the code. Fix by taking the first 15 and last 3 values, instead of
the first 18.

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-3-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-sqlite.py