diff options
| author | Gwendal Grignou <gwendal@chromium.org> | 2025-01-21 15:20:07 -0800 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-02-08 15:10:15 +0000 |
| commit | 3bb415513c52563cc608c4495c6a2ab453ca09ce (patch) | |
| tree | 9585dc775f37906d8bf9519e7263607f15a232c7 /tools/lib/python | |
| parent | 1ec0d78dec8d6c4af391bac7d011ad46ae777632 (diff) | |
| download | linux-3bb415513c52563cc608c4495c6a2ab453ca09ce.tar.gz linux-3bb415513c52563cc608c4495c6a2ab453ca09ce.zip | |
iio: cros_ec: Trace EC sensors command
For debugging, add tracing for EC_CMD_MOTION_SENSE_CMD command:
- decode the name of the subcommand
- provide internal information for the most common sub-commands:
setting range, frequency, EC probing frequency, ...
- display return status.
When enabled, the tracing output is similar to:
/sys/kernel/debug/tracing # echo 1 > events/cros_ec/enable ; echo 1 > tracing_on ; cat trace_pipe | grep MOTIONSENSE_CMD_SENSOR_ODR
SensorDeviceImp-814 [003] ..... 686.176782: cros_ec_motion_host_cmd: MOTIONSENSE_CMD_SENSOR_ODR, id: 1, data: 200000, result: 4, return: 12500
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://patch.msgid.link/20250121232007.1020666-1-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
