| /kernel/linux/linux-4.19/tools/virtio/virtio-trace/ |
| D | README | 1 Trace Agent for virtio-trace 4 Trace agent is a user tool for sending trace data of a guest to a Host in low 5 overhead. Trace agent has the following functions: 8 - write trace data to stdout by using -o option 11 The trace agent operates as follows: 16 4) After the controller of the trace agent receives a start order from a host, 18 5) The read/write threads start to read trace data from ring-buffers and 21 stop to read trace data. 28 Makefile: Makefile of trace agent for virtio-trace 29 trace-agent.c: includes main function, sets up for operating trace agent [all …]
|
| /kernel/linux/linux-5.10/tools/virtio/virtio-trace/ |
| D | README | 1 Trace Agent for virtio-trace 4 Trace agent is a user tool for sending trace data of a guest to a Host in low 5 overhead. Trace agent has the following functions: 8 - write trace data to stdout by using -o option 11 The trace agent operates as follows: 16 4) After the controller of the trace agent receives a start order from a host, 18 5) The read/write threads start to read trace data from ring-buffers and 21 stop to read trace data. 28 Makefile: Makefile of trace agent for virtio-trace 29 trace-agent.c: includes main function, sets up for operating trace agent [all …]
|
| /kernel/linux/linux-5.10/tools/perf/ |
| D | builtin-trace.c | 2 * builtin-trace.c 4 * Builtin 'trace' command: 6 * Display a continuously updated trace of any workload, CPU, specific PID, 12 * Initially based on the 'trace' prototype by Thomas Gleixner: 14 * http://lwn.net/Articles/415728/ ("Announcing a new utility: 'trace'") 52 #include "trace/beauty/beauty.h" 53 #include "trace-event.h" 117 struct trace { struct 289 * The evsel->priv as used by 'perf trace' 719 #include "trace/beauty/generated/fsconfig_arrays.c" [all …]
|
| /kernel/linux/linux-4.19/arch/x86/kernel/ |
| D | stacktrace.c | 2 * Stack trace management functions 15 static int save_stack_address(struct stack_trace *trace, unsigned long addr, in save_stack_address() argument 21 if (trace->skip > 0) { in save_stack_address() 22 trace->skip--; in save_stack_address() 26 if (trace->nr_entries >= trace->max_entries) in save_stack_address() 29 trace->entries[trace->nr_entries++] = addr; in save_stack_address() 33 static void noinline __save_stack_trace(struct stack_trace *trace, in __save_stack_trace() argument 41 save_stack_address(trace, regs->ip, nosched); in __save_stack_trace() 46 if (!addr || save_stack_address(trace, addr, nosched)) in __save_stack_trace() 50 if (trace->nr_entries < trace->max_entries) in __save_stack_trace() [all …]
|
| /kernel/linux/linux-4.19/tools/perf/ |
| D | builtin-trace.c | 2 * builtin-trace.c 4 * Builtin 'trace' command: 6 * Display a continuously updated trace of any workload, CPU, specific PID, 12 * Initially based on the 'trace' prototype by Thomas Gleixner: 14 * http://lwn.net/Articles/415728/ ("Announcing a new utility: 'trace'") 38 #include "trace/beauty/beauty.h" 39 #include "trace-event.h" 72 struct trace { struct 600 #include "trace/beauty/arch_errno_names.c" 601 #include "trace/beauty/eventfd.c" [all …]
|
| /kernel/linux/linux-4.19/drivers/hwtracing/intel_th/ |
| D | Kconfig | 2 tristate "Intel(R) Trace Hub controller" 5 Intel(R) Trace Hub (TH) is a set of hardware blocks (subdevices) that 6 produce, switch and output trace data from multiple hardware and 7 software sources over several types of trace output ports encoded 8 in System Trace Protocol (MIPI STPv2) and is intended to perform 15 Say Y here to enable Intel(R) Trace Hub controller support. 20 tristate "Intel(R) Trace Hub PCI controller" 23 Intel(R) Trace Hub may exist as a PCI device. This option enables 29 tristate "Intel(R) Trace Hub ACPI controller" 32 Intel(R) Trace Hub may exist as an ACPI device. This option enables [all …]
|
| /kernel/linux/linux-5.10/drivers/hwtracing/intel_th/ |
| D | Kconfig | 3 tristate "Intel(R) Trace Hub controller" 6 Intel(R) Trace Hub (TH) is a set of hardware blocks (subdevices) that 7 produce, switch and output trace data from multiple hardware and 8 software sources over several types of trace output ports encoded 9 in System Trace Protocol (MIPI STPv2) and is intended to perform 16 Say Y here to enable Intel(R) Trace Hub controller support. 21 tristate "Intel(R) Trace Hub PCI controller" 24 Intel(R) Trace Hub may exist as a PCI device. This option enables 30 tristate "Intel(R) Trace Hub ACPI controller" 33 Intel(R) Trace Hub may exist as an ACPI device. This option enables [all …]
|
| /kernel/linux/linux-4.19/arch/s390/kernel/ |
| D | stacktrace.c | 3 * Stack trace management functions 17 struct stack_trace *trace = data; in __save_address() local 21 if (trace->skip > 0) { in __save_address() 22 trace->skip--; in __save_address() 25 if (trace->nr_entries < trace->max_entries) { in __save_address() 26 trace->entries[trace->nr_entries++] = address; in __save_address() 42 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 47 dump_trace(save_address, trace, NULL, sp); in save_stack_trace() 48 if (trace->nr_entries < trace->max_entries) in save_stack_trace() 49 trace->entries[trace->nr_entries++] = ULONG_MAX; in save_stack_trace() [all …]
|
| /kernel/linux/linux-4.19/arch/sh/kernel/ |
| D | stacktrace.c | 4 * Stack trace management functions 31 struct stack_trace *trace = data; in save_stack_address() local 36 if (trace->skip > 0) { in save_stack_address() 37 trace->skip--; in save_stack_address() 41 if (trace->nr_entries < trace->max_entries) in save_stack_address() 42 trace->entries[trace->nr_entries++] = addr; in save_stack_address() 50 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 54 unwind_stack(current, NULL, sp, &save_stack_ops, trace); in save_stack_trace() 55 if (trace->nr_entries < trace->max_entries) in save_stack_trace() 56 trace->entries[trace->nr_entries++] = ULONG_MAX; in save_stack_trace() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/kernel/ |
| D | stacktrace.c | 90 struct stack_trace *trace; member 98 struct stack_trace *trace = data->trace; in save_trace() local 109 trace->entries[trace->nr_entries++] = addr; in save_trace() 111 if (trace->nr_entries >= trace->max_entries) in save_trace() 121 trace->entries[trace->nr_entries++] = regs->ARM_pc; in save_trace() 123 return trace->nr_entries >= trace->max_entries; in save_trace() 128 struct stack_trace *trace, unsigned int nosched) in __save_stack_trace() argument 133 data.trace = trace; in __save_stack_trace() 134 data.skip = trace->skip; in __save_stack_trace() 144 if (trace->nr_entries < trace->max_entries) in __save_stack_trace() [all …]
|
| /kernel/linux/linux-5.10/arch/mips/kernel/ |
| D | stacktrace.c | 3 * Stack trace management functions 17 static void save_raw_context_stack(struct stack_trace *trace, in save_raw_context_stack() argument 27 if (trace->skip > 0) in save_raw_context_stack() 28 trace->skip--; in save_raw_context_stack() 30 trace->entries[trace->nr_entries++] = addr; in save_raw_context_stack() 31 if (trace->nr_entries >= trace->max_entries) in save_raw_context_stack() 37 static void save_context_stack(struct stack_trace *trace, in save_context_stack() argument 50 save_raw_context_stack(trace, sp, savesched); in save_context_stack() 55 if (trace->skip > 0) in save_context_stack() 56 trace->skip--; in save_context_stack() [all …]
|
| /kernel/linux/linux-4.19/arch/mips/kernel/ |
| D | stacktrace.c | 2 * Stack trace management functions 16 static void save_raw_context_stack(struct stack_trace *trace, in save_raw_context_stack() argument 26 if (trace->skip > 0) in save_raw_context_stack() 27 trace->skip--; in save_raw_context_stack() 29 trace->entries[trace->nr_entries++] = addr; in save_raw_context_stack() 30 if (trace->nr_entries >= trace->max_entries) in save_raw_context_stack() 36 static void save_context_stack(struct stack_trace *trace, in save_context_stack() argument 49 save_raw_context_stack(trace, sp, savesched); in save_context_stack() 54 if (trace->skip > 0) in save_context_stack() 55 trace->skip--; in save_context_stack() [all …]
|
| /kernel/linux/linux-4.19/Documentation/trace/ |
| D | intel_th.rst | 2 Intel(R) Trace Hub (TH) 8 Intel(R) Trace Hub (TH) is a set of hardware blocks that produce, 9 switch and output trace data from multiple hardware and software 10 sources over several types of trace output ports encoded in System 11 Trace Protocol (MIPI STPv2) and is intended to perform full system 12 debugging. For more information on the hardware, see Intel(R) Trace 15 It consists of trace sources, trace destinations (outputs) and a 16 switch (Global Trace Hub, GTH). These devices are placed on a bus of 21 - Software Trace Hub (STH), trace source, which is a System Trace 23 - Memory Storage Unit (MSU), trace output, which allows storing [all …]
|
| /kernel/linux/linux-4.19/arch/parisc/kernel/ |
| D | stacktrace.c | 2 * Stack trace management functions 15 static void dump_trace(struct task_struct *task, struct stack_trace *trace) in dump_trace() argument 22 trace->nr_entries = 0; in dump_trace() 23 while (trace->nr_entries < trace->max_entries) { in dump_trace() 28 trace->entries[trace->nr_entries++] = info.ip; in dump_trace() 36 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 38 dump_trace(current, trace); in save_stack_trace() 39 if (trace->nr_entries < trace->max_entries) in save_stack_trace() 40 trace->entries[trace->nr_entries++] = ULONG_MAX; in save_stack_trace() 44 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument [all …]
|
| /kernel/linux/linux-4.19/arch/openrisc/kernel/ |
| D | stacktrace.c | 2 * Stack trace utility for OpenRISC 28 struct stack_trace *trace = data; in save_stack_address() local 33 if (trace->skip > 0) { in save_stack_address() 34 trace->skip--; in save_stack_address() 38 if (trace->nr_entries < trace->max_entries) in save_stack_address() 39 trace->entries[trace->nr_entries++] = addr; in save_stack_address() 42 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 44 unwind_stack(trace, (unsigned long *) &trace, save_stack_address); in save_stack_trace() 51 struct stack_trace *trace = (struct stack_trace *)data; in save_stack_address_nosched() local 59 if (trace->skip > 0) { in save_stack_address_nosched() [all …]
|
| /kernel/linux/linux-5.10/arch/openrisc/kernel/ |
| D | stacktrace.c | 2 * Stack trace utility for OpenRISC 28 struct stack_trace *trace = data; in save_stack_address() local 33 if (trace->skip > 0) { in save_stack_address() 34 trace->skip--; in save_stack_address() 38 if (trace->nr_entries < trace->max_entries) in save_stack_address() 39 trace->entries[trace->nr_entries++] = addr; in save_stack_address() 42 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 44 unwind_stack(trace, (unsigned long *) &trace, save_stack_address); in save_stack_trace() 51 struct stack_trace *trace = (struct stack_trace *)data; in save_stack_address_nosched() local 59 if (trace->skip > 0) { in save_stack_address_nosched() [all …]
|
| /kernel/linux/linux-5.10/Documentation/trace/coresight/ |
| D | coresight-etm4x-reference.rst | 23 :Trace Registers: {CONFIGR + others} 25 Bit select trace features. See ‘mode’ section below. Bits 26 in this will cause equivalent programming of trace config and 32 bitfield up to 32 bits setting trace features. 40 :Trace Registers: All 42 Reset all programming to trace nothing / no logic programmed. 50 :Trace Registers: PRGCTLR, All hardware regs. 53 and enables trace. 55 - = 0 : disable trace hardware. 63 :Trace Registers: None. [all …]
|
| /kernel/linux/linux-5.10/kernel/ |
| D | stacktrace.c | 5 * Stack trace management functions 18 * stack_trace_print - Print the entries in the stack trace 37 * stack_trace_snprint - Print the entries in the stack trace into a buffer 104 * stack_trace_save - Save a stack trace into a storage array 107 * @skipnr: Number of entries to skip at the start of the stack trace 109 * Return: Number of trace entries stored. 127 * stack_trace_save_tsk - Save a task stack trace into a storage array 131 * @skipnr: Number of entries to skip at the start of the stack trace 133 * Return: Number of trace entries stored. 155 * stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array [all …]
|
| /kernel/linux/linux-5.10/Documentation/trace/ |
| D | intel_th.rst | 4 Intel(R) Trace Hub (TH) 10 Intel(R) Trace Hub (TH) is a set of hardware blocks that produce, 11 switch and output trace data from multiple hardware and software 12 sources over several types of trace output ports encoded in System 13 Trace Protocol (MIPI STPv2) and is intended to perform full system 14 debugging. For more information on the hardware, see Intel(R) Trace 17 It consists of trace sources, trace destinations (outputs) and a 18 switch (Global Trace Hub, GTH). These devices are placed on a bus of 23 - Software Trace Hub (STH), trace source, which is a System Trace 25 - Memory Storage Unit (MSU), trace output, which allows storing [all …]
|
| /kernel/linux/linux-5.10/arch/sh/kernel/ |
| D | stacktrace.c | 5 * Stack trace management functions 23 struct stack_trace *trace = data; in save_stack_address() local 28 if (trace->skip > 0) { in save_stack_address() 29 trace->skip--; in save_stack_address() 33 if (trace->nr_entries < trace->max_entries) in save_stack_address() 34 trace->entries[trace->nr_entries++] = addr; in save_stack_address() 41 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 45 unwind_stack(current, NULL, sp, &save_stack_ops, trace); in save_stack_trace() 52 struct stack_trace *trace = (struct stack_trace *)data; in save_stack_address_nosched() local 60 if (trace->skip > 0) { in save_stack_address_nosched() [all …]
|
| /kernel/linux/linux-4.19/tools/testing/selftests/ftrace/test.d/kprobe/ |
| D | kprobe_ftrace.tc | 17 echo > trace 19 grep testprobe trace 20 ! grep '_do_fork <-' trace 24 echo > trace 26 grep testprobe trace 27 grep '_do_fork <-' trace 31 echo > trace 33 ! grep testprobe trace 34 grep '_do_fork <-' trace 39 echo > trace [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/ftrace/test.d/kprobe/ |
| D | kprobe_ftrace.tc | 13 echo > trace 15 grep testprobe trace 16 ! grep "$FUNCTION_FORK <-" trace 20 echo > trace 22 grep testprobe trace 23 grep "$FUNCTION_FORK <-" trace 27 echo > trace 29 ! grep testprobe trace 30 grep "$FUNCTION_FORK <-" trace 35 echo > trace [all …]
|
| /kernel/linux/linux-4.19/arch/arm64/kernel/ |
| D | stacktrace.c | 108 struct stack_trace *trace; member 116 struct stack_trace *trace = data->trace; in save_trace() local 126 trace->entries[trace->nr_entries++] = addr; in save_trace() 128 return trace->nr_entries >= trace->max_entries; in save_trace() 131 void save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) in save_stack_trace_regs() argument 136 data.trace = trace; in save_stack_trace_regs() 137 data.skip = trace->skip; in save_stack_trace_regs() 147 if (trace->nr_entries < trace->max_entries) in save_stack_trace_regs() 148 trace->entries[trace->nr_entries++] = ULONG_MAX; in save_stack_trace_regs() 152 struct stack_trace *trace, unsigned int nosched) in __save_stack_trace() argument [all …]
|
| /kernel/liteos_m/components/trace/ |
| D | los_trace.h | 33 * @defgroup los_trace Trace 53 * Trace Control agent task's priority. 62 …* Trace records the max number of objects(kernel object, like tasks), range is [0, LOSCFG_BASE_COR… 63 * if set to 0, trace will not record any object. 69 …* Trace tlv encode buffer size, the buffer is used to encode one piece raw frame to tlv message in… 75 * Trace error code: init trace failed. 79 * Solution: Follow the trace State Machine. 85 * Trace error code: Insufficient memory for trace buf init. 95 * Trace error code: Insufficient memory for trace struct. 99 * Solution: Increase trace buffer's size. [all …]
|
| /kernel/liteos_a/kernel/include/ |
| D | los_trace.h | 33 * @defgroup los_trace Trace 53 * Trace Control agent task's priority. 64 …* Trace records the max number of objects(kernel object, like tasks), range is [0, LOSCFG_BASE_COR… 65 * if set to 0, trace will not record any object. 71 …* Trace tlv encode buffer size, the buffer is used to encode one piece raw frame to tlv message in… 77 * Trace error code: init trace failed. 81 * Solution: Follow the trace State Machine. 87 * Trace error code: Insufficient memory for trace buf init. 97 * Trace error code: Insufficient memory for trace struct. 101 * Solution: Increase trace buffer's size. [all …]
|