Thread (5 messages) 5 messages, 3 authors, 2021-11-16

Re: [PATCH] perf test: Add basic stress test for sigtrap handling

From: Arnaldo Carvalho de Melo <acme@kernel.org>
Date: 2021-11-16 14:46:25
Also in: lkml

Em Tue, Nov 16, 2021 at 02:57:33PM +0100, Marco Elver escreveu:
On Tue, Nov 16, 2021 at 09:51AM -0300, Arnaldo Carvalho de Melo wrote:
quoted
Em Mon, Nov 15, 2021 at 12:28:23PM +0100, Marco Elver escreveu:
quoted
Add basic stress test for sigtrap handling as a perf tool built-in test.
This allows sanity checking the basic sigtrap functionality from within
the perf tool.
Works as root:

[root@five ~]# perf test sigtrap
73: Sigtrap                                                         : Ok
[root@five ~]

Not for !root:
[...]
quoted
FAILED sys_perf_event_open(): Permission denied
test child finished with -1
---- end ----
Sigtrap: FAILED!
Ah, that shouldn't be the case. It's missing exclude_kernel/hv, and this
test should work just fine as non-root. Please squash the below as well.
Let me know if you'd like a v2.

Ack for your change printing errors as well.
Squashed, thanks!

- Arnaldo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help