]> git.baikalelectronics.ru Git - kernel.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)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 Sep 2018 14:37:05 +0000 (11:37 -0300)
commitc1b7cd4293b5e130fd78e8d168d41aa147fbee42
tree2152535edaa80ecbba0be95d1ecf7ed903f04cb6
parent1c90b7caa1891fb3c1f1c5dabb76ebf4c771edf2
perf script python: Fix export-to-sqlite.py sample columns

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>
tools/perf/scripts/python/export-to-sqlite.py