Re: [PATCH v4 2/2] perf x86: Exposing an Uncore unit to PMON for Intel Xeon® server platform

From: Andi Kleen
Date: Fri Jan 17 2020 - 18:22:22 EST


> > Roman,
> >
> > I suppose you'll need something like
> >
> > /sys/device/system/dieXXX/pci-pmon<0-3>/bus
> >
> > and bus could be a symlink to the pci bus directory.
>
> Why do you need to link to the pci bus directory?

The goal is to identify which bus is counted by the perfmon
counter. I suppose it could be a field containing the bus
identifier too, but I think symlinks are used elsewhere.

> > The whole thing will be ugly and complicated and slow and difficult
> > to parse, but it will presumably follow Greg's rules.
>
> Who needs to parse this? What tool will do it and for what?

perf parses is to output PCI bandwidth per PCI device.

-Andi