H A D | builtin-trace.c | 2 * builtin-trace.c 4 * Builtin 'trace' command: 6 * Display a continuously updated trace of any workload, CPU, specific PID, 12 * Initially based on the 'trace' prototype by Thomas Gleixner: 14 * http://lwn.net/Articles/415728/ ("Announcing a new utility: 'trace'") 59 #include "trace/beauty/beauty.h" 60 #include "trace-event.h" 150 struct trace { 153 /** Sorted sycall numbers used by the trace. */ 245 static void trace__load_vmlinux_btf(struct trace *trac 142 struct trace { global() struct 143 tooltrace global() argument 144 sctbltrace global() argument 145 __anon506d57b60208trace global() argument 152 syscallstrace global() argument 154 skeltrace global() argument 157 btftrace global() argument 159 optstrace global() argument 160 evlisttrace global() argument 161 hosttrace global() argument 162 currenttrace global() argument 163 cgrouptrace global() argument 164 base_timetrace global() argument 165 outputtrace global() argument 166 nr_eventstrace global() argument 167 nr_events_printedtrace global() argument 168 max_eventstrace global() argument 169 evswitchtrace global() argument 170 ev_qualifiertrace global() argument 171 __anon506d57b60408trace global() argument 174 ev_qualifier_idstrace global() argument 175 __anon506d57b60508trace global() argument 179 filter_pidstrace global() argument 180 duration_filtertrace global() argument 204 trace_syscallstrace global() argument 205 libtraceevent_printtrace global() argument 216 trace_pgfaultstrace global() argument 224 oetrace trace__load_vmlinux_btf() argument 1064 trace__btf_scnprintf(struct trace * trace,struct syscall_arg * arg,char * bf,size_t size,int val,char * type) trace__btf_scnprintf() argument 1676 thread__fd_path(struct thread * thread,int fd,struct trace * trace) thread__fd_path() argument 1709 pid__scnprintf_fd(struct trace * trace,pid_t pid,int fd,char * bf,size_t size) pid__scnprintf_fd() argument 1805 trace__filter_duration(struct trace * trace,double t) trace__filter_duration() argument 1810 __trace__fprintf_tstamp(struct trace * trace,u64 tstamp,FILE * fp) __trace__fprintf_tstamp() argument 1823 trace__fprintf_tstamp(struct trace * trace,u64 tstamp,FILE * fp) trace__fprintf_tstamp() argument 1847 trace__fprintf_comm_tid(struct trace * trace,struct thread * thread,FILE * fp) trace__fprintf_comm_tid() argument 1860 trace__fprintf_entry_head(struct trace * trace,struct thread * thread,u64 duration,bool duration_calculated,u64 tstamp,FILE * fp) trace__fprintf_entry_head() argument 1872 trace__process_event(struct trace * trace,struct machine * machine,union perf_event * event,struct perf_sample * sample) trace__process_event() argument 1896 struct trace *trace = container_of(tool, struct trace, tool); trace__tool_process() local 1918 trace__symbols_init(struct trace * trace,struct evlist * evlist) trace__symbols_init() argument 1945 trace__symbols__exit(struct trace * trace) trace__symbols__exit() argument 2069 trace__read_syscall_info(struct trace * trace,int id) trace__read_syscall_info() argument 2164 trace__validate_ev_qualifier(struct trace * trace) trace__validate_ev_qualifier() argument 2238 trace__syscall_enabled(struct trace * trace,int id) trace__syscall_enabled() argument 2307 syscall__scnprintf_args(struct syscall * sc,char * bf,size_t size,unsigned char * args,void * augmented_args,int augmented_args_size,struct trace * trace,struct thread * thread) syscall__scnprintf_args() argument 2408 trace__syscall_info(struct trace * trace,struct evsel * evsel,int id) trace__syscall_info() argument 2519 trace__printf_interrupted_entry(struct trace * trace) trace__printf_interrupted_entry() argument 2547 trace__fprintf_sample(struct trace * trace,struct evsel * evsel,struct perf_sample * sample,struct thread * thread) trace__fprintf_sample() argument 2611 trace__sys_enter(struct trace * trace,struct evsel * evsel,union perf_event * event __maybe_unused,struct perf_sample * sample) trace__sys_enter() argument 2690 trace__fprintf_sys_enter(struct trace * trace,struct evsel * evsel,struct perf_sample * sample) trace__fprintf_sys_enter() argument 2724 trace__resolve_callchain(struct trace * trace,struct evsel * evsel,struct perf_sample * sample,struct callchain_cursor * cursor) trace__resolve_callchain() argument 2744 trace__fprintf_callchain(struct trace * trace,struct perf_sample * sample) trace__fprintf_callchain() argument 2761 trace__sys_exit(struct trace * trace,struct evsel * evsel,union perf_event * event __maybe_unused,struct perf_sample * sample) trace__sys_exit() argument 2897 trace__vfs_getname(struct trace * trace,struct evsel * evsel,union perf_event * event __maybe_unused,struct perf_sample * sample) trace__vfs_getname() argument 2958 trace__sched_stat_runtime(struct trace * trace,struct evsel * evsel,union perf_event * event __maybe_unused,struct perf_sample * sample) trace__sched_stat_runtime() argument 3012 bpf_output__fprintf(struct trace * trace,struct perf_sample * sample) bpf_output__fprintf() argument 3020 trace__fprintf_tp_fields(struct trace * trace,struct evsel * evsel,struct perf_sample * sample,struct thread * thread,void * augmented_args,int augmented_args_size) trace__fprintf_tp_fields() argument 3090 trace__event_handler(struct trace * trace,struct evsel * evsel,union perf_event * event __maybe_unused,struct perf_sample * sample) trace__event_handler() argument 3195 trace__pgfault(struct trace * trace,struct evsel * evsel,union perf_event * event __maybe_unused,struct perf_sample * sample) trace__pgfault() argument 3274 trace__set_base_time(struct trace * trace,struct evsel * evsel,struct perf_sample * sample) trace__set_base_time() argument 3297 struct trace *trace = container_of(tool, struct trace, tool); trace__process_sample() local 3318 trace__record(struct trace * trace,int argc,const char ** argv) trace__record() argument 3449 trace__handle_event(struct trace * trace,union perf_event * event,struct perf_sample * sample) trace__handle_event() argument 3484 trace__add_syscall_newtp(struct trace * trace) trace__add_syscall_newtp() argument 3533 trace__set_ev_qualifier_tp_filter(struct trace * trace) trace__set_ev_qualifier_tp_filter() argument 3575 trace__find_bpf_program_by_title(struct trace * trace,const char * name) trace__find_bpf_program_by_title() argument 3594 trace__find_syscall_bpf_prog(struct trace * trace,struct syscall * sc,const char * prog_name,const char * type) trace__find_syscall_bpf_prog() argument 3627 trace__init_syscall_bpf_progs(struct trace * trace,int id) trace__init_syscall_bpf_progs() argument 3638 trace__bpf_prog_sys_enter_fd(struct trace * trace,int id) trace__bpf_prog_sys_enter_fd() argument 3644 trace__bpf_prog_sys_exit_fd(struct trace * trace,int id) trace__bpf_prog_sys_exit_fd() argument 3650 trace__bpf_sys_enter_beauty_map(struct trace * trace,int key,unsigned int * beauty_array) trace__bpf_sys_enter_beauty_map() argument 3735 trace__find_usable_bpf_prog_entry(struct trace * trace,struct syscall * sc) trace__find_usable_bpf_prog_entry() argument 3835 trace__init_syscalls_bpf_prog_array_maps(struct trace * trace) trace__init_syscalls_bpf_prog_array_maps() argument 3939 trace__set_ev_qualifier_filter(struct trace * trace) trace__set_ev_qualifier_filter() argument 3964 trace__set_filter_loop_pids(struct trace * trace) trace__set_filter_loop_pids() argument 3995 trace__set_filter_pids(struct trace * trace) trace__set_filter_pids() argument 4018 __trace__deliver_event(struct trace * trace,union perf_event * event) __trace__deliver_event() argument 4032 __trace__flush_events(struct trace * trace) __trace__flush_events() argument 4044 trace__flush_events(struct trace * trace) trace__flush_events() argument 4049 trace__deliver_event(struct trace * trace,union perf_event * event) trace__deliver_event() argument 4070 struct trace *trace = container_of(oe, struct trace, oe.data); ordered_events__deliver_event() local 4099 trace__expand_filter(struct trace * trace,struct evsel * evsel) trace__expand_filter() argument 4200 trace__expand_filters(struct trace * trace,struct evsel ** err_evsel) trace__expand_filters() argument 4218 trace__run(struct trace * trace,int argc,const char ** argv) trace__run() argument 4517 trace__replay(struct trace * trace) trace__replay() argument 4638 thread__dump_stats(struct thread_trace * ttrace,struct trace * trace,FILE * fp) thread__dump_stats() argument 4689 trace__fprintf_thread(FILE * fp,struct thread * thread,struct trace * trace) trace__fprintf_thread() argument 4740 trace__fprintf_thread_summary(struct trace * trace,FILE * fp) trace__fprintf_thread_summary() argument 4760 struct trace *trace = opt->value; trace__set_duration() local 4771 struct trace *trace = opt->value; trace__set_filter_pids_from_option() local 4798 trace__open_output(struct trace * trace,const char * filename) trace__open_output() argument 4923 struct trace *trace = (struct trace *)opt->value; trace__parse_events_option() local 5015 struct trace *trace = opt->value; trace__parse_cgroups() local 5030 struct trace *trace = arg; trace__config() local 5072 trace__exit(struct trace * trace) trace__exit() argument 5108 struct trace trace = { cmd_trace() local [all...] |