perf test: Fix test case 87 ("perf record tests") for hybrid systems
PATCH 1/1 perf test: Fix test case 87 ("perf record tests") for hybrid systems
From: Zhengjun Xing <[email protected]>
The test case 87 ("perf record tests") failed on hybrid systems,the event "cpu/br_inst_retired.near_call/p" is only for non-hybrid system. Correct the test event to support both non-hybrid and hybrid systems.
Before:
# ./perf test 87 87: perf record tests : FAILED!
After:
# ./perf test 87 87: perf record tests : Ok
--- tools/perf/tests/shell/record.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/shell/record.sh +1 -1
@@ -61,7 +61,7 @@ test_register_capture() { echo "Register capture test [Skipped missing registers]" return fi - if ! perf record -o - --intr-regs=di,r8,dx,cx -e cpu/br_inst_retired.near_call/p \ + if ! perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call:p \ -c 1000 --per-thread true 2> /dev/null \ | perf script -F ip,sym,iregs -i - 2> /dev/null \ | egrep -q "DI:"
Signature · 1 line
2.25.1
Arnaldo Carvalho de Melo
maintainerEm Tue, Sep 27, 2022 at 01:15:13PM +0800, [email protected] escreveu:
Quoted 6 lines
From: Zhengjun Xing <[email protected]>
The test case 87 ("perf record tests") failed on hybrid systems,the event "cpu/br_inst_retired.near_call/p" is only for non-hybrid system. Correct the test event to support both non-hybrid and hybrid systems.
Quoted 7 lines
Before:
# ./perf test 87 87: perf record tests : FAILED!After:
# ./perf test 87 87: perf record tests : Ok
Looks sane, applied.
Ian, consider providing your Acked-by,
- Arnaldo
Quoted 22 lines
Fixes 24f378e66021 ("perf test: Add basic perf record tests")Signed-off-by Zhengjun Xing <[email protected]>Reviewed-by Kan Liang <[email protected]>--- tools/perf/tests/shell/record.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/perf/tests/shell/record.sh +1
-1@@ -61,7 +61,7 @@ test_register_capture() { echo "Register capture test [Skipped missing registers]" return fi - if ! perf record -o - --intr-regs=di,r8,dx,cx -e cpu/br_inst_retired.near_call/p \ + if ! perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call:p \ -c 1000 --per-thread true 2> /dev/null \ | perf script -F ip,sym,iregs -i - 2> /dev/null \ | egrep -q "DI:"Signature · 1 line
2.25.1
Signature · 1 line
- Arnaldo
Quoted 16 lines · Arnaldo Carvalho de Melo
Em Tue, Sep 27, 2022 at 01:15:13PM +0800, [email protected] escreveu:
Quoted 6 lines
From: Zhengjun Xing <[email protected]>
The test case 87 ("perf record tests") failed on hybrid systems,the event "cpu/br_inst_retired.near_call/p" is only for non-hybrid system. Correct the test event to support both non-hybrid and hybrid systems.
Quoted 7 lines
Before:
# ./perf test 87 87: perf record tests : FAILED!After:
# ./perf test 87 87: perf record tests : Ok
Quoted 5 lines
Looks sane, applied.
Ian, consider providing your Acked-by,
- Arnaldo
Thanks,
Ian
Quoted 27 lines
Quoted 22 lines
Fixes 24f378e66021 ("perf test: Add basic perf record tests")Signed-off-by Zhengjun Xing <[email protected]>Reviewed-by Kan Liang <[email protected]>--- tools/perf/tests/shell/record.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/perf/tests/shell/record.sh +1
-2@@ -61,7 +61,7 @@ test_register_capture() { echo "Register capture test [Skipped missing registers]" return fi - if ! perf record -o - --intr-regs=di,r8,dx,cx -e cpu/br_inst_retired.near_call/p \ + if ! perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call:p \ -c 1000 --per-thread true 2> /dev/null \ | perf script -F ip,sym,iregs -i - 2> /dev/null \ | egrep -q "DI:" --Quoted 1 line
2.25.1
--
- Arnaldo
Arnaldo Carvalho de Melo
maintainerEm Wed, Sep 28, 2022 at 07:11:15PM -0700, Ian Rogers escreveu:
Quoted 16 lines · Arnaldo Carvalho de Melo
Quoted 15 lines
Em Tue, Sep 27, 2022 at 01:15:13PM +0800, [email protected] escreveu:
Quoted 13 lines
From: Zhengjun Xing <[email protected]>
The test case 87 ("perf record tests") failed on hybrid systems,the event "cpu/br_inst_retired.near_call/p" is only for non-hybrid system. Correct the test event to support both non-hybrid and hybrid systems.
Before:
# ./perf test 87 87: perf record tests : FAILED!After:
# ./perf test 87 87: perf record tests : Ok
Quoted 5 lines
Quoted 3 lines
Looks sane, applied.
Ian, consider providing your Acked-by,
Acked-by Ian Rogers <[email protected]>
Thanks, added.
- Arnaldo