linux/tools
Ian Rogers e2b005d6ec perf metrics: Avoid segv if default metricgroup isn't set
A metric is default by having "Default" within its groups. The default
metricgroup name needn't be set and this can result in segv in
default_metricgroup_cmp and perf_stat__print_shadow_stats_metricgroup
that assume it has a value when there is a Default metric group. To
avoid the segv initialize the value to "".

Fixes: 1c0e47956a ("perf metrics: Sort the Default metricgroup")
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-and-tested-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Cc: James Clark <james.clark@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: John Garry <john.g.garry@oracle.com>
Cc: stable@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20231204182330.654255-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2023-12-05 10:15:10 -08:00
..
accounting
arch perf build: Ensure sysreg-defs Makefile respects output dir 2023-11-22 11:17:53 -08:00
bootconfig
bpf
build
certs
cgroup
counter
crypto/ccp
debugging
edid
firewire
firmware
gpio
hv
iio
include tools: Disable __packed attribute compiler warning due to -Werror=attributes 2023-11-22 12:23:27 -08:00
kvm/kvm_stat
laptop
leds
lib
memory-model
mm
net/ynl
objtool
pci
pcmcia
perf perf metrics: Avoid segv if default metricgroup isn't set 2023-12-05 10:15:10 -08:00
power turbostat-2023.11.07 2023-11-18 09:09:17 -08:00
rcu
scripts
spi
testing perf build: Ensure sysreg-defs Makefile respects output dir 2023-11-22 11:17:53 -08:00
thermal
time
tracing
usb
verification
virtio
wmi
workqueue
Makefile