]> asedeno.scripts.mit.edu Git - linux.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)
commit086338df1d6c3d717eb41f975a480571bb2d2973
tree22d1db59bd5cba8e1882ddc078388bed6e5f300e
parente42617b825f8073569da76dc4510bfa019b1c35a
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