diff options
author | 2025-05-07 10:53:06 -0400 | |
---|---|---|
committer | 2025-05-09 15:19:11 -0400 | |
commit | f2947c4b7d0f235621c5daf78aecfbd6e22c05e5 (patch) | |
tree | 37e649267f0103db46965b13d233fcbe6fcb2aab /scripts/lib/kdoc/kdoc_files.py | |
parent | tracing: Replace deprecated strncpy() with strscpy() for stack_trace_filter_buf (diff) | |
download | linux-rng-f2947c4b7d0f235621c5daf78aecfbd6e22c05e5.tar.xz linux-rng-f2947c4b7d0f235621c5daf78aecfbd6e22c05e5.zip |
tracing: Rename event_trigger_alloc() to trigger_data_alloc()
The function event_trigger_alloc() creates an event_trigger_data
descriptor and states that it needs to be freed via event_trigger_free().
This is incorrect, it needs to be freed by trigger_data_free() as
event_trigger_free() adds ref counting.
Rename event_trigger_alloc() to trigger_data_alloc() and state that it
needs to be freed via trigger_data_free(). This naming convention
was introducing bugs.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Tom Zanussi <zanussi@kernel.org>
Link: https://lore.kernel.org/20250507145455.776436410@goodmis.org
Fixes: 86599dbe2c527 ("tracing: Add helper functions to simplify event_command.parse() callback handling")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions