~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/trace/events/sof.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/trace/events/sof.h (Version linux-6.12-rc7) and /include/trace/events/sof.h (Version linux-5.15.171)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * Copyright(c) 2022 Intel Corporation            
  4  *                                                
  5  * Author: Noah Klayman <noah.klayman@intel.co    
  6  */                                               
  7                                                   
  8 #undef TRACE_SYSTEM                               
  9 #define TRACE_SYSTEM sof                          
 10                                                   
 11 #if !defined(_TRACE_SOF_H) || defined(TRACE_HE    
 12 #define _TRACE_SOF_H                              
 13 #include <linux/tracepoint.h>                     
 14 #include <linux/types.h>                          
 15 #include <sound/sof/stream.h>                     
 16 #include "../../../sound/soc/sof/sof-audio.h"     
 17                                                   
 18 DECLARE_EVENT_CLASS(sof_widget_template,          
 19         TP_PROTO(struct snd_sof_widget *swidge    
 20         TP_ARGS(swidget),                         
 21         TP_STRUCT__entry(                         
 22                 __string(name, swidget->widget    
 23                 __field(int, use_count)           
 24         ),                                        
 25         TP_fast_assign(                           
 26                 __assign_str(name);               
 27                 __entry->use_count = swidget->    
 28         ),                                        
 29         TP_printk("name=%s use_count=%d", __ge    
 30 );                                                
 31                                                   
 32 DEFINE_EVENT(sof_widget_template, sof_widget_s    
 33         TP_PROTO(struct snd_sof_widget *swidge    
 34         TP_ARGS(swidget)                          
 35 );                                                
 36                                                   
 37 DEFINE_EVENT(sof_widget_template, sof_widget_f    
 38         TP_PROTO(struct snd_sof_widget *swidge    
 39         TP_ARGS(swidget)                          
 40 );                                                
 41                                                   
 42 TRACE_EVENT(sof_ipc3_period_elapsed_position,     
 43         TP_PROTO(struct snd_sof_dev *sdev, str    
 44         TP_ARGS(sdev, posn),                      
 45         TP_STRUCT__entry(                         
 46                 __string(device_name, dev_name    
 47                 __field(u64, host_posn)           
 48                 __field(u64, dai_posn)            
 49                 __field(u64, wallclock)           
 50         ),                                        
 51         TP_fast_assign(                           
 52                 __assign_str(device_name);        
 53                 __entry->host_posn = posn->hos    
 54                 __entry->dai_posn = posn->dai_    
 55                 __entry->wallclock = posn->wal    
 56         ),                                        
 57         TP_printk("device_name=%s host_posn=%#    
 58                   __get_str(device_name), __en    
 59                   __entry->wallclock)             
 60 );                                                
 61                                                   
 62 TRACE_EVENT(sof_pcm_pointer_position,             
 63         TP_PROTO(struct snd_sof_dev *sdev,        
 64                 struct snd_sof_pcm *spcm,         
 65                 struct snd_pcm_substream *subs    
 66                 snd_pcm_uframes_t dma_posn,       
 67                 snd_pcm_uframes_t dai_posn        
 68         ),                                        
 69         TP_ARGS(sdev, spcm, substream, dma_pos    
 70         TP_STRUCT__entry(                         
 71                 __string(device_name, dev_name    
 72                 __field(u32, pcm_id)              
 73                 __field(int, stream)              
 74                 __field(unsigned long, dma_pos    
 75                 __field(unsigned long, dai_pos    
 76         ),                                        
 77         TP_fast_assign(                           
 78                 __assign_str(device_name);        
 79                 __entry->pcm_id = le32_to_cpu(    
 80                 __entry->stream = substream->s    
 81                 __entry->dma_posn = dma_posn;     
 82                 __entry->dai_posn = dai_posn;     
 83         ),                                        
 84         TP_printk("device_name=%s pcm_id=%d st    
 85                   __get_str(device_name), __en    
 86                   __entry->dma_posn, __entry->    
 87 );                                                
 88                                                   
 89 TRACE_EVENT(sof_stream_position_ipc_rx,           
 90         TP_PROTO(struct device *dev),             
 91         TP_ARGS(dev),                             
 92         TP_STRUCT__entry(                         
 93                 __string(device_name, dev_name    
 94         ),                                        
 95         TP_fast_assign(                           
 96                 __assign_str(device_name);        
 97         ),                                        
 98         TP_printk("device_name=%s", __get_str(    
 99 );                                                
100                                                   
101 TRACE_EVENT(sof_ipc4_fw_config,                   
102         TP_PROTO(struct snd_sof_dev *sdev, cha    
103         TP_ARGS(sdev, key, value),                
104         TP_STRUCT__entry(                         
105                 __string(device_name, dev_name    
106                 __string(key, key)                
107                 __field(u32, value)               
108         ),                                        
109         TP_fast_assign(                           
110                 __assign_str(device_name);        
111                 __assign_str(key);                
112                 __entry->value = value;           
113         ),                                        
114         TP_printk("device_name=%s key=%s value    
115                   __get_str(device_name), __ge    
116 );                                                
117                                                   
118 #endif /* _TRACE_SOF_H */                         
119                                                   
120 /* This part must be outside protection */        
121 #include <trace/define_trace.h>                   
122                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php