Home
last modified time | relevance | path

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

1234567

/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 …]
/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
Dkprobe_module.tc6 rmmod trace-printk ||:
7 if ! modprobe trace-printk ; then
33 if ! rmmod trace-printk ; then
46 modprobe trace-printk
47 grep "event1:" trace
50 rmmod trace-printk
Dkretprobe_entry_arg.tc11 echo > trace
12 cat trace > /dev/null
18 streq `grep -A 1 -m 1 myevent1 trace | sed -r 's/^.*(arg=.*)/\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 …]
/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 …]
/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 …]
DMakefile5 all: trace-agent
10 trace-agent: trace-agent.o trace-agent-ctl.o trace-agent-rw.o
14 rm -f *.o trace-agent
/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`
/tools/tracing/rtla/src/
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 …]
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()
303 struct trace_instance *trace, in timerlat_print_summary() argument
312 trace_seq_printf(trace->seq, "count:"); in timerlat_print_summary()
322 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary()
326 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary()
330 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary()
333 trace_seq_printf(trace->seq, "\n"); in timerlat_print_summary()
336 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.h22 int trace_instance_init(struct trace_instance *trace, char *tool_name);
23 int trace_instance_start(struct trace_instance *trace);
24 int trace_instance_stop(struct trace_instance *trace);
25 void trace_instance_destroy(struct trace_instance *trace);
31 int enable_osnoise(struct trace_instance *trace);
32 int enable_timerlat(struct trace_instance *trace);
51 int trace_is_off(struct trace_instance *tool, struct trace_instance *trace);
52 int trace_set_buffer_size(struct trace_instance *trace, int size);
Dosnoise_top.c114 struct trace_instance *trace = context; in osnoise_top_handler() local
121 tool = container_of(trace, struct osnoise_tool, trace); in osnoise_top_handler()
162 struct trace_seq *s = top->trace.seq; in osnoise_top_header()
222 struct trace_seq *s = tool->trace.seq; in osnoise_top_print()
263 struct trace_instance *trace = &top->trace; in osnoise_print_stats() local
271 clear_terminal(trace->seq); in osnoise_print_stats()
281 trace_seq_do_printf(trace->seq); in osnoise_print_stats()
282 trace_seq_reset(trace->seq); in osnoise_print_stats()
661 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "osnoise", in osnoise_init_top()
690 struct trace_instance *trace; in osnoise_top_main() local
[all …]
/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
Dadd_remove_tprobe_module.tc6 rmmod trace-events-sample ||:
7 if ! modprobe trace-events-sample ; then
37 rmmod trace-events-sample
49 modprobe trace-events-sample
53 grep -q "myevent1" trace
54 grep -q "myevent2" trace
56 rmmod trace-events-sample
Dfprobe_entry_arg.tc11 echo > trace
12 cat trace > /dev/null
18 streq `grep -A 1 -m 1 myevent1 trace | sed -r 's/^.*(arg=.*)/\1/' `
/tools/testing/selftests/ftrace/test.d/preemptirq/
Dirqsoff_tracer.tc43 cat trace
46 grep -q "tracer: preemptoff" trace || fail
49 grep -E -q "5.....us : <stack trace>" trace || fail
52 grep -E -q "latency: 5..... us" trace || fail
66 cat trace
69 grep -q "tracer: irqsoff" trace || fail
72 grep -E -q "5.....us : <stack trace>" trace || fail
75 grep -E -q "latency: 5..... us" trace || fail
/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_profiler.tc43 if grep -v -e '^#' -e 'schedule' trace; then
48 if ! grep -e 'schedule' trace > /dev/null; then
49 cat trace
59 if ! grep -v -e '^#' -e 'schedule' trace > /dev/null; then
60 cat trace
Dfgraph-filter-stack.tc43 count=`cat trace | grep '()' | grep -v schedule | wc -l`
50 count=`cat trace | grep 'schedule()' | wc -l`
60 count=`cat trace | grep '()' | grep -v schedule | wc -l`
66 count=`cat trace | grep 'schedule()' | wc -l`
/tools/testing/selftests/ftrace/test.d/direct/
Dkprobe-direct.tc15 grep -q "my_direct_func: waking up" trace
22 echo > trace
25 grep -q "my_direct_func: waking up" trace
33 echo > trace
36 grep -q "kwake:" trace
/tools/testing/selftests/bpf/progs/
Dperf_event_stackmap.c33 stack_trace_t *trace; in oncpu() local
44 trace = bpf_map_lookup_elem(&stackdata_map, &key); in oncpu()
45 if (!trace) in oncpu()
48 val = bpf_get_stack(ctx, trace, sizeof(stack_trace_t), 0); in oncpu()
52 val = bpf_get_stack(ctx, trace, sizeof(stack_trace_t), BPF_F_USER_STACK); in oncpu()
/tools/perf/trace/beauty/
Dpid.c6 struct trace *trace = arg->trace; in syscall_arg__scnprintf_pid() local
8 struct thread *thread = machine__findnew_thread(trace->host, pid, pid); in syscall_arg__scnprintf_pid()
/tools/testing/selftests/ftrace/test.d/00basic/
Dtrace_pipe.tc10 grep -q "test input 1" trace
11 grep -q "test input 1" trace
15 ! grep -q "test input 1" trace

1234567