Skip to contentSkip to conversation

perf test: Fix test case 87 ("perf record tests") for hybrid systems

PATCH In review [email protected] 3 participants 4 messages Sep 27, 2022 – Sep 29, 2022 perf events

lore
Share & tools
lore
#0 lore raw

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
Fixes 24f378e66021 ("perf test: Add basic perf record tests")
---
 tools/perf/tests/shell/record.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/shell/record.sh +1 -1
index 00c7285ce1ac..301f95427159 100755
@@ -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
#1 lore raw

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

Looks sane, applied.

Ian, consider providing your Acked-by,

- Arnaldo

Quoted 22 lines
Fixes 24f378e66021 ("perf test: Add basic perf record tests")
---
 tools/perf/tests/shell/record.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/shell/record.sh +1 -1
index 00c7285ce1ac..301f95427159 100755
@@ -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
reviewer Acked-by
#2 lore raw
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")
---
 tools/perf/tests/shell/record.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/shell/record.sh +1 -2
index 00c7285ce1ac..301f95427159 100755
@@ -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

#3 lore raw

Em 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,

Thanks, added.

- Arnaldo