On 05/09/26 16:00, Karl Mehltretter wrote:
arch/powerpc/perf/hv-24x7.c creates the attribute as catalog_len
(PAGE_0_ATTR(catalog_len, ...)); the ABI file has documented it as
catalog_length since it was written.
Use catalog_len.
Checked against arch/powerpc/perf/hv-24x7.c - the attribute is indeed
registered via PAGE_0_ATTR(catalog_len, ...), which means the sysfs file
has always been catalog_len. The ABI documentation's use of
catalog_length has been incorrect since the original commit ad0a02b83477
and has never matched the actual code.
The rename to catalog_len looks correct.
Reviewed-by: Tanushree Shah <[email protected]>
Thanks
Tanushree Shah
Fixes: ad0a02b83477 ("powerpc/perf/hv_{gpci, 24x7}: Add documentation of device
attributes")
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <[email protected]>
---
.../ABI/testing/sysfs-bus-event_source-devices-hv_24x7 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7
b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7
index de390a010af8..9b231c80ea66 100644
--- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7
+++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7
@@ -33,7 +33,7 @@ Description:
documented here:
https://raw.githubusercontent.com/jmesmon/catalog-24x7/master/hv-24x7-catalog.h
-What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_length
+What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_len
Date: February 2014
Contact: Linux on PowerPC Developer List <[email protected]>
Description: