RE: [PATCH 09/10] soc: fujitsu: hwb: Add sysfs entry
From: misono.tomohiro@fujitsu.com <hidden>
Date: 2021-01-12 10:43:21
On Fri, Jan 8, 2021 at 11:52 AM Misono Tomohiro [off-list ref] wrote:quoted
This adds sysfs entry per CMG to show running barrier driver status for debugging user application. The following entries will be created: /sys/class/misc/fujitsu_hwb |- hwinfo ... number of CMG/BB/BW/pe_per_cmg on running system |- CMG0 |- core_map ... cpuid belonging to this CMG |- used_bb_bmap ... bitmap of currently allocated BB |- used_bw_bmap ... bitmap of currently allocated BW |- init_sync_bb0 ... current value of INIT_SYNC register 0 |- init_sync_bb1 ... current value of INIT_SYNC register 1 ... |- CMG1 ...If this is meant as a stable interface, it should be documented in Documentation/ABI/ However, if it's purely for debugging and may not get maintained forever, you might want to use debugfs instead.
As you guess this is only for debugging purpose, so I will try debugfs. Thanks for review, Tomohiro _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel