diff options
author | 2023-06-26 19:13:42 +0800 | |
---|---|---|
committer | 2023-06-28 11:00:50 -0400 | |
commit | f6d026eea390d59787a6cdc2ef5c983d02e029d0 (patch) | |
tree | 821dea1d68244e15bf4b506b9f8d5b2deda11ebe /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tracing/user_events: Document auto-cleanup and remove dyn_event refs (diff) | |
download | wireguard-linux-f6d026eea390d59787a6cdc2ef5c983d02e029d0.tar.xz wireguard-linux-f6d026eea390d59787a6cdc2ef5c983d02e029d0.zip |
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/20230626111344.19136-2-sunliming@kylinos.cn
Cc: stable@vger.kernel.org
7f5a08c79df35 ("user_events: Add minimal support for trace_event into ftrace")
Acked-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: sunliming <sunliming@kylinos.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions