Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf test: Use sqrtloop workload to test bperf event

Replace `brstack` workload with `sqrtloop` workload, because `sqrtloop`
workload contains fork(), which is suitable for testing the bperf event
inheritance feature.

Signed-off-by: Tengda Wu <wutengda@huaweicloud.com>
Cc: song@kernel.org
Cc: bpf@vger.kernel.org
Link: https://lore.kernel.org/r/20241021110201.325617-3-wutengda@huaweicloud.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Tengda Wu and committed by
Namhyung Kim
d36e5b36 07dc3a6d

+1 -1
+1 -1
tools/perf/tests/shell/stat_bpf_counters.sh
··· 4 4 5 5 set -e 6 6 7 - workload="perf test -w brstack" 7 + workload="perf test -w sqrtloop" 8 8 9 9 # check whether $2 is within +/- 20% of $1 10 10 compare_number()