linux/drivers/platform/chrome
Gwendal Grignou 113a69460d platform/chrome: sensorhub: Add trace events for sample
[ Upstream commit d453ceb654 ]

Add trace event to report samples and their timestamp coming from the
EC. It allows to check if the timestamps are correct and the filter is
working correctly without introducing too much latency.

To enable these events:

cd /sys/kernel/debug/tracing/
echo 1 > events/cros_ec/enable
echo 0 > events/cros_ec/cros_ec_request_start/enable
echo 0 > events/cros_ec/cros_ec_request_done/enable
echo 1 > tracing_on
cat trace_pipe
Observe event flowing:
irq/105-chromeo-95      [000] ....   613.659758: cros_ec_sensorhub_timestamp: ...
irq/105-chromeo-95      [000] ....   613.665219: cros_ec_sensorhub_filter: dx: ...

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-26 14:08:58 +02:00
..
wilco_ec
chromeos_laptop.c
chromeos_pstore.c
chromeos_tbmc.c
cros_ec_chardev.c
cros_ec_debugfs.c platform/chrome: cros_ec_debugfs: Control uptime information request 2020-06-19 19:16:18 +02:00
cros_ec_i2c.c
cros_ec_ishtp.c platform/chrome: cros_ec_ishtp: Fix a double-unlock issue 2020-06-30 11:41:25 +02:00
cros_ec_lightbar.c platform/chrome: cros_ec_lightbar: Reduce ligthbar get version command 2020-09-04 09:30:04 +02:00
cros_ec_lpc_mec.c
cros_ec_lpc_mec.h
cros_ec_lpc.c
cros_ec_proto.c platform/chrome: cros_ec_proto: Send command again when timeout occurs 2021-09-18 13:40:37 +02:00
cros_ec_rpmsg.c platform/chrome: cros_ec_rpmsg: Document missing struct parameters 2020-06-30 11:41:25 +02:00
cros_ec_sensorhub_ring.c platform/chrome: sensorhub: Add trace events for sample 2021-09-26 14:08:58 +02:00
cros_ec_sensorhub.c
cros_ec_spi.c platform/chrome: cros_ec_spi: Don't overwrite spi::mode 2020-12-30 11:53:45 +01:00
cros_ec_sysfs.c platform/chrome: Use kobj_to_dev() instead of container_of() 2020-09-29 10:08:44 +02:00
cros_ec_trace.c platform/chrome: cros_ec: Add command for regulator control. 2020-06-15 22:40:14 +01:00
cros_ec_trace.h platform/chrome: sensorhub: Add trace events for sample 2021-09-26 14:08:58 +02:00
cros_ec_typec.c platform/chrome: cros_ec_typec: Add DP mode check 2021-05-22 11:40:53 +02:00
cros_ec_vbc.c platform/chrome: Use kobj_to_dev() instead of container_of() 2020-09-29 10:08:44 +02:00
cros_ec.c
cros_ec.h
cros_kbd_led_backlight.c
cros_usbpd_logger.c
cros_usbpd_notify.c
Kconfig platform/chrome: Kconfig: Remove the transitional MFD_CROS_EC config 2020-09-04 09:30:04 +02:00
Makefile platform/chrome: sensorhub: Add trace events for sample 2021-09-26 14:08:58 +02:00