Home
last modified time | relevance | path

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

1234567

/tools/verification/rv/src/
A Dtrace.c67 if (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()
79 trace->tep = NULL; in trace_instance_destroy()
98 trace->seq = calloc(1, sizeof(*trace->seq)); in trace_instance_init()
99 if (!trace->seq) in trace_instance_init()
105 if (!trace->inst) in trace_instance_init()
[all …]
/tools/testing/selftests/ftrace/test.d/kprobe/
A Dkprobe_ftrace.tc13 echo > trace
15 grep testprobe trace
20 echo > trace
22 grep testprobe trace
23 grep "$FUNCTION_FORK <-" trace
27 echo > trace
29 ! grep testprobe trace
35 echo > trace
37 grep testprobe trace
42 echo > trace
[all …]
A 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
A 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
/tools/perf/
A Dbuiltin-trace.c1739 struct trace *trace) in thread__fd_path() argument
1959 struct trace *trace = container_of(tool, struct trace, tool); in trace__tool_process() local
2396 .trace = trace, in syscall__scnprintf_args()
2615 struct trace *trace) in thread__update_stats() argument
2999 .trace = trace, in trace__sys_exit()
3180 .trace = trace, in trace__fprintf_tp_fields()
3443 struct trace *trace = container_of(tool, struct trace, tool); in trace__process_sample() local
4285 .trace = trace, in trace__expand_filter()
5146 struct trace *trace = (struct trace *)opt->value; in trace__parse_events_option() local
5273 struct trace *trace = arg; in trace__config() local
[all …]
/tools/testing/selftests/ftrace/test.d/event/
A 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 …]
A Devent-mod.tc7 rmmod trace-events-sample ||:
8 if ! modprobe trace-events-sample ; then
25 val=`cat events/sample-trace/enable`
49 val=`cat events/sample-trace/enable`
65 val=`cat events/sample-trace/enable`
125 rmmod trace-events-sample
132 modprobe trace-events-sample
138 rmmod trace-events-sample
144 modprobe trace-events-sample
150 rmmod trace-events-sample
[all …]
/tools/virtio/virtio-trace/
A DREADME1 Trace Agent for virtio-trace
28 Makefile: Makefile of trace agent for virtio-trace
29 trace-agent.c: includes main function, sets up for operating trace agent
38 To use this trace agent for virtio-trace, we need to prepare some virtio-serial
42 virtio-trace uses virtio-serial pipe as trace data paths as to the number
45 # mkfifo /tmp/virtio-trace/trace-path-cpu{0,1,2,...,X}.{in,out}
63 -chardev pipe,id=charchannel1,path=/tmp/virtio-trace/trace-path-cpu0\
77 <source path='/tmp/virtio-trace/trace-path-cpu0'/>
84 trace-path-cpu1, trace-path-cpu2, and agent-ctl-path.
102 # ./trace-agent
[all …]
A 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/tracing/rtla/src/
A Dtrace.c165 if (trace->inst) { in trace_instance_destroy()
171 if (trace->seq) { in trace_instance_destroy()
172 free(trace->seq); in trace_instance_destroy()
173 trace->seq = NULL; in trace_instance_destroy()
176 if (trace->tep) { in trace_instance_destroy()
178 trace->tep = NULL; in trace_instance_destroy()
195 trace->seq = calloc(1, sizeof(*trace->seq)); in trace_instance_init()
196 if (!trace->seq) in trace_instance_init()
202 if (!trace->inst) in trace_instance_init()
206 if (!trace->tep) in trace_instance_init()
[all …]
A Dtimerlat_hist.c187 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler()
470 trace_seq_reset(trace->seq); in timerlat_print_summary()
615 trace_seq_reset(trace->seq); in timerlat_print_stats_all()
625 struct trace_instance *trace = &tool->trace; in timerlat_print_stats() local
672 trace_seq_reset(trace->seq); in timerlat_print_stats()
699 trace_seq_reset(trace->seq); in timerlat_print_stats()
1184 struct trace_instance *trace; in timerlat_hist_main() local
1200 trace = &tool->trace; in timerlat_hist_main()
1206 hist_inst = trace; in timerlat_hist_main()
1380 trace->inst, in timerlat_hist_main()
[all …]
A Dosnoise_hist.c335 trace_seq_reset(trace->seq); in osnoise_print_summary()
345 struct trace_instance *trace = &tool->trace; in osnoise_print_stats() local
371 trace_seq_reset(trace->seq); in osnoise_print_stats()
379 trace_seq_reset(trace->seq); in osnoise_print_stats()
387 trace_seq_reset(trace->seq); in osnoise_print_stats()
390 trace_seq_reset(trace->seq); in osnoise_print_stats()
409 trace_seq_reset(trace->seq); in osnoise_print_stats()
789 trace = &tool->trace; in osnoise_hist_main()
846 trace_instance_start(trace); in osnoise_hist_main()
874 trace->inst, in osnoise_hist_main()
[all …]
A Dtrace.h24 int trace_instance_init(struct trace_instance *trace, char *tool_name);
25 int trace_instance_start(struct trace_instance *trace);
26 int trace_instance_stop(struct trace_instance *trace);
27 void trace_instance_destroy(struct trace_instance *trace);
33 int enable_osnoise(struct trace_instance *trace);
34 int enable_timerlat(struct trace_instance *trace);
53 int trace_set_buffer_size(struct trace_instance *trace, int size);
A Dosnoise_top.c86 tool = container_of(trace, struct osnoise_tool, trace); in osnoise_top_handler()
228 struct trace_instance *trace = &top->trace; in osnoise_print_stats() local
236 clear_terminal(trace->seq); in osnoise_print_stats()
246 trace_seq_do_printf(trace->seq); in osnoise_print_stats()
247 trace_seq_reset(trace->seq); in osnoise_print_stats()
598 struct trace_instance *trace; in osnoise_top_main() local
617 trace = &tool->trace; in osnoise_top_main()
619 retval = enable_osnoise(trace); in osnoise_top_main()
670 trace_instance_start(trace); in osnoise_top_main()
698 trace->inst, in osnoise_top_main()
[all …]
/tools/testing/selftests/net/
A Dioam6_parser.c438 trace->remlen != (trace_size / 4) - trace->nodelen; in check_header()
462 if (trace->type.bit12 | trace->type.bit13 | trace->type.bit14 | in check_data()
463 trace->type.bit15 | trace->type.bit16 | trace->type.bit17 | in check_data()
464 trace->type.bit18 | trace->type.bit19 | trace->type.bit20 | in check_data()
465 trace->type.bit21 | trace->type.bit23) in check_data()
476 p = trace->data + trace->remlen * 4; in check_data()
478 if (trace->type.bit0) { in check_data()
485 if (trace->type.bit1) { in check_data()
493 if (trace->type.bit2) { in check_data()
501 if (trace->type.bit3) { in check_data()
[all …]
/tools/testing/selftests/ftrace/test.d/filter/
A Devent-filter-function.tc24 echo > trace
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`
90 nocnt=`grep openat trace | wc -l`
[all …]
/tools/testing/selftests/ftrace/test.d/dynevent/
A 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
A 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
/tools/testing/selftests/ftrace/test.d/preemptirq/
A 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/
A 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
/tools/testing/selftests/ftrace/test.d/direct/
A 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/
A 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/
A 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/
A Dtrace_pipe.tc10 grep -q "test input 1" trace
11 grep -q "test input 1" trace
15 ! grep -q "test input 1" trace
/tools/testing/selftests/ftrace/test.d/trigger/
A Dtrigger-hist-poll.tc30 echo > trace
47 if ! grep -qw "sleep" trace; then
53 echo > trace
69 if ! grep -qw "sleep" trace; then

Completed in 53 milliseconds

1234567