Re: [PATCH v3] powerpc/papr_scm: Make 'perf_stats' invisible if perf-stats unavailable

From
Michael Ellerman <hidden>
Date
2021-06-26 10:45:10
Reply to
Vaibhav Jain, 2021-05-13
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
Thread (2 messages) 2 messages, 2 authors, last reply 2021-06-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help