[PATCH 0/2] perf metricgroups: A couple of fixes
From: John Garry
Date: Thu Jun 10 2021 - 10:37:41 EST
This series fixes a couple of subtle issues.
The first fixes a segfault from on my x86 broadwell when running the
'stat' command with a particular order of metrics.
As mentioned at [0], there is a pre-existing issue here which needs fixing
as this still does not work properly; however I think that is a bigger job,
and getting rid of the segfault is best I can do for the moment.
The second fixes an issue of an uninitialized variable. As noted in the
commit message, gcc does not seem to do a good job of picking up on this.
[0] https://lore.kernel.org/lkml/49c6fccb-b716-1bf0-18a6-cace1cdb66b9@xxxxxxxxxx/
John Garry (2):
perf metricgroup: Fix find_evsel_group() event selector
perf metricgroup: Return error code from
metricgroup__add_metric_sys_event_iter()
tools/perf/util/metricgroup.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
--
2.26.2