summaryrefslogtreecommitdiff
path: root/block/blk-iocost.c
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2024-02-09 23:49:46 +0300
committerSasha Levin <sashal@kernel.org>2024-03-27 01:17:06 +0300
commit2e01d247a945ce8364241af3c38b61d7d44fce6b (patch)
tree4fc91dbf917194e1654e67d784df66b501be70b0 /block/blk-iocost.c
parentf7e001e47b54cb9038529eeb448e81a0e2bfd85c (diff)
downloadlinux-2e01d247a945ce8364241af3c38b61d7d44fce6b.tar.xz
perf stat: Avoid metric-only segv
[ Upstream commit 2543947c77e0e224bda86b4e7220c2f6714da463 ] Cycles is recognized as part of a hard coded metric in stat-shadow.c, it may call print_metric_only with a NULL fmt string leading to a segfault. Handle the NULL fmt explicitly. Fixes: 088519f318be ("perf stat: Move the display functions to stat-display.c") Signed-off-by: Ian Rogers <irogers@google.com> Reviewed-by: Kan Liang <kan.liang@linux.intel.com> Cc: K Prateek Nayak <kprateek.nayak@amd.com> Cc: James Clark <james.clark@arm.com> Cc: Kaige Ye <ye@kaige.org> Cc: John Garry <john.g.garry@oracle.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20240209204947.3873294-4-irogers@google.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block/blk-iocost.c')
0 files changed, 0 insertions, 0 deletions