]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_trace: Match trace commands with EC commands
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 21 Oct 2019 11:33:29 +0000 (13:33 +0200)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 10 Dec 2019 09:14:02 +0000 (10:14 +0100)
commitc222398750113e2f7d6ca59ced0adc10a1ba0fb7
tree22d1db59bd5cba8e1882ddc078388bed6e5f300e
parent7855fcc07be326322b44982a21760fd9bd8e2b92
platform/chrome: cros_ec_trace: Match trace commands with EC commands

There are some EC commands that are not included yet as trace commands,
in order to get all the traces for the all supported commands match the
commands accordingly.

Note that a change, adding or removing an EC command, should be
reflected in the cros_ec_trace.c file in order to avoid mismatches
again.

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/platform_data/cros_ec_commands.h

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec_trace.c