diff options
author | sunliming <[email protected]> | 2023-06-26 19:13:42 +0800 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2023-06-28 11:00:50 -0400 |
commit | f6d026eea390d59787a6cdc2ef5c983d02e029d0 (patch) | |
tree | 821dea1d68244e15bf4b506b9f8d5b2deda11ebe /drivers/clocksource/timer-davinci.c | |
parent | 0113d4615dbf053ae9a7a1e0acbc6652713af01f (diff) |
tracing/user_events: Fix incorrect return value for writing operation when events are disabled
The writing operation return the count of writes regardless of whether events
are enabled or disabled. Switch it to return -EBADF to indicates that the event
is disabled.
Link: https://lkml.kernel.org/r/[email protected]
Cc: [email protected]
7f5a08c79df35 ("user_events: Add minimal support for trace_event into ftrace")
Acked-by: Beau Belgrave <[email protected]>
Signed-off-by: sunliming <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'drivers/clocksource/timer-davinci.c')
0 files changed, 0 insertions, 0 deletions