perf test: Use sqrtloop workload to test bperf event
authorTengda Wu <wutengda@huaweicloud.com>
Mon, 21 Oct 2024 11:02:01 +0000 (11:02 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Sat, 2 Nov 2024 06:31:08 +0000 (23:31 -0700)
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>
tools/perf/tests/shell/stat_bpf_counters.sh

index a038c1b..95d2ad5 100755 (executable)
@@ -4,7 +4,7 @@
 
 set -e
 
-workload="perf test -w brstack"
+workload="perf test -w sqrtloop"
 
 # check whether $2 is within +/- 20% of $1
 compare_number()