]> git.baikalelectronics.ru Git - kernel.git/commit
libperf: Add a test case for read formats
authorNamhyung Kim <namhyung@kernel.org>
Fri, 19 Aug 2022 00:36:43 +0000 (17:36 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 19 Aug 2022 18:56:44 +0000 (15:56 -0300)
commite14a1fb929ed3cad821d080382f0f220c86ba9c6
treed054e9fe2430d3b6dce883afbaefa82563509427
parentc32799f4329454a27ac863b7b0eb67bb364ca4bf
libperf: Add a test case for read formats

It checks a various combination of the read format settings and verify
it return the value in a proper position.  The test uses task-clock
software events to guarantee it's always active and sets enabled/running
time.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220819003644.508916-4-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/tests/test-evsel.c