Files
linux-stable-mirror/include/trace/events
Steven Rostedt 7b94000a8c ASoC: tracing: Export SND_SOC_DAPM_DIR_OUT to its value
[ Upstream commit 58300f8d6a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-16 13:39:29 +02:00
..
2024-01-05 15:13:30 +01:00
2021-06-29 10:53:52 -07:00
2021-09-08 11:50:24 -07:00
2021-09-23 23:21:34 +08:00
2024-03-26 18:21:32 -04:00
2021-06-29 10:53:52 -07:00
2023-04-05 11:25:00 +02:00
2024-04-10 16:19:24 +02:00
2021-05-31 22:48:24 -04:00
2024-04-10 16:19:24 +02:00