OSDN Git Service

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)
commit6d395a513556e61dc22c6abdf9b419deb46f1908
treed054e9fe2430d3b6dce883afbaefa82563509427
parent89e3106fa25fb1b626a7123dba870159d453e785
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