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 - 14:12:27 EST
> > pmon0-3: list of pci busses indexed by die
> >
> > To be honest the approach doesn't seem unreasonable to me. It's similar
> > e.g. how we express lists of cpus or nodes in sysfs today.
<snipped repeated form letter non answer to question>
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.
The whole thing will be ugly and complicated and slow and difficult
to parse, but it will presumably follow Greg's rules.
-Andi