hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/sound/core/pcm_trace.h
....@@ -141,6 +141,32 @@
141141 )
142142 );
143143
144
+TRACE_EVENT(applptr_start,
145
+ TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_uframes_t size),
146
+ TP_ARGS(substream, size),
147
+ TP_STRUCT__entry(
148
+ __field( unsigned int, card )
149
+ __field( unsigned int, device )
150
+ __field( unsigned int, number )
151
+ __field( unsigned int, stream )
152
+ __field( snd_pcm_uframes_t, size )
153
+ ),
154
+ TP_fast_assign(
155
+ __entry->card = (substream)->pcm->card->number;
156
+ __entry->device = (substream)->pcm->device;
157
+ __entry->number = (substream)->number;
158
+ __entry->stream = (substream)->stream;
159
+ __entry->size = (size);
160
+ ),
161
+ TP_printk("pcmC%dD%d%s/sub%d: size=%lu",
162
+ __entry->card,
163
+ __entry->device,
164
+ __entry->stream ? "c" : "p",
165
+ __entry->number,
166
+ __entry->size
167
+ )
168
+);
169
+
144170 #endif /* _PCM_TRACE_H */
145171
146172 /* This part must be outside protection */