Home
last modified time | relevance | path

Searched refs:trace (Results 1 – 25 of 734) sorted by relevance

12345678910>>...30

/linux-6.12.1/tools/perf/
Dbuiltin-trace.c142 struct trace { struct
224 static void trace__load_vmlinux_btf(struct trace *trace __maybe_unused) in trace__load_vmlinux_btf() argument
227 if (trace->btf != NULL) in trace__load_vmlinux_btf()
230 trace->btf = btf__load_vmlinux_btf(); in trace__load_vmlinux_btf()
232 fprintf(trace->output, trace->btf ? "vmlinux BTF loaded\n" : in trace__load_vmlinux_btf()
951 struct btf *btf = arg->trace->btf; in syscall_arg__strtoul_btf_enum()
973 trace__load_vmlinux_btf(arg->trace); in syscall_arg__strtoul_btf_type()
975 btf = arg->trace->btf; in syscall_arg__strtoul_btf_type()
1040 dump_data_opts.skip_names = !arg->trace->show_arg_names; in btf_struct_scnprintf()
1059 static size_t trace__btf_scnprintf(struct trace *trace, struct syscall_arg *arg, char *bf, in trace__btf_scnprintf() argument
[all …]
/linux-6.12.1/tools/verification/rv/src/
Dtrace.c48 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.12.1/arch/openrisc/kernel/
Dstacktrace.c28 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.12.1/arch/mips/kernel/
Dstacktrace.c17 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.12.1/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
Dtracepoints.rst11 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.12.1/arch/sh/kernel/
Dstacktrace.c23 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.12.1/tools/testing/selftests/ftrace/test.d/kprobe/
Dkprobe_ftrace.tc13 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 …]
Dkprobe_args_vfs.tc11 grep "dput" trace | grep -q "enable"
13 echo "" > trace
20 grep "dput" trace | grep -q "enable"
22 echo "" > trace
29 grep "vfs_read" trace | grep -q "enable"
31 echo "" > trace
38 grep "vfs_read" trace | grep -q "enable"
40 echo "" > trace
/linux-6.12.1/tools/virtio/virtio-trace/
DREADME1 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.12.1/tools/tracing/rtla/src/
Dtimerlat_hist.c220 struct trace_instance *trace = data; in timerlat_hist_handler() local
225 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler()
242 struct trace_seq *s = tool->trace.seq; in timerlat_hist_header()
288 struct trace_instance *trace, in timerlat_print_summary() argument
297 trace_seq_printf(trace->seq, "count:"); 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()
315 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_summary()
318 trace_seq_printf(trace->seq, "\n"); in timerlat_print_summary()
321 trace_seq_printf(trace->seq, "min: "); in timerlat_print_summary()
[all …]
Dosnoise_hist.c162 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist()
163 tracefs_hist_destroy(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist()
183 data->trace_hist = tracefs_hist_alloc(tool->trace.tep, "osnoise", "sample_threshold", in osnoise_init_trace_hist()
192 retval = tracefs_hist_start(tool->trace.inst, data->trace_hist); in osnoise_init_trace_hist()
212 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_read_trace_hist()
214 content = tracefs_event_file_read(tool->trace.inst, "osnoise", in osnoise_read_trace_hist()
258 struct trace_seq *s = tool->trace.seq; in osnoise_hist_header()
296 struct trace_instance *trace, in osnoise_print_summary() argument
305 trace_seq_printf(trace->seq, "count:"); in osnoise_print_summary()
314 trace_seq_printf(trace->seq, "%9d ", data->hist[cpu].count); in osnoise_print_summary()
[all …]
Dtrace.c118 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 …]
/linux-6.12.1/arch/sparc/kernel/
Dstacktrace.c14 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.12.1/tools/testing/selftests/ftrace/test.d/event/
Dtrace_printk.tc5 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.12.1/arch/arc/kernel/
Dstacktrace.c188 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.12.1/arch/x86/mm/
Dmmio-mod.c135 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.12.1/arch/microblaze/kernel/
Dunwind.c157 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.12.1/arch/um/kernel/
Dstacktrace.c46 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.12.1/tools/testing/selftests/ftrace/test.d/filter/
Devent-filter-function.tc24 echo > trace
27 target_func=`cat trace | grep -o 'call_site=\([^+]*\)' | sed 's/call_site=//' | sort | uniq -c | so…
31 echo > trace
38 while [ `grep kmem_cache_free trace| wc -l` -eq 0 ]; do
46 hitcnt=`grep kmem_cache_free trace| grep $target_func | wc -l`
47 misscnt=`grep kmem_cache_free trace| grep -v $target_func | wc -l`
61 echo > trace
64 while [ `grep kmem_cache_free trace| wc -l` -eq 0 ]; do
72 hitcnt=`grep kmem_cache_free trace| grep $target_func | wc -l`
73 misscnt=`grep kmem_cache_free trace| grep -v $target_func | wc -l`
/linux-6.12.1/net/ipv6/
Dioam6_iptunnel.c83 static bool ioam6_validate_trace_hdr(struct ioam6_trace_hdr *trace) in ioam6_validate_trace_hdr() argument
87 if (!trace->type_be32 || !trace->remlen || in ioam6_validate_trace_hdr()
88 trace->remlen > IOAM6_TRACE_DATA_SIZE_MAX / 4 || in ioam6_validate_trace_hdr()
89 trace->type.bit12 | trace->type.bit13 | trace->type.bit14 | in ioam6_validate_trace_hdr()
90 trace->type.bit15 | trace->type.bit16 | trace->type.bit17 | in ioam6_validate_trace_hdr()
91 trace->type.bit18 | trace->type.bit19 | trace->type.bit20 | in ioam6_validate_trace_hdr()
92 trace->type.bit21 | trace->type.bit23) in ioam6_validate_trace_hdr()
95 trace->nodelen = 0; in ioam6_validate_trace_hdr()
96 fields = be32_to_cpu(trace->type_be32); in ioam6_validate_trace_hdr()
98 trace->nodelen += hweight32(fields & IOAM6_MASK_SHORT_FIELDS) in ioam6_validate_trace_hdr()
[all …]
/linux-6.12.1/kernel/
Dstacktrace.c249 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument
255 save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) in save_stack_trace_regs() argument
271 struct stack_trace trace = { in stack_trace_save() local
277 save_stack_trace(&trace); in stack_trace_save()
278 return trace.nr_entries; in stack_trace_save()
295 struct stack_trace trace = { in stack_trace_save_tsk() local
302 save_stack_trace_tsk(task, &trace); in stack_trace_save_tsk()
303 return trace.nr_entries; in stack_trace_save_tsk()
319 struct stack_trace trace = { in stack_trace_save_regs() local
325 save_stack_trace_regs(regs, &trace); in stack_trace_save_regs()
[all …]
/linux-6.12.1/kernel/trace/
Dtrace_selftest.c97 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 …]
/linux-6.12.1/tools/testing/selftests/ftrace/test.d/dynevent/
Dfprobe_args_vfs.tc12 grep "dput" trace | grep -q "enable"
14 echo "" > trace
21 grep "dput" trace | grep -q "enable"
23 echo "" > trace
30 grep "vfs_read" trace | grep -q "enable"
32 echo "" > trace
39 grep "vfs_read" trace | grep -q "enable"
41 echo "" > trace
/linux-6.12.1/arch/csky/kernel/
Dstacktrace.c123 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()
/linux-6.12.1/kernel/bpf/
Dstackmap.c228 struct perf_callchain_entry *trace, u64 flags) in __bpf_get_stackid() argument
238 if (trace->nr <= skip) in __bpf_get_stackid()
242 trace_nr = trace->nr - skip; in __bpf_get_stackid()
244 ips = trace->ip + skip; in __bpf_get_stackid()
306 struct perf_callchain_entry *trace; in BPF_CALL_3() local
317 trace = get_perf_callchain(regs, 0, kernel, user, max_depth, in BPF_CALL_3()
320 if (unlikely(!trace)) in BPF_CALL_3()
324 return __bpf_get_stackid(map, trace, flags); in BPF_CALL_3()
336 static __u64 count_kernel_ip(struct perf_callchain_entry *trace) in count_kernel_ip() argument
340 while (nr_kernel < trace->nr) { in count_kernel_ip()
[all …]

12345678910>>...30