Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/ABI: Add new sysfs field to sysfs-platform-mellanox-pmc

Document newly added "count_clock" sysfs entry for the Mellanox
BlueField PMC driver.

Signed-off-by: Shravan Kumar Ramani <shravankr@nvidia.com>
Reviewed-by: David Thompson <davthompson@nvidia.com>
Link: https://lore.kernel.org/r/367301238efff01fc200c67bca461c0424baf95d.1736413033.git.shravankr@nvidia.com
[ij: corrected KernelVersion & Date]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Shravan Kumar Ramani and committed by
Ilpo Järvinen
913240e4 8e3b3e16

+10
+10
Documentation/ABI/testing/sysfs-platform-mellanox-pmc
··· 52 52 Writing 0 to the sysfs will clear the counter, writing any other 53 53 value is not allowed. 54 54 55 + What: /sys/bus/platform/devices/<HID>/hwmon/hwmonX/<block>/count_clock 56 + Date: Mar 2025 57 + KernelVersion: 6.14 58 + Contact: "Shravan Kumar Ramani <shravankr@nvidia.com>" 59 + Description: 60 + Use a counter for counting cycles. This is used to repurpose/dedicate 61 + any of the counters in the block to counting cycles. Each counter is 62 + represented by a bit (bit 0 for counter0, bit1 for counter1 and so on) 63 + and setting the corresponding bit will reserve that specific counter 64 + for counting cycles and override the event<N> setting.