diff options
author | Dapeng Mi <dapeng1.mi@linux.intel.com> | 2024-09-13 10:47:12 +0200 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-10-01 00:23:44 +0200 |
commit | 80f192724e314ba860206e51bc1e3bc1ac7f58dd (patch) | |
tree | a5058433ca8c6e8d6a35e5dbb2fcd0ebded60d15 | |
parent | perf tests: Add topdown events counting and sampling tests (diff) | |
download | linux-80f192724e314ba860206e51bc1e3bc1ac7f58dd.tar.xz linux-80f192724e314ba860206e51bc1e3bc1ac7f58dd.zip |
perf tests: Add more topdown events regroup tests
Add more test cases to cover all supported topdown events regroup cases.
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Yongwei Ma <yongwei.ma@intel.com>
Link: https://lore.kernel.org/r/20240913084712.13861-7-dapeng1.mi@linux.intel.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
-rwxr-xr-x | tools/perf/tests/shell/stat.sh | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/tools/perf/tests/shell/stat.sh b/tools/perf/tests/shell/stat.sh index b90a35906ee7..f25ef468b8fc 100755 --- a/tools/perf/tests/shell/stat.sh +++ b/tools/perf/tests/shell/stat.sh @@ -73,9 +73,27 @@ test_topdown_groups() { err=1 return fi - if perf stat -e '{topdown-retiring,slots}' true 2>&1 | grep -E -q "<not supported>" + if perf stat -e 'instructions,topdown-retiring,slots' true 2>&1 | grep -E -q "<not supported>" then - echo "Topdown event group test [Failed slots not reordered first]" + echo "Topdown event group test [Failed slots not reordered first in no-group case]" + err=1 + return + fi + if perf stat -e '{instructions,topdown-retiring,slots}' true 2>&1 | grep -E -q "<not supported>" + then + echo "Topdown event group test [Failed slots not reordered first in single group case]" + err=1 + return + fi + if perf stat -e '{instructions,slots},topdown-retiring' true 2>&1 | grep -E -q "<not supported>" + then + echo "Topdown event group test [Failed topdown metrics event not move into slots group]" + err=1 + return + fi + if perf stat -e '{instructions,slots},{topdown-retiring}' true 2>&1 | grep -E -q "<not supported>" + then + echo "Topdown event group test [Failed topdown metrics group not merge into slots group]" err=1 return fi |