]> git.ipfire.org Git - thirdparty/linux.git/commit
perf ordered-events: Event processing consistency with the regular reader
authorIan Rogers <irogers@google.com>
Wed, 1 Apr 2026 16:13:22 +0000 (09:13 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 3 Apr 2026 02:35:16 +0000 (19:35 -0700)
commitfbfdf3143271ca695061fa5882651bb512832044
tree65424a4f7bb9912e42a43ae7be51154cbf524e1e
parent8a4aab17c350f7c2ca7c459a9977f8e18f2878f6
perf ordered-events: Event processing consistency with the regular reader

Some event processing functions like perf_event__process_tracing_data
return a zero or positive value on success. Ordered event processing
handles any non-zero value as an error, which is inconsistent with
reader__process_events and reader__read_event that only treat negative
values as errors. Make the ordered events error handling consistent
with that of the events reader.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/ordered-events.c