Home
last modified time | relevance | path

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

12345678910>>...21

/Linux-v5.4/tools/perf/
Dbuiltin-trace.c89 struct trace { struct
1194 struct trace *trace) in thread__fd_path() argument
1198 if (ttrace == NULL || trace->fd_path_disabled) in thread__fd_path()
1205 if (!trace->live) in thread__fd_path()
1207 ++trace->stats.proc_getname; in thread__fd_path()
1219 const char *path = thread__fd_path(arg->thread, fd, arg->trace); in syscall_arg__scnprintf_fd()
1227 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size) in pid__scnprintf_fd() argument
1230 struct thread *thread = machine__find_thread(trace->host, pid, pid); in pid__scnprintf_fd()
1233 const char *path = thread__fd_path(thread, fd, trace); in pid__scnprintf_fd()
1290 if (!arg->trace->vfs_getname) in syscall_arg__scnprintf_filename()
[all …]
/Linux-v5.4/arch/openrisc/kernel/
Dstacktrace.c27 struct stack_trace *trace = data; in save_stack_address() local
32 if (trace->skip > 0) { in save_stack_address()
33 trace->skip--; in save_stack_address()
37 if (trace->nr_entries < trace->max_entries) in save_stack_address()
38 trace->entries[trace->nr_entries++] = addr; in save_stack_address()
41 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument
43 unwind_stack(trace, (unsigned long *) &trace, save_stack_address); in save_stack_trace()
50 struct stack_trace *trace = (struct stack_trace *)data; in save_stack_address_nosched() local
58 if (trace->skip > 0) { in save_stack_address_nosched()
59 trace->skip--; in save_stack_address_nosched()
[all …]
/Linux-v5.4/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-v5.4/arch/sh/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()
47 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument
51 unwind_stack(current, NULL, sp, &save_stack_ops, trace); in save_stack_trace()
58 struct stack_trace *trace = (struct stack_trace *)data; in save_stack_address_nosched() local
66 if (trace->skip > 0) { in save_stack_address_nosched()
67 trace->skip--; in save_stack_address_nosched()
[all …]
/Linux-v5.4/tools/testing/selftests/ftrace/test.d/kprobe/
Dkprobe_ftrace.tc15 echo > trace
17 grep testprobe trace
18 ! grep '_do_fork <-' trace
22 echo > trace
24 grep testprobe trace
25 grep '_do_fork <-' trace
29 echo > trace
31 ! grep testprobe trace
32 grep '_do_fork <-' trace
37 echo > trace
[all …]
/Linux-v5.4/arch/arm/kernel/
Dstacktrace.c67 struct stack_trace *trace; member
75 struct stack_trace *trace = data->trace; in save_trace() local
86 trace->entries[trace->nr_entries++] = addr; in save_trace()
88 if (trace->nr_entries >= trace->max_entries) in save_trace()
96 trace->entries[trace->nr_entries++] = regs->ARM_pc; in save_trace()
98 return trace->nr_entries >= trace->max_entries; in save_trace()
103 struct stack_trace *trace, unsigned int nosched) in __save_stack_trace() argument
108 data.trace = trace; in __save_stack_trace()
109 data.skip = trace->skip; in __save_stack_trace()
138 void save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) in save_stack_trace_regs() argument
[all …]
/Linux-v5.4/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-v5.4/arch/powerpc/kernel/
Dstacktrace.c29 static void save_context_stack(struct stack_trace *trace, unsigned long sp, in save_context_stack() argument
43 if (!trace->skip) in save_context_stack()
44 trace->entries[trace->nr_entries++] = ip; in save_context_stack()
46 trace->skip--; in save_context_stack()
49 if (trace->nr_entries >= trace->max_entries) in save_context_stack()
56 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument
62 save_context_stack(trace, sp, current, 1); in save_stack_trace()
66 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument
78 save_context_stack(trace, sp, tsk, 0); in save_stack_trace_tsk()
85 save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) in save_stack_trace_regs() argument
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/arch/arm64/kernel/
Dstacktrace.c134 struct stack_trace *trace; member
142 struct stack_trace *trace = data->trace; in save_trace() local
152 trace->entries[trace->nr_entries++] = addr; in save_trace()
154 return trace->nr_entries >= trace->max_entries; in save_trace()
157 void save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) in save_stack_trace_regs() argument
162 data.trace = trace; in save_stack_trace_regs()
163 data.skip = trace->skip; in save_stack_trace_regs()
172 struct stack_trace *trace, unsigned int nosched) in __save_stack_trace() argument
180 data.trace = trace; in __save_stack_trace()
181 data.skip = trace->skip; in __save_stack_trace()
[all …]
/Linux-v5.4/arch/arc/kernel/
Dstacktrace.c174 struct stack_trace *trace = arg; in __collect_all() local
176 if (trace->skip > 0) in __collect_all()
177 trace->skip--; in __collect_all()
179 trace->entries[trace->nr_entries++] = address; in __collect_all()
181 if (trace->nr_entries >= trace->max_entries) in __collect_all()
189 struct stack_trace *trace = arg; in __collect_all_but_sched() local
194 if (trace->skip > 0) in __collect_all_but_sched()
195 trace->skip--; in __collect_all_but_sched()
197 trace->entries[trace->nr_entries++] = address; in __collect_all_but_sched()
199 if (trace->nr_entries >= trace->max_entries) in __collect_all_but_sched()
[all …]
/Linux-v5.4/arch/microblaze/kernel/
Dunwind.c157 struct stack_trace *trace);
165 unsigned long fp, struct stack_trace *trace) in unwind_trap() argument
171 unsigned long fp, struct stack_trace *trace) in unwind_trap() argument
174 microblaze_unwind_inner(task, regs->pc, regs->r1, regs->r15, trace); in unwind_trap()
191 struct stack_trace *trace) in microblaze_unwind_inner() argument
221 regs->r15, trace); in microblaze_unwind_inner()
230 if (!trace) in microblaze_unwind_inner()
232 unwind_trap(task, pc, fp, trace); in microblaze_unwind_inner()
238 if (trace) { in microblaze_unwind_inner()
240 if (trace->skip > 0) in microblaze_unwind_inner()
[all …]
/Linux-v5.4/arch/parisc/kernel/
Dstacktrace.c16 static void dump_trace(struct task_struct *task, struct stack_trace *trace) in dump_trace() argument
23 trace->nr_entries = 0; in dump_trace()
24 while (trace->nr_entries < trace->max_entries) { in dump_trace()
29 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()
42 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument
44 dump_trace(tsk, trace); in save_stack_trace_tsk()
/Linux-v5.4/arch/unicore32/kernel/
Dstacktrace.c72 struct stack_trace *trace; member
80 struct stack_trace *trace = data->trace; in save_trace() local
90 trace->entries[trace->nr_entries++] = addr; in save_trace()
92 return trace->nr_entries >= trace->max_entries; in save_trace()
95 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument
100 data.trace = trace; in save_stack_trace_tsk()
101 data.skip = trace->skip; in save_stack_trace_tsk()
122 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument
124 save_stack_trace_tsk(current, trace); in save_stack_trace()
/Linux-v5.4/arch/x86/mm/
Dmmio-mod.c137 struct remap_trace *trace = p->private; in pre() local
149 my_trace->phys = addr - trace->probe.addr + trace->phys; in pre()
150 my_trace->map_id = trace->id; in pre()
225 struct remap_trace *trace = kmalloc(sizeof(*trace), GFP_KERNEL); in ioremap_trace_core() local
234 if (!trace) { in ioremap_trace_core()
239 *trace = (struct remap_trace) { in ioremap_trace_core()
245 .private = trace in ioremap_trace_core()
250 map.map_id = trace->id; in ioremap_trace_core()
254 kfree(trace); in ioremap_trace_core()
259 list_add_tail(&trace->list, &trace_list); in ioremap_trace_core()
[all …]
/Linux-v5.4/arch/ia64/kernel/
Dstacktrace.c15 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-v5.4/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-v5.4/drivers/usb/host/
Dimx21-dbg.c121 struct debug_isoc_trace *trace = &imx21->isoc_trace[ in debug_isoc_submitted() local
125 trace->schedule_frame = td->frame; in debug_isoc_submitted()
126 trace->submit_frame = frame; in debug_isoc_submitted()
127 trace->request_len = td->len; in debug_isoc_submitted()
128 trace->td = td; in debug_isoc_submitted()
134 struct debug_isoc_trace *trace, *trace_failed; in debug_isoc_completed() local
138 trace = imx21->isoc_trace; in debug_isoc_completed()
139 for (i = 0; i < ARRAY_SIZE(imx21->isoc_trace); i++, trace++) { in debug_isoc_completed()
140 if (trace->td == td) { in debug_isoc_completed()
141 trace->done_frame = frame; in debug_isoc_completed()
[all …]
/Linux-v5.4/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()
325 static int trace_selftest_startup_dynamic_tracing(struct tracer *trace, in trace_selftest_startup_dynamic_tracing() argument
355 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing()
357 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_dynamic_tracing()
393 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
401 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
536 # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; }) argument
653 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_function() argument
672 ret = tracer_init(trace, tr); in trace_selftest_startup_function()
[all …]
/Linux-v5.4/kernel/
Dstacktrace.c253 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument
259 save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) in save_stack_trace_regs() argument
275 struct stack_trace trace = { in stack_trace_save() local
281 save_stack_trace(&trace); in stack_trace_save()
282 return trace.nr_entries; in stack_trace_save()
299 struct stack_trace trace = { in stack_trace_save_tsk() local
306 save_stack_trace_tsk(task, &trace); in stack_trace_save_tsk()
307 return trace.nr_entries; in stack_trace_save_tsk()
322 struct stack_trace trace = { in stack_trace_save_regs() local
328 save_stack_trace_regs(regs, &trace); in stack_trace_save_regs()
[all …]
/Linux-v5.4/tools/lib/traceevent/Documentation/
Dlibtraceevent-tseq.txt9 Initialize / destroy a trace sequence.
16 *#include <trace-seq.h>*
35 The _trace_seq_init()_ function initializes the trace sequence _s_.
37 The _trace_seq_destroy()_ function destroys the trace sequence _s_ and frees
40 The _trace_seq_reset()_ function re-initializes the trace sequence _s_. All
43 The _trace_seq_terminate()_ function terminates the trace sequence _s_. It puts
46 The _trace_seq_putc()_ function puts a single character _c_ in the trace
50 trace sequence _s_.
53 variable arguments _..._ in the trace sequence _s_.
56 list of arguments _args_ in the trace sequence _s_.
[all …]
/Linux-v5.4/arch/nds32/kernel/
Dstacktrace.c9 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument
11 save_stack_trace_tsk(current, trace); in save_stack_trace()
15 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument
18 int skip = trace->skip; in save_stack_trace_tsk()
45 trace->entries[trace->nr_entries++] = lpp; in save_stack_trace_tsk()
46 if (trace->nr_entries >= trace->max_entries) in save_stack_trace_tsk()
/Linux-v5.4/tools/include/linux/
Dstacktrace.h13 static inline void print_stack_trace(struct stack_trace *trace, int spaces) in print_stack_trace() argument
15 backtrace_symbols_fd((void **)trace->entries, trace->nr_entries, 1); in print_stack_trace()
18 #define save_stack_trace(trace) \ argument
19 ((trace)->nr_entries = \
20 backtrace((void **)(trace)->entries, (trace)->max_entries))
/Linux-v5.4/arch/csky/kernel/
Dstacktrace.c9 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument
11 save_stack_trace_tsk(current, trace); in save_stack_trace()
15 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument
19 int skip = trace->skip; in save_stack_trace_tsk()
49 trace->entries[trace->nr_entries++] = lpp; in save_stack_trace_tsk()
50 if (trace->nr_entries >= trace->max_entries) in save_stack_trace_tsk()

12345678910>>...21