diff options
| author | Steven Rostedt <[email protected]> | 2025-01-21 20:13:36 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2025-01-21 20:23:07 +0000 |
| commit | 8f21943e101a15f56a8f02970a80edc936de8ec8 (patch) | |
| tree | d30f2c1d175fb6a84715b9a2d485d7705ea4a2a2 /drivers/platform/x86/intel/punit_ipc.c | |
| parent | tracing: Fix allocation of printing set_event file content (diff) | |
| download | kernel-8f21943e101a15f56a8f02970a80edc936de8ec8.tar.gz kernel-8f21943e101a15f56a8f02970a80edc936de8ec8.zip | |
tracing: Fix output of set_event for some cached module events
The following works fine:
~# echo ':mod:trace_events_sample' > /sys/kernel/tracing/set_event
~# cat /sys/kernel/tracing/set_event
*:*:mod:trace_events_sample
~#
But if a name is given without a ':' where it can match an event name or
system name, the output of the cached events does not include a new line:
~# echo 'foo_bar:mod:trace_events_sample' > /sys/kernel/tracing/set_event
~# cat /sys/kernel/tracing/set_event
foo_bar:mod:trace_events_sample~#
Add the '\n' to that as well.
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Fixes: b355247df104e ("tracing: Cache ":mod:" events for modules not loaded yet")
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/punit_ipc.c')
0 files changed, 0 insertions, 0 deletions
