]> 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)
commita252b760992eb1f20b8003105ab47fee20b6d6d0
treed054e9fe2430d3b6dce883afbaefa82563509427
parenta30fe7c1df32e2e537d53561c45dad23cb22a3a3
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