summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorGabriele Paoloni <gpaoloni@redhat.com>2025-03-21 18:08:21 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-03-23 08:34:31 -0400
commit0c588ac0ca6c22b774d9ad4a6594681fdfa57d9d (patch)
treeadcfcebf772157f0625863dc33f2d3071c84f8da /tools/perf/scripts/python/syscall-counts.py
parent7e6b3fcc9c5294aeafed0dbe1a09a1bc899bd0f2 (diff)
tracing: fix return value in __ftrace_event_enable_disable for TRACE_REG_UNREGISTER
When __ftrace_event_enable_disable invokes the class callback to unregister the event, the return value is not reported up to the caller, hence leading to event unregister failures being silently ignored. This patch assigns the ret variable to the invocation of the event unregister callback, so that its return value is stored and reported to the caller, and it raises a warning in case of error. Link: https://lore.kernel.org/20250321170821.101403-1-gpaoloni@redhat.com Signed-off-by: Gabriele Paoloni <gpaoloni@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions