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

TOMOYO Linux Cross Reference
Linux/include/sound/sof/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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

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


  1 /* SPDX-License-Identifier: (GPL-2.0-only OR B      1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
  2 /*                                                  2 /*
  3  * This file is provided under a dual BSD/GPLv      3  * This file is provided under a dual BSD/GPLv2 license.  When using or
  4  * redistributing this file, you may do so und      4  * redistributing this file, you may do so under either license.
  5  *                                                  5  *
  6  * Copyright(c) 2018 Intel Corporation         !!   6  * Copyright(c) 2018 Intel Corporation. All rights reserved.
  7  */                                                 7  */
  8                                                     8 
  9 #ifndef __INCLUDE_SOUND_SOF_TRACE_H__               9 #ifndef __INCLUDE_SOUND_SOF_TRACE_H__
 10 #define __INCLUDE_SOUND_SOF_TRACE_H__              10 #define __INCLUDE_SOUND_SOF_TRACE_H__
 11                                                    11 
 12 #include <sound/sof/header.h>                      12 #include <sound/sof/header.h>
 13 #include <sound/sof/stream.h>                      13 #include <sound/sof/stream.h>
 14                                                    14 
 15 /*                                                 15 /*
 16  * DMA for Trace                                   16  * DMA for Trace
 17  */                                                17  */
 18                                                    18 
 19 #define SOF_TRACE_FILENAME_SIZE         32         19 #define SOF_TRACE_FILENAME_SIZE         32
 20                                                    20 
 21 /* DMA for Trace params info - SOF_IPC_DEBUG_D     21 /* DMA for Trace params info - SOF_IPC_DEBUG_DMA_PARAMS */
 22 /* Deprecated - use sof_ipc_dma_trace_params_e     22 /* Deprecated - use sof_ipc_dma_trace_params_ext */
 23 struct sof_ipc_dma_trace_params {                  23 struct sof_ipc_dma_trace_params {
 24         struct sof_ipc_cmd_hdr hdr;                24         struct sof_ipc_cmd_hdr hdr;
 25         struct sof_ipc_host_buffer buffer;         25         struct sof_ipc_host_buffer buffer;
 26         uint32_t stream_tag;                       26         uint32_t stream_tag;
 27 }  __packed;                                       27 }  __packed;
 28                                                    28 
 29 /* DMA for Trace params info - SOF_IPC_DEBUG_D     29 /* DMA for Trace params info - SOF_IPC_DEBUG_DMA_PARAMS_EXT */
 30 struct sof_ipc_dma_trace_params_ext {              30 struct sof_ipc_dma_trace_params_ext {
 31         struct sof_ipc_cmd_hdr hdr;                31         struct sof_ipc_cmd_hdr hdr;
 32         struct sof_ipc_host_buffer buffer;         32         struct sof_ipc_host_buffer buffer;
 33         uint32_t stream_tag;                       33         uint32_t stream_tag;
 34         uint64_t timestamp_ns; /* in nanosecon     34         uint64_t timestamp_ns; /* in nanosecond */
 35         uint32_t reserved[8];                      35         uint32_t reserved[8];
 36 }  __packed;                                       36 }  __packed;
 37                                                    37 
 38 /* DMA for Trace params info - SOF_IPC_DEBUG_D     38 /* DMA for Trace params info - SOF_IPC_DEBUG_DMA_PARAMS */
 39 struct sof_ipc_dma_trace_posn {                    39 struct sof_ipc_dma_trace_posn {
 40         struct sof_ipc_reply rhdr;                 40         struct sof_ipc_reply rhdr;
 41         uint32_t host_offset;   /* Offset of D     41         uint32_t host_offset;   /* Offset of DMA host buffer */
 42         uint32_t overflow;      /* overflow by     42         uint32_t overflow;      /* overflow bytes if any */
 43         uint32_t messages;      /* total trace     43         uint32_t messages;      /* total trace messages */
 44 }  __packed;                                       44 }  __packed;
 45                                                << 
 46 /* Values used in sof_ipc_trace_filter_elem: * << 
 47                                                << 
 48 /* bits 6..0 */                                << 
 49 #define SOF_IPC_TRACE_FILTER_ELEM_SET_LEVEL    << 
 50 #define SOF_IPC_TRACE_FILTER_ELEM_BY_UUID      << 
 51 #define SOF_IPC_TRACE_FILTER_ELEM_BY_PIPE      << 
 52 #define SOF_IPC_TRACE_FILTER_ELEM_BY_COMP      << 
 53                                                << 
 54 /* bit 7 */                                    << 
 55 #define SOF_IPC_TRACE_FILTER_ELEM_FIN          << 
 56                                                << 
 57 /* bits 31..8: Unused */                       << 
 58                                                << 
 59 /** part of sof_ipc_trace_filter, ABI3.17 */   << 
 60 struct sof_ipc_trace_filter_elem {             << 
 61         uint32_t key;           /**< SOF_IPC_T << 
 62         uint32_t value;         /**< element v << 
 63 } __packed;                                    << 
 64                                                << 
 65 /** Runtime tracing filtration data - SOF_IPC_ << 
 66 struct sof_ipc_trace_filter {                  << 
 67         struct sof_ipc_cmd_hdr hdr;     /**< I << 
 68         uint32_t elem_cnt;              /**< n << 
 69         uint32_t reserved[8];           /**< r << 
 70         /** variable size array with new filte << 
 71         struct sof_ipc_trace_filter_elem elems << 
 72 } __packed;                                    << 
 73                                                    45 
 74 /*                                                 46 /*
 75  * Commom debug                                    47  * Commom debug
 76  */                                                48  */
 77                                                    49 
 78 /*                                                 50 /*
 79  * SOF panic codes                                 51  * SOF panic codes
 80  */                                                52  */
 81 #define SOF_IPC_PANIC_MAGIC                        53 #define SOF_IPC_PANIC_MAGIC                     0x0dead000
 82 #define SOF_IPC_PANIC_MAGIC_MASK                   54 #define SOF_IPC_PANIC_MAGIC_MASK                0x0ffff000
 83 #define SOF_IPC_PANIC_CODE_MASK                    55 #define SOF_IPC_PANIC_CODE_MASK                 0x00000fff
 84 #define SOF_IPC_PANIC_MEM                          56 #define SOF_IPC_PANIC_MEM                       (SOF_IPC_PANIC_MAGIC | 0x0)
 85 #define SOF_IPC_PANIC_WORK                         57 #define SOF_IPC_PANIC_WORK                      (SOF_IPC_PANIC_MAGIC | 0x1)
 86 #define SOF_IPC_PANIC_IPC                          58 #define SOF_IPC_PANIC_IPC                       (SOF_IPC_PANIC_MAGIC | 0x2)
 87 #define SOF_IPC_PANIC_ARCH                         59 #define SOF_IPC_PANIC_ARCH                      (SOF_IPC_PANIC_MAGIC | 0x3)
 88 #define SOF_IPC_PANIC_PLATFORM                     60 #define SOF_IPC_PANIC_PLATFORM                  (SOF_IPC_PANIC_MAGIC | 0x4)
 89 #define SOF_IPC_PANIC_TASK                         61 #define SOF_IPC_PANIC_TASK                      (SOF_IPC_PANIC_MAGIC | 0x5)
 90 #define SOF_IPC_PANIC_EXCEPTION                    62 #define SOF_IPC_PANIC_EXCEPTION                 (SOF_IPC_PANIC_MAGIC | 0x6)
 91 #define SOF_IPC_PANIC_DEADLOCK                     63 #define SOF_IPC_PANIC_DEADLOCK                  (SOF_IPC_PANIC_MAGIC | 0x7)
 92 #define SOF_IPC_PANIC_STACK                        64 #define SOF_IPC_PANIC_STACK                     (SOF_IPC_PANIC_MAGIC | 0x8)
 93 #define SOF_IPC_PANIC_IDLE                         65 #define SOF_IPC_PANIC_IDLE                      (SOF_IPC_PANIC_MAGIC | 0x9)
 94 #define SOF_IPC_PANIC_WFI                          66 #define SOF_IPC_PANIC_WFI                       (SOF_IPC_PANIC_MAGIC | 0xa)
 95 #define SOF_IPC_PANIC_ASSERT                       67 #define SOF_IPC_PANIC_ASSERT                    (SOF_IPC_PANIC_MAGIC | 0xb)
 96                                                    68 
 97 /* panic info include filename and line number     69 /* panic info include filename and line number
 98  * filename array will not include null termin     70  * filename array will not include null terminator if fully filled
 99  */                                                71  */
100 struct sof_ipc_panic_info {                        72 struct sof_ipc_panic_info {
101         struct sof_ipc_hdr hdr;                    73         struct sof_ipc_hdr hdr;
102         uint32_t code;                  /* SOF     74         uint32_t code;                  /* SOF_IPC_PANIC_ */
103         uint8_t filename[SOF_TRACE_FILENAME_SI     75         uint8_t filename[SOF_TRACE_FILENAME_SIZE];
104         uint32_t linenum;                          76         uint32_t linenum;
105 }  __packed;                                       77 }  __packed;
106                                                    78 
107 #endif                                             79 #endif
108                                                    80 

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