diff options
author | Song Liu <songliubraving@fb.com> | 2021-03-23 17:42:47 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-03-23 18:05:36 -0300 |
commit | 2c0cb9f56020d2ea006589434d5eb4e702110124 (patch) | |
tree | 0361fd67e378a91fbadb02a28345bb5e3d9a1f7f /tools/perf/util/config.c | |
parent | perf stat: Measure 't0' and 'ref_time' after enable_counters() (diff) | |
download | linux-dev-2c0cb9f56020d2ea006589434d5eb4e702110124.tar.xz linux-dev-2c0cb9f56020d2ea006589434d5eb4e702110124.zip |
perf test: Add a shell test for 'perf stat --bpf-counters' new option
Add a test to compare the output of perf-stat with and without option
--bpf-counters. If the difference is more than 10%, the test is considered
as failed.
Committer testing:
# perf test bpf-counters
86: perf stat --bpf-counters test : Ok
# perf test -v bpf-counters
86: perf stat --bpf-counters test :
--- start ---
test child forked, pid 2433339
test child finished with 0
---- end ----
perf stat --bpf-counters test: Ok
#
Signed-off-by: Song Liu <songliubraving@fb.com>
Requested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/EC00E37D-8587-4662-8E30-7AD5F874FA84@fb.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/config.c')
0 files changed, 0 insertions, 0 deletions