Skip to contentSkip to conversation

perf tests: Disable breakpoint accounting test for powerpc

PATCH Applied Sandipan Das 3 participants 3 messages Apr 12, 2018 – Apr 16, 2018 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf tests: Disable breakpoint accounting test for powerpc

We disable this test as instruction breakpoints (HW_BREAKPOINT_X) are not available for powerpc.

Before applying patch:

21: Breakpoint accounting :
--- start ---
test child forked, pid 3635
failed opening event 0
failed opening event 0
watchpoints count 1, breakpoints count 0, has_ioctl 1, share 0 test child finished with -2
---- end ----
Breakpoint accounting: Skip

After applying patch:

21: Breakpoint accounting : Disabled

---
 tools/perf/tests/builtin-test.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/tests/builtin-test.c +1 -0
index 625f5a6772af..cac8f8889bc3 100644
@@ -118,6 +118,7 @@ static struct test generic_tests[] = {
 	{
 		.desc = "Breakpoint accounting",
 		.func = test__bp_accounting,
+		.is_supported = test__bp_signal_is_supported,
 	},
 	{
 		.desc = "Number of exit events of a simple workload",
Signature · 1 line
2.14.3
maintainer Applied
#1 lore raw

Em Thu, Apr 12, 2018 at 09:51:40PM +0530, Sandipan Das escreveu:

Quoted 2 lines

We disable this test as instruction breakpoints (HW_BREAKPOINT_X) are not available for powerpc.

Thanks, applied.

- Arnaldo

#2 lore raw
In reply to Sandipan Das
perf tests: Disable breakpoint accounting test for powerpc
Commit-ID:  4b163ca343b45855b03114ef2ab47c454989d55c
Gitweb:     https://git.kernel.org/tip/4b163ca343b45855b03114ef2ab47c454989d55c
Author:     Sandipan Das <[email protected]>
AuthorDate: Thu, 12 Apr 2018 21:51:40 +0530
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 12 Apr 2018 14:20:21 -0300

perf tests: Disable breakpoint accounting test for powerpc

We disable this test as instruction breakpoints (HW_BREAKPOINT_X) are not available for powerpc.

Before applying patch:

21: Breakpoint accounting :
--- start ---
test child forked, pid 3635
failed opening event 0
failed opening event 0
watchpoints count 1, breakpoints count 0, has_ioctl 1, share 0 test child finished with -2
---- end ----
Breakpoint accounting: Skip

After applying patch:

21: Breakpoint accounting : Disabled

---
 tools/perf/tests/builtin-test.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/tests/builtin-test.c +1 -0
index 625f5a6772af..cac8f8889bc3 100644
@@ -118,6 +118,7 @@ static struct test generic_tests[] = {
 	{
 		.desc = "Breakpoint accounting",
 		.func = test__bp_accounting,
+		.is_supported = test__bp_signal_is_supported,
 	},
 	{
 		.desc = "Number of exit events of a simple workload",