Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf jevents: Allow metric groups not to be named

It can be convenient to have unnamed metric groups for the sake of
organizing other metrics and metric groups. An unspecified name
shouldn't contribute to the MetricGroup json value, so don't record
it.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Falcon <thomas.falcon@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Ian Rogers and committed by
Namhyung Kim
e90c66c3 38d9d511

+2 -1
+2 -1
tools/perf/pmu-events/metric.py
··· 455 455 456 456 def AddToMetricGroup(self, group): 457 457 """Callback used when being added to a MetricGroup.""" 458 - self.groups.add(group.name) 458 + if group.name: 459 + self.groups.add(group.name) 459 460 460 461 def Flatten(self) -> Set['Metric']: 461 462 """Return a leaf metric."""