Files
linux/include/trace/events
Steven Rostedt 58300f8d6a ASoC: tracing: Export SND_SOC_DAPM_DIR_OUT to its value
The string SND_SOC_DAPM_DIR_OUT is printed in the snd_soc_dapm_path trace
event instead of its value:

   (((REC->path_dir) == SND_SOC_DAPM_DIR_OUT) ? "->" : "<-")

User space cannot parse this, as it has no idea what SND_SOC_DAPM_DIR_OUT
is. Use TRACE_DEFINE_ENUM() to convert it to its value:

   (((REC->path_dir) == 1) ? "->" : "<-")

So that user space tools, such as perf and trace-cmd, can parse it
correctly.

Reported-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Fixes: 6e588a0d83 ("ASoC: dapm: Consolidate path trace events")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20240416000303.04670cdf@rorschach.local.home
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-04-16 20:00:18 +09:00
..
2023-08-02 09:13:09 -06:00
2022-12-07 13:54:09 -08:00
2023-08-10 10:33:03 -05:00
2023-07-04 19:40:16 +01:00
2023-07-04 19:40:16 +01:00
2023-01-13 16:39:18 +01:00
2023-03-24 11:01:29 +01:00
2023-12-29 11:58:27 -08:00
2023-12-08 15:43:33 -05:00
2023-07-17 08:18:17 -06:00
2022-08-03 17:50:58 +02:00
2022-07-30 14:01:30 -04:00
2023-05-31 11:05:34 -04:00
2023-02-20 08:28:49 +00:00
2023-10-04 10:32:29 -07:00
2023-07-17 08:18:17 -06:00
2023-09-19 07:04:49 +02:00