aboutsummaryrefslogtreecommitdiff
path: root/tools/io_uring/io_uring-cp.c
diff options
context:
space:
mode:
authorNamhyung Kim2022-10-17 19:02:10 -0700
committerGreg Kroah-Hartman2022-12-31 13:32:44 +0100
commit1b2a63c33106262de08921357ac03d0fa4e2e0f3 (patch)
treefe854c8a80ec045acf4f36718c412c7cdcd1526c /tools/io_uring/io_uring-cp.c
parent6c8d5578180c36069db5c5b7d939ae1f523e59f0 (diff)
perf stat: Use evsel__is_hybrid() more
[ Upstream commit 93d5e700156e03e66eb1bf2158ba3b8a8b354c71 ] In the stat-display code, it needs to check if the current evsel is hybrid but it uses perf_pmu__has_hybrid() which can return true for non-hybrid event too. I think it's better to use evsel__is_hybrid(). Also remove a NULL check for the 'config' parameter in the hybrid_merge() since it's called after config->no_merge check. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: James Clark <james.clark@arm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com> Link: https://lore.kernel.org/r/20221018020227.85905-4-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Stable-dep-of: fdc7d6082459 ("perf stat: Fix --metric-only --json output") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/io_uring/io_uring-cp.c')
0 files changed, 0 insertions, 0 deletions