]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf stat: Allow no events to open if this is a "--null" run
authorIan Rogers <irogers@google.com>
Wed, 3 Dec 2025 21:47:00 +0000 (13:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:32 +0000 (14:03 +0100)
commit850f134a4c81954f95f0eafe49e80fece82b11ba
tree622b0df859182e6d3779b23bef1c26b0eb54067a
parentb9ceff1ca3ef9a3f7438e0825b6095da3905fc4c
perf stat: Allow no events to open if this is a "--null" run

[ Upstream commit 6744c0b182c1f371135bc3f4e62b96ad884c9f89 ]

It is intended that a "--null" run doesn't open any events.

Fixes: 2cc7aa995ce9 ("perf stat: Refactor retry/skip/fatal error handling")
Tested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/builtin-stat.c