mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-12-04 18:39:22 +00:00
This is useful to see which EC commands are being executed and when.
To enable:
echo 1 > /sys/kernel/debug/tracing/events/cros_ec/enable
Example:
cros_ec_cmd: version: 0, command: EC_CMD_GET_VERSION
cros_ec_cmd: version: 0, command: EC_CMD_GET_PROTOCOL_INFO
cros_ec_cmd: version: 1, command: EC_CMD_GET_CMD_VERSIONS
cros_ec_cmd: version: 1, command: EC_CMD_USB_PD_CONTROL
The list of current commands is generated using the following script:
sed -n 's/^#define \(EC_CMD_[[:alnum:]_]*\)\s.*/\tTRACE_SYMBOL(\1),\\/p' include/linux/mfd/cros_ec_commands.h
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Ross Zwisler <zwisler@google.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
|
History
|
|
|---|---|---|
| .. | ||
| wilco_ec | ||
| chromeos_laptop.c | ||
| chromeos_pstore.c | ||
| chromeos_tbmc.c | ||
| cros_ec_debugfs.c | ||
| cros_ec_i2c.c | ||
| cros_ec_lightbar.c | ||
| cros_ec_lpc.c | ||
| cros_ec_lpc_mec.c | ||
| cros_ec_lpc_mec.h | ||
| cros_ec_lpc_reg.c | ||
| cros_ec_lpc_reg.h | ||
| cros_ec_proto.c | ||
| cros_ec_rpmsg.c | ||
| cros_ec_spi.c | ||
| cros_ec_sysfs.c | ||
| cros_ec_trace.c | ||
| cros_ec_trace.h | ||
| cros_ec_vbc.c | ||
| cros_kbd_led_backlight.c | ||
| cros_usbpd_logger.c | ||
| Kconfig | ||
| Makefile | ||