[PATCH v1 2/2] powerpc/pseries: Add debugfs interface to retrieve VPHN info

Michael Ellerman mpe at ellerman.id.au
Fri Dec 14 11:33:56 AEDT 2018


Hi Naveen,

"Naveen N. Rao" <naveen.n.rao at linux.ibm.com> writes:
> Hi Michael,
>
> Naveen N. Rao wrote:
>> Add debugfs interface to retrieve associativity information for lpar
>> vcpus (debugfs/vphn/lpar) and the hypervisor cpus (debugfs/vphn/hyp).
>> This information is useful to derive various metrics, including the vcpu
>> dispatch statistics in a SPLPAR environment.
>
> Any thoughts on this approach vs. adding a tracepoint?

Sorry I've been unresponsive on this stuff, I don't know this area that
well.

I guess I'm not opposed to adding some stuff to debugfs, but only if
it's for debugging.

We don't want customers running tools or scripts that rely on this stuff
in debugfs.

If we need to expose more information to be used by production tools
then I think we need to look at sysfs or something like taskstats as a
proper API.

cheers


More information about the Linuxppc-dev mailing list