]> git.baikalelectronics.ru Git - kernel.git/commit
perf tests: Fix Convert perf time to TSC test for hybrid
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 13 Jul 2022 12:34:59 +0000 (15:34 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 17 Jul 2022 13:57:07 +0000 (10:57 -0300)
commit2846d10a38f1de00e656db5b93f756ba627edfa9
tree3fb55a9e1858294d96b10193deceb52a9f383238
parentc34bec390d0c174a4b95334e929ec7dfc1fa2bbe
perf tests: Fix Convert perf time to TSC test for hybrid

The test does not always correctly determine the number of events for
hybrids, nor allow for more than 1 evsel when parsing.

Fix by iterating the events actually created and getting the correct
evsel for the events processed.

Fixes: 90ed53d22e440ebf ("perf tests: Support 'Convert perf time to TSC' test for hybrid")
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Link: https://lore.kernel.org/r/20220713123459.24145-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/perf-time-to-tsc.c