[PATCH v3] powerpc/papr_scm: Make 'perf_stats' invisible if perf-stats unavailable
Michael Ellerman
patch-notifications at ellerman.id.au
Sat Jun 26 20:37:22 AEST 2021
On Thu, 13 May 2021 14:53:49 +0530, Vaibhav Jain wrote:
> In case performance stats for an nvdimm are not available, reading the
> 'perf_stats' sysfs file returns an -ENOENT error. A better approach is
> to make the 'perf_stats' file entirely invisible to indicate that
> performance stats for an nvdimm are unavailable.
>
> So this patch updates 'papr_nd_attribute_group' to add a 'is_visible'
> callback implemented as newly introduced 'papr_nd_attribute_visible()'
> that returns an appropriate mode in case performance stats aren't
> supported in a given nvdimm.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/papr_scm: Make 'perf_stats' invisible if perf-stats unavailable
https://git.kernel.org/powerpc/c/ed78f56e1271f108e8af61baeba383dcd77adbec
cheers
More information about the Linuxppc-dev
mailing list