Thread (9 messages) 9 messages, 3 authors, 2024-11-29

Re: [PATCH] tracing: Add WARN_ON_ONCE for syscall_nr check

From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date: 2024-11-28 16:02:32
Also in: lkml

On 2024-11-28 10:03, Steven Rostedt wrote:
On Thu, 28 Nov 2024 21:15:31 +0800
Tao Chen [off-list ref] wrote:
quoted
Hi, Steve, thank you for your reply, as you say, so what about
pr_warn_once api just to print something ?
A better solution is for there to be a return code or something where the
tracers (perf or ftrace) can record in the trace that the system call is
not supported.
Just be careful not to spam the traces uselessly. E.g. if only the
openat syscall is enabled, you'd only want to be made aware of the
ia32 openat, not all ia32 syscalls.

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help