| .. | .. |
|---|
| 141 | 141 | ) |
|---|
| 142 | 142 | ); |
|---|
| 143 | 143 | |
|---|
| 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 | + |
|---|
| 144 | 170 | #endif /* _PCM_TRACE_H */ |
|---|
| 145 | 171 | |
|---|
| 146 | 172 | /* This part must be outside protection */ |
|---|