summaryrefslogtreecommitdiff
path: root/drivers/hwmon/pmbus/Kconfig
diff options
context:
space:
mode:
authorNicolin Chen <nicoleotsuka@gmail.com>2018-10-10 00:42:19 +0300
committerGuenter Roeck <linux@roeck-us.net>2018-10-12 06:07:35 +0300
commit61b8ab2c5481dc48e8df9a13c297636c1d369554 (patch)
tree4d7f55698a4e0f458101a3e683719969c4af4f65 /drivers/hwmon/pmbus/Kconfig
parentd4b0166d28a8966ab6938d8bb7360c383b519256 (diff)
downloadlinux-61b8ab2c5481dc48e8df9a13c297636c1d369554.tar.xz
hwmon: (core) Add trace events to _attr_show/store functions
Trace events are useful for people who collect data from the Ftrace outputs. There're people who analyse the relationship of cpufreq, thermal and hwmon (power/voltage/current) using the convenient and timestamped Ftrace outputs, while unlike cpufreq and thermal subsystems the hwmon does not have trace events supported yet. So this patch adds initial trace events for the hwmon core. To call hwmon_attr_base() for aligned attr index numbers, it also moves the function upward. Ftrace outputs: ...: hwmon_attr_show_string: index=2, attr_name=in2_label, val=VDD_5V ...: hwmon_attr_show: index=2, attr_name=in2_input, val=5112 ...: hwmon_attr_show: index=2, attr_name=curr2_input, val=440 Note that the _attr_show and _attr_store functions are tied to the _with_info API. So a hwmon driver requiring the trace events feature should use _with_info API to register a hwmon device. Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/Kconfig')
0 files changed, 0 insertions, 0 deletions