diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2024-12-19 15:12:01 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-12-26 10:38:36 -0500 |
commit | cad1d5bd2cb9921189749b5d796026c768f56236 (patch) | |
tree | ecfd95aff79968473f0209fdc58f615053cbc2c3 /tools/perf/scripts/python/stackcollapse.py | |
parent | d1e27ee9c6f21ccbb3f2d910171427ceb66a0af1 (diff) |
tracing: Have event_enable_write() just return error on error
The event_enable_write() function is inconsistent in how it returns
errors. Sometimes it updates the ppos parameter and sometimes it doesn't.
Simplify the code to just return an error or the count if there isn't an
error.
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: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/20241219201345.025284170@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions