/linux-6.6.21/tools/perf/ |
D | builtin-trace.c | 128 struct trace { struct 1436 struct trace *trace) in thread__fd_path() argument 1440 if (ttrace == NULL || trace->fd_path_disabled) in thread__fd_path() 1447 if (!trace->live) in thread__fd_path() 1449 ++trace->stats.proc_getname; in thread__fd_path() 1461 const char *path = thread__fd_path(arg->thread, fd, arg->trace); in syscall_arg__scnprintf_fd() 1469 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size) in pid__scnprintf_fd() argument 1472 struct thread *thread = machine__find_thread(trace->host, pid, pid); in pid__scnprintf_fd() 1475 const char *path = thread__fd_path(thread, fd, trace); in pid__scnprintf_fd() 1532 if (!arg->trace->vfs_getname) in syscall_arg__scnprintf_filename() [all …]
|
/linux-6.6.21/tools/verification/rv/src/ |
D | trace.c | 48 struct trace_instance *trace = context; in collect_registered_events() local 49 struct trace_seq *s = trace->seq; in collect_registered_events() 65 void trace_instance_destroy(struct trace_instance *trace) in trace_instance_destroy() argument 67 if (trace->inst) { in trace_instance_destroy() 68 destroy_instance(trace->inst); in trace_instance_destroy() 69 trace->inst = NULL; in trace_instance_destroy() 72 if (trace->seq) { in trace_instance_destroy() 73 free(trace->seq); in trace_instance_destroy() 74 trace->seq = NULL; in trace_instance_destroy() 77 if (trace->tep) { in trace_instance_destroy() [all …]
|
/linux-6.6.21/arch/openrisc/kernel/ |
D | stacktrace.c | 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() 60 trace->skip--; in save_stack_address_nosched() [all …]
|
/linux-6.6.21/arch/mips/kernel/ |
D | stacktrace.c | 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() 58 trace->entries[trace->nr_entries++] = pc; in save_context_stack() [all …]
|
/linux-6.6.21/arch/sh/kernel/ |
D | stacktrace.c | 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() 61 trace->skip--; in save_stack_address_nosched() [all …]
|
/linux-6.6.21/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/ |
D | tracepoints.rst | 11 kernel tracepoints interfaces (refer to Documentation/trace/ftrace.rst). 17 - mlx5e_configure_flower: trace flower filter actions and cookies offloaded to mlx5:: 20 $ cat /sys/kernel/tracing/trace 24 - mlx5e_delete_flower: trace flower filter actions and cookies deleted from mlx5:: 27 $ cat /sys/kernel/tracing/trace 31 - mlx5e_stats_flower: trace flower stats request:: 34 $ cat /sys/kernel/tracing/trace 38 - mlx5e_tc_update_neigh_used_value: trace tunnel rule neigh update value offloaded to mlx5:: 41 $ cat /sys/kernel/tracing/trace 45 - mlx5e_rep_neigh_update: trace neigh update tasks scheduled due to neigh state change events:: [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 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 30 trace-agent.h: includes all structures and some macros [all …]
|
/linux-6.6.21/arch/sparc/kernel/ |
D | stacktrace.c | 14 struct stack_trace *trace, in __save_stack_trace() argument 55 if (trace->skip > 0) in __save_stack_trace() 56 trace->skip--; in __save_stack_trace() 58 trace->entries[trace->nr_entries++] = pc; in __save_stack_trace() 66 if (trace->nr_entries < in __save_stack_trace() 67 trace->max_entries) in __save_stack_trace() 68 trace->entries[trace->nr_entries++] = pc; in __save_stack_trace() 74 } while (trace->nr_entries < trace->max_entries); in __save_stack_trace() 77 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 79 __save_stack_trace(current_thread_info(), trace, false); in save_stack_trace() [all …]
|
/linux-6.6.21/tools/testing/selftests/ftrace/test.d/event/ |
D | trace_printk.tc | 5 rmmod trace-printk ||: 6 if ! modprobe trace-printk ; then 14 grep -q ": This .* trace_bputs" trace 15 grep -q ": This .* trace_puts" trace 16 grep -q ": This .* trace_bprintk" trace 17 grep -q ": This .* trace_printk" trace 19 grep -q ": (irq) .* trace_bputs" trace 20 grep -q ": (irq) .* trace_puts" trace 21 grep -q ": (irq) .* trace_bprintk" trace 22 grep -q ": (irq) .* trace_printk" trace [all …]
|
/linux-6.6.21/arch/arc/kernel/ |
D | stacktrace.c | 188 struct stack_trace *trace = arg; in __collect_all() local 190 if (trace->skip > 0) in __collect_all() 191 trace->skip--; in __collect_all() 193 trace->entries[trace->nr_entries++] = address; in __collect_all() 195 if (trace->nr_entries >= trace->max_entries) in __collect_all() 203 struct stack_trace *trace = arg; in __collect_all_but_sched() local 208 if (trace->skip > 0) in __collect_all_but_sched() 209 trace->skip--; in __collect_all_but_sched() 211 trace->entries[trace->nr_entries++] = address; in __collect_all_but_sched() 213 if (trace->nr_entries >= trace->max_entries) in __collect_all_but_sched() [all …]
|
/linux-6.6.21/tools/tracing/rtla/src/ |
D | osnoise_hist.c | 161 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist() 162 tracefs_hist_destroy(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist() 182 data->trace_hist = tracefs_hist_alloc(tool->trace.tep, "osnoise", "sample_threshold", in osnoise_init_trace_hist() 191 retval = tracefs_hist_start(tool->trace.inst, data->trace_hist); in osnoise_init_trace_hist() 211 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_read_trace_hist() 213 content = tracefs_event_file_read(tool->trace.inst, "osnoise", in osnoise_read_trace_hist() 257 struct trace_seq *s = tool->trace.seq; in osnoise_hist_header() 295 struct trace_instance *trace, in osnoise_print_summary() argument 304 trace_seq_printf(trace->seq, "count:"); in osnoise_print_summary() 313 trace_seq_printf(trace->seq, "%9d ", data->hist[cpu].count); in osnoise_print_summary() [all …]
|
D | timerlat_hist.c | 216 struct trace_instance *trace = data; in timerlat_hist_handler() local 221 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler() 238 struct trace_seq *s = tool->trace.seq; in timerlat_hist_header() 284 struct trace_instance *trace, in timerlat_print_summary() argument 293 trace_seq_printf(trace->seq, "count:"); in timerlat_print_summary() 303 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_summary() 307 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_summary() 311 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_summary() 314 trace_seq_printf(trace->seq, "\n"); in timerlat_print_summary() 317 trace_seq_printf(trace->seq, "min: "); in timerlat_print_summary() [all …]
|
D | trace.c | 118 struct trace_instance *trace = context; in collect_registered_events() local 119 struct trace_seq *s = trace->seq; in collect_registered_events() 132 void trace_instance_destroy(struct trace_instance *trace) in trace_instance_destroy() argument 134 if (trace->inst) { in trace_instance_destroy() 135 disable_tracer(trace->inst); in trace_instance_destroy() 136 destroy_instance(trace->inst); in trace_instance_destroy() 137 trace->inst = NULL; in trace_instance_destroy() 140 if (trace->seq) { in trace_instance_destroy() 141 free(trace->seq); in trace_instance_destroy() 142 trace->seq = NULL; in trace_instance_destroy() [all …]
|
D | timerlat_top.c | 159 struct trace_instance *trace = context; in timerlat_top_handler() local 165 top = container_of(trace, struct osnoise_tool, trace); in timerlat_top_handler() 184 struct trace_seq *s = top->trace.seq; in timerlat_top_header() 224 struct trace_seq *s = top->trace.seq; in timerlat_top_print() 301 struct trace_instance *trace = &top->trace; in timerlat_print_stats() local 312 clear_terminal(trace->seq); in timerlat_print_stats() 322 trace_seq_do_printf(trace->seq); in timerlat_print_stats() 323 trace_seq_reset(trace->seq); in timerlat_print_stats() 724 tep_register_event_handler(top->trace.tep, -1, "ftrace", "timerlat", in timerlat_init_top() 760 struct trace_instance *trace; in timerlat_top_main() local [all …]
|
/linux-6.6.21/arch/x86/mm/ |
D | mmio-mod.c | 135 struct remap_trace *trace = p->private; in pre() local 147 my_trace->phys = addr - trace->probe.addr + trace->phys; in pre() 148 my_trace->map_id = trace->id; in pre() 223 struct remap_trace *trace = kmalloc(sizeof(*trace), GFP_KERNEL); in ioremap_trace_core() local 232 if (!trace) { in ioremap_trace_core() 237 *trace = (struct remap_trace) { in ioremap_trace_core() 243 .private = trace in ioremap_trace_core() 248 map.map_id = trace->id; in ioremap_trace_core() 252 kfree(trace); in ioremap_trace_core() 257 list_add_tail(&trace->list, &trace_list); in ioremap_trace_core() [all …]
|
/linux-6.6.21/arch/microblaze/kernel/ |
D | unwind.c | 157 struct stack_trace *trace, 165 unsigned long fp, struct stack_trace *trace, in unwind_trap() argument 185 struct stack_trace *trace, in microblaze_unwind_inner() argument 216 if (!trace) in microblaze_unwind_inner() 218 unwind_trap(task, pc, fp, trace, loglvl); in microblaze_unwind_inner() 224 if (trace) { in microblaze_unwind_inner() 226 if (trace->skip > 0) in microblaze_unwind_inner() 227 trace->skip--; in microblaze_unwind_inner() 229 trace->entries[trace->nr_entries++] = pc; in microblaze_unwind_inner() 231 if (trace->nr_entries >= trace->max_entries) in microblaze_unwind_inner() [all …]
|
/linux-6.6.21/arch/um/kernel/ |
D | stacktrace.c | 46 struct stack_trace *trace = data; in save_addr() local 50 if (trace->nr_entries >= trace->max_entries) in save_addr() 53 trace->entries[trace->nr_entries++] = address; in save_addr() 60 static void __save_stack_trace(struct task_struct *tsk, struct stack_trace *trace) in __save_stack_trace() argument 62 dump_trace(tsk, &dump_ops, trace); in __save_stack_trace() 65 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 67 __save_stack_trace(current, trace); in save_stack_trace() 71 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument 73 __save_stack_trace(tsk, trace); in save_stack_trace_tsk()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | stacktrace.c | 15 struct stack_trace *trace = arg; in ia64_do_save_stack() local 17 int skip = trace->skip; in ia64_do_save_stack() 19 trace->nr_entries = 0; in ia64_do_save_stack() 25 trace->entries[trace->nr_entries++] = ip; in ia64_do_save_stack() 26 if (trace->nr_entries == trace->max_entries) in ia64_do_save_stack() 36 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 38 unw_init_running(ia64_do_save_stack, trace); in save_stack_trace()
|
/linux-6.6.21/kernel/trace/ |
D | trace_selftest.c | 97 static inline void warn_failed_init_tracer(struct tracer *trace, int init_ret) in warn_failed_init_tracer() argument 100 trace->name, init_ret); in warn_failed_init_tracer() 356 static int trace_selftest_startup_dynamic_tracing(struct tracer *trace, in trace_selftest_startup_dynamic_tracing() argument 386 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing() 388 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_dynamic_tracing() 424 trace->reset(tr); in trace_selftest_startup_dynamic_tracing() 432 trace->reset(tr); in trace_selftest_startup_dynamic_tracing() 572 # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; }) argument 691 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_function() argument 710 ret = tracer_init(trace, tr); in trace_selftest_startup_function() [all …]
|
D | trace_preemptirq.c | 27 #define trace(point) trace_##point macro 29 #define trace(point) if (!in_nmi()) trace_##point##_rcuidle macro 45 trace(irq_enable)(CALLER_ADDR0, CALLER_ADDR1); in trace_hardirqs_on_prepare() 56 trace(irq_enable)(CALLER_ADDR0, CALLER_ADDR1); in trace_hardirqs_on() 78 trace(irq_disable)(CALLER_ADDR0, CALLER_ADDR1); in trace_hardirqs_off_finish() 92 trace(irq_disable)(CALLER_ADDR0, CALLER_ADDR1); in trace_hardirqs_off() 103 trace(preempt_enable)(a0, a1); in trace_preempt_on() 109 trace(preempt_disable)(a0, a1); in trace_preempt_off()
|
/linux-6.6.21/net/ipv6/ |
D | ioam6_iptunnel.c | 79 static bool ioam6_validate_trace_hdr(struct ioam6_trace_hdr *trace) in ioam6_validate_trace_hdr() argument 83 if (!trace->type_be32 || !trace->remlen || in ioam6_validate_trace_hdr() 84 trace->remlen > IOAM6_TRACE_DATA_SIZE_MAX / 4 || in ioam6_validate_trace_hdr() 85 trace->type.bit12 | trace->type.bit13 | trace->type.bit14 | in ioam6_validate_trace_hdr() 86 trace->type.bit15 | trace->type.bit16 | trace->type.bit17 | in ioam6_validate_trace_hdr() 87 trace->type.bit18 | trace->type.bit19 | trace->type.bit20 | in ioam6_validate_trace_hdr() 88 trace->type.bit21) in ioam6_validate_trace_hdr() 91 trace->nodelen = 0; in ioam6_validate_trace_hdr() 92 fields = be32_to_cpu(trace->type_be32); in ioam6_validate_trace_hdr() 94 trace->nodelen += hweight32(fields & IOAM6_MASK_SHORT_FIELDS) in ioam6_validate_trace_hdr() [all …]
|
/linux-6.6.21/kernel/ |
D | stacktrace.c | 248 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument 254 save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) in save_stack_trace_regs() argument 270 struct stack_trace trace = { in stack_trace_save() local 276 save_stack_trace(&trace); in stack_trace_save() 277 return trace.nr_entries; in stack_trace_save() 294 struct stack_trace trace = { in stack_trace_save_tsk() local 301 save_stack_trace_tsk(task, &trace); in stack_trace_save_tsk() 302 return trace.nr_entries; in stack_trace_save_tsk() 317 struct stack_trace trace = { in stack_trace_save_regs() local 323 save_stack_trace_regs(regs, &trace); in stack_trace_save_regs() [all …]
|
/linux-6.6.21/kernel/bpf/ |
D | stackmap.c | 211 struct perf_callchain_entry *trace, u64 flags) in __bpf_get_stackid() argument 221 if (trace->nr <= skip) in __bpf_get_stackid() 225 trace_nr = trace->nr - skip; in __bpf_get_stackid() 227 ips = trace->ip + skip; in __bpf_get_stackid() 286 struct perf_callchain_entry *trace; in BPF_CALL_3() local 297 trace = get_perf_callchain(regs, 0, kernel, user, max_depth, in BPF_CALL_3() 300 if (unlikely(!trace)) in BPF_CALL_3() 304 return __bpf_get_stackid(map, trace, flags); in BPF_CALL_3() 316 static __u64 count_kernel_ip(struct perf_callchain_entry *trace) in count_kernel_ip() argument 320 while (nr_kernel < trace->nr) { in count_kernel_ip() [all …]
|
/linux-6.6.21/arch/csky/kernel/ |
D | stacktrace.c | 123 struct stack_trace *trace = arg; in __save_trace() local 127 if (unlikely(trace->skip > 0)) { in __save_trace() 128 trace->skip--; in __save_trace() 132 trace->entries[trace->nr_entries++] = pc; in __save_trace() 133 return (trace->nr_entries >= trace->max_entries); in __save_trace() 144 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument 146 walk_stackframe(tsk, NULL, save_trace, trace); in save_stack_trace_tsk() 150 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 152 save_stack_trace_tsk(NULL, trace); in save_stack_trace()
|