Thread (2 messages) flat view 2 messages, 2 authors, 2025-05-12

Re: [BUG?] perf_event_open fails on synthetic event created through dynamic_events

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-05-12 14:22:01
Also in: linux-perf-users, lkml

On Mon, 12 May 2025 16:08:42 +0200
Tomas Glozar [off-list ref] wrote:
It seems that it is trying to access a struct tracepoint object whose
func field is NULL. I have not tried attaching to dynamic events
through perf before, so I don't know whether this is just
unimplemented and poorly handled or a regression. For what it's worth,
it also happens on CentOS Stream 9 kernel (5.14.0-578.el9).
I think it is unimplemented and poorly handled ;-)

If this is something you want, we can add the feature for it, but for this
release and stable kernels, as it's not a regression, the fix is to have it
not produce a warning and give something like "-EINVAL" back to the perf
system call.

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