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

TOMOYO Linux Cross Reference
Linux/sound/hda/trace.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 /sound/hda/trace.h (Version linux-6.12-rc7) and /sound/hda/trace.h (Version linux-5.19.17)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #undef TRACE_SYSTEM                                 2 #undef TRACE_SYSTEM
  3 #define TRACE_SYSTEM hda                            3 #define TRACE_SYSTEM hda
  4                                                     4 
  5 #if !defined(__HDAC_TRACE_H) || defined(TRACE_      5 #if !defined(__HDAC_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
  6 #define __HDAC_TRACE_H                              6 #define __HDAC_TRACE_H
  7                                                     7 
  8 #include <linux/tracepoint.h>                       8 #include <linux/tracepoint.h>
  9 #include <linux/device.h>                           9 #include <linux/device.h>
 10 #include <sound/hdaudio.h>                         10 #include <sound/hdaudio.h>
 11                                                    11 
 12 #ifndef HDAC_MSG_MAX                               12 #ifndef HDAC_MSG_MAX
 13 #define HDAC_MSG_MAX    500                        13 #define HDAC_MSG_MAX    500
 14 #endif                                             14 #endif
 15                                                    15 
 16 struct hdac_bus;                                   16 struct hdac_bus;
 17 struct hdac_codec;                                 17 struct hdac_codec;
 18                                                    18 
 19 TRACE_EVENT(hda_send_cmd,                          19 TRACE_EVENT(hda_send_cmd,
 20         TP_PROTO(struct hdac_bus *bus, unsigne     20         TP_PROTO(struct hdac_bus *bus, unsigned int cmd),
 21         TP_ARGS(bus, cmd),                         21         TP_ARGS(bus, cmd),
 22         TP_STRUCT__entry(                      !!  22         TP_STRUCT__entry(__dynamic_array(char, msg, HDAC_MSG_MAX)),
 23                 __string(name, dev_name((bus)- << 
 24                 __field(u32, cmd)              << 
 25         ),                                     << 
 26         TP_fast_assign(                            23         TP_fast_assign(
 27                 __assign_str(name);            !!  24                 snprintf(__get_str(msg), HDAC_MSG_MAX,
 28                 __entry->cmd = cmd;            !!  25                          "[%s:%d] val=0x%08x",
                                                   >>  26                          dev_name((bus)->dev), (cmd) >> 28, cmd);
 29         ),                                         27         ),
 30         TP_printk("[%s:%d] val=0x%08x", __get_ !!  28         TP_printk("%s", __get_str(msg))
 31 );                                                 29 );
 32                                                    30 
 33 TRACE_EVENT(hda_get_response,                      31 TRACE_EVENT(hda_get_response,
 34         TP_PROTO(struct hdac_bus *bus, unsigne     32         TP_PROTO(struct hdac_bus *bus, unsigned int addr, unsigned int res),
 35         TP_ARGS(bus, addr, res),                   33         TP_ARGS(bus, addr, res),
 36         TP_STRUCT__entry(                      !!  34         TP_STRUCT__entry(__dynamic_array(char, msg, HDAC_MSG_MAX)),
 37                 __string(name, dev_name((bus)- << 
 38                 __field(u32, addr)             << 
 39                 __field(u32, res)              << 
 40         ),                                     << 
 41         TP_fast_assign(                            35         TP_fast_assign(
 42                 __assign_str(name);            !!  36                 snprintf(__get_str(msg), HDAC_MSG_MAX,
 43                 __entry->addr = addr;          !!  37                          "[%s:%d] val=0x%08x",
 44                 __entry->res = res;            !!  38                          dev_name((bus)->dev), addr, res);
 45         ),                                         39         ),
 46         TP_printk("[%s:%d] val=0x%08x", __get_ !!  40         TP_printk("%s", __get_str(msg))
 47 );                                                 41 );
 48                                                    42 
 49 TRACE_EVENT(hda_unsol_event,                       43 TRACE_EVENT(hda_unsol_event,
 50         TP_PROTO(struct hdac_bus *bus, u32 res     44         TP_PROTO(struct hdac_bus *bus, u32 res, u32 res_ex),
 51         TP_ARGS(bus, res, res_ex),                 45         TP_ARGS(bus, res, res_ex),
 52         TP_STRUCT__entry(                      !!  46         TP_STRUCT__entry(__dynamic_array(char, msg, HDAC_MSG_MAX)),
 53                 __string(name, dev_name((bus)- << 
 54                 __field(u32, res)              << 
 55                 __field(u32, res_ex)           << 
 56         ),                                     << 
 57         TP_fast_assign(                            47         TP_fast_assign(
 58                 __assign_str(name);            !!  48                 snprintf(__get_str(msg), HDAC_MSG_MAX,
 59                 __entry->res = res;            !!  49                          "[%s:%d] res=0x%08x, res_ex=0x%08x",
 60                 __entry->res_ex = res_ex;      !!  50                          dev_name((bus)->dev), res_ex & 0x0f, res, res_ex);
 61         ),                                         51         ),
 62         TP_printk("[%s:%d] res=0x%08x, res_ex= !!  52         TP_printk("%s", __get_str(msg))
 63                   __entry->res_ex & 0x0f, __en << 
 64 );                                                 53 );
 65                                                    54 
 66 DECLARE_EVENT_CLASS(hdac_stream,                   55 DECLARE_EVENT_CLASS(hdac_stream,
 67         TP_PROTO(struct hdac_bus *bus, struct      56         TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
 68                                                    57 
 69         TP_ARGS(bus, azx_dev),                     58         TP_ARGS(bus, azx_dev),
 70                                                    59 
 71         TP_STRUCT__entry(                          60         TP_STRUCT__entry(
 72                 __field(unsigned char, stream_     61                 __field(unsigned char, stream_tag)
 73         ),                                         62         ),
 74                                                    63 
 75         TP_fast_assign(                            64         TP_fast_assign(
 76                 __entry->stream_tag = (azx_dev     65                 __entry->stream_tag = (azx_dev)->stream_tag;
 77         ),                                         66         ),
 78                                                    67 
 79         TP_printk("stream_tag: %d", __entry->s     68         TP_printk("stream_tag: %d", __entry->stream_tag)
 80 );                                                 69 );
 81                                                    70 
 82 DEFINE_EVENT(hdac_stream, snd_hdac_stream_star     71 DEFINE_EVENT(hdac_stream, snd_hdac_stream_start,
 83         TP_PROTO(struct hdac_bus *bus, struct      72         TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
 84         TP_ARGS(bus, azx_dev)                      73         TP_ARGS(bus, azx_dev)
 85 );                                                 74 );
 86                                                    75 
 87 DEFINE_EVENT(hdac_stream, snd_hdac_stream_stop     76 DEFINE_EVENT(hdac_stream, snd_hdac_stream_stop,
 88         TP_PROTO(struct hdac_bus *bus, struct      77         TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
 89         TP_ARGS(bus, azx_dev)                      78         TP_ARGS(bus, azx_dev)
 90 );                                                 79 );
 91                                                    80 
 92 #endif /* __HDAC_TRACE_H */                        81 #endif /* __HDAC_TRACE_H */
 93                                                    82 
 94 /* This part must be outside protection */         83 /* This part must be outside protection */
 95 #undef TRACE_INCLUDE_PATH                          84 #undef TRACE_INCLUDE_PATH
 96 #define TRACE_INCLUDE_PATH .                       85 #define TRACE_INCLUDE_PATH .
 97                                                    86 
 98 #undef TRACE_INCLUDE_FILE                          87 #undef TRACE_INCLUDE_FILE
 99 #define TRACE_INCLUDE_FILE trace                   88 #define TRACE_INCLUDE_FILE trace
100                                                    89 
101 #include <trace/define_trace.h>                    90 #include <trace/define_trace.h>
102                                                    91 

~ [ 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