diff options
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules/0001-Fix-ASoC-snd_doc_dapm-on-linux-6.9-rc1.patch')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules/0001-Fix-ASoC-snd_doc_dapm-on-linux-6.9-rc1.patch | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/0001-Fix-ASoC-snd_doc_dapm-on-linux-6.9-rc1.patch b/meta/recipes-kernel/lttng/lttng-modules/0001-Fix-ASoC-snd_doc_dapm-on-linux-6.9-rc1.patch new file mode 100644 index 0000000000..9d5fd0de60 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-modules/0001-Fix-ASoC-snd_doc_dapm-on-linux-6.9-rc1.patch | |||
@@ -0,0 +1,93 @@ | |||
1 | From fec007d9630e010062cf5699a08460f71f46b527 Mon Sep 17 00:00:00 2001 | ||
2 | From: Kienan Stewart <kstewart@efficios.com> | ||
3 | Date: Mon, 25 Mar 2024 08:54:42 -0400 | ||
4 | Subject: [PATCH 1/4] Fix: ASoC snd_doc_dapm on linux 6.9-rc1 | ||
5 | |||
6 | See upstream commit: | ||
7 | |||
8 | commit 7df3eb4cdb6bbfa482f51548b9fd47c2723c68ba | ||
9 | Author: Luca Ceresoli <luca.ceresoli@bootlin.com> | ||
10 | Date: Wed Mar 6 10:30:01 2024 +0100 | ||
11 | |||
12 | ASoC: trace: add event to snd_soc_dapm trace events | ||
13 | |||
14 | Add the event value to the snd_soc_dapm_start and snd_soc_dapm_done trace | ||
15 | events to make them more informative. | ||
16 | |||
17 | Trace before: | ||
18 | |||
19 | aplay-229 [000] 250.140309: snd_soc_dapm_start: card=vscn-2046 | ||
20 | aplay-229 [000] 250.167531: snd_soc_dapm_done: card=vscn-2046 | ||
21 | aplay-229 [000] 251.169588: snd_soc_dapm_start: card=vscn-2046 | ||
22 | aplay-229 [000] 251.195245: snd_soc_dapm_done: card=vscn-2046 | ||
23 | |||
24 | Trace after: | ||
25 | |||
26 | aplay-214 [000] 693.290612: snd_soc_dapm_start: card=vscn-2046 event=1 | ||
27 | aplay-214 [000] 693.315508: snd_soc_dapm_done: card=vscn-2046 event=1 | ||
28 | aplay-214 [000] 694.537349: snd_soc_dapm_start: card=vscn-2046 event=2 | ||
29 | aplay-214 [000] 694.563241: snd_soc_dapm_done: card=vscn-2046 event=2 | ||
30 | |||
31 | Upstream-Status: Backport [88c4e0fe Fix: ASoC snd_doc_dapm on linux 6.9-rc1] | ||
32 | |||
33 | Change-Id: If0d33544b8dd1dfb3d12ca9390892190fc0444b0 | ||
34 | Signed-off-by: Kienan Stewart <kstewart@efficios.com> | ||
35 | Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
36 | --- | ||
37 | include/instrumentation/events/asoc.h | 33 +++++++++++++++++++++++++++ | ||
38 | 1 file changed, 33 insertions(+) | ||
39 | |||
40 | diff --git a/include/instrumentation/events/asoc.h b/include/instrumentation/events/asoc.h | ||
41 | index 21d13a0f..5126d4c1 100644 | ||
42 | --- a/include/instrumentation/events/asoc.h | ||
43 | +++ b/include/instrumentation/events/asoc.h | ||
44 | @@ -51,6 +51,38 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_card, snd_soc_bias_level_done, | ||
45 | |||
46 | ) | ||
47 | |||
48 | +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,9,0)) | ||
49 | +LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_dapm_basic, | ||
50 | + | ||
51 | + TP_PROTO(struct snd_soc_card *card, int event), | ||
52 | + | ||
53 | + TP_ARGS(card, event), | ||
54 | + | ||
55 | + TP_FIELDS( | ||
56 | + ctf_string(name, card->name) | ||
57 | + ctf_integer(int, event, event) | ||
58 | + ) | ||
59 | +) | ||
60 | +LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_basic, snd_soc_dapm_start, | ||
61 | + | ||
62 | + asoc_snd_soc_dapm_start, | ||
63 | + | ||
64 | + TP_PROTO(struct snd_soc_card *card, int event), | ||
65 | + | ||
66 | + TP_ARGS(card, event) | ||
67 | + | ||
68 | +) | ||
69 | + | ||
70 | +LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_basic, snd_soc_dapm_done, | ||
71 | + | ||
72 | + asoc_snd_soc_dapm_done, | ||
73 | + | ||
74 | + TP_PROTO(struct snd_soc_card *card, int event), | ||
75 | + | ||
76 | + TP_ARGS(card, event) | ||
77 | + | ||
78 | +) | ||
79 | +#else | ||
80 | LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_dapm_basic, | ||
81 | |||
82 | TP_PROTO(struct snd_soc_card *card), | ||
83 | @@ -81,6 +113,7 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_basic, snd_soc_dapm_done, | ||
84 | TP_ARGS(card) | ||
85 | |||
86 | ) | ||
87 | +#endif | ||
88 | |||
89 | LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_dapm_widget, | ||
90 | |||
91 | -- | ||
92 | 2.39.2 | ||
93 | |||