Home
last modified time | relevance | path

Searched refs:trace_file (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/tests/shell/
Drecord+zstd_comp_decomp.sh6 trace_file=$(mktemp /tmp/perf.data.XXX)
16 $perf_tool record -o $trace_file $gflag -z -F 5000 -- \
22 $perf_tool report -i $trace_file --header --stats | \
27 $perf_tool inject -i $trace_file -o $trace_file.decomp &&
28 $perf_tool report -i $trace_file --stdio | head -n -3 > $trace_file.comp.output &&
29 $perf_tool report -i $trace_file.decomp --stdio | head -n -3 > $trace_file.decomp.output &&
30 diff $trace_file.comp.output $trace_file.decomp.output
36 rm -f $trace_file*
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_syscalls.c296 struct trace_event_file *trace_file; in ftrace_syscall_enter() local
312 trace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]); in ftrace_syscall_enter()
313 if (!trace_file) in ftrace_syscall_enter()
316 if (trace_trigger_soft_disabled(trace_file)) in ftrace_syscall_enter()
339 event_trigger_unlock_commit(trace_file, buffer, event, entry, in ftrace_syscall_enter()
346 struct trace_event_file *trace_file; in ftrace_syscall_exit() local
360 trace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]); in ftrace_syscall_exit()
361 if (!trace_file) in ftrace_syscall_exit()
364 if (trace_trigger_soft_disabled(trace_file)) in ftrace_syscall_exit()
385 event_trigger_unlock_commit(trace_file, buffer, event, entry, in ftrace_syscall_exit()
Dtrace_kprobe.c1384 struct trace_event_file *trace_file) in NOKPROBE_SYMBOL()
1391 WARN_ON(call != trace_file->event_call); in NOKPROBE_SYMBOL()
1393 if (trace_trigger_soft_disabled(trace_file)) in NOKPROBE_SYMBOL()
1398 fbuffer.trace_file = trace_file; in NOKPROBE_SYMBOL()
1403 trace_event_buffer_lock_reserve(&fbuffer.buffer, trace_file, in NOKPROBE_SYMBOL()
1432 struct trace_event_file *trace_file) in __kretprobe_trace_func() argument
1439 WARN_ON(call != trace_file->event_call); in __kretprobe_trace_func()
1441 if (trace_trigger_soft_disabled(trace_file)) in __kretprobe_trace_func()
1446 fbuffer.trace_file = trace_file; in __kretprobe_trace_func()
1450 trace_event_buffer_lock_reserve(&fbuffer.buffer, trace_file, in __kretprobe_trace_func()
Dtrace_uprobe.c948 struct trace_event_file *trace_file) in __uprobe_trace_func() argument
957 WARN_ON(call != trace_file->event_call); in __uprobe_trace_func()
962 if (trace_trigger_soft_disabled(trace_file)) in __uprobe_trace_func()
967 event = trace_event_buffer_lock_reserve(&buffer, trace_file, in __uprobe_trace_func()
984 event_trigger_unlock_commit(trace_file, buffer, event, entry, 0, 0); in __uprobe_trace_func()
Dtrace_events.c233 bool trace_event_ignore_this_pid(struct trace_event_file *trace_file) in trace_event_ignore_this_pid() argument
235 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid()
253 struct trace_event_file *trace_file, in trace_event_buffer_reserve() argument
256 struct trace_event_call *event_call = trace_file->event_call; in trace_event_buffer_reserve()
258 if ((trace_file->flags & EVENT_FILE_FL_PID_FILTER) && in trace_event_buffer_reserve()
259 trace_event_ignore_this_pid(trace_file)) in trace_event_buffer_reserve()
272 fbuffer->trace_file = trace_file; in trace_event_buffer_reserve()
275 trace_event_buffer_lock_reserve(&fbuffer->buffer, trace_file, in trace_event_buffer_reserve()
Dtrace_events_synth.c435 struct trace_event_file *trace_file = __data; in trace_event_raw_event_synth() local
442 event = trace_file->event_call->data; in trace_event_raw_event_synth()
444 if (trace_trigger_soft_disabled(trace_file)) in trace_event_raw_event_synth()
465 buffer = trace_file->tr->array_buffer.buffer; in trace_event_raw_event_synth()
468 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in trace_event_raw_event_synth()
Dtrace.c2763 struct trace_event_file *trace_file, in trace_event_buffer_lock_reserve() argument
2770 *current_rb = trace_file->tr->array_buffer.buffer; in trace_event_buffer_lock_reserve()
2772 if (!ring_buffer_time_stamp_abs(*current_rb) && (trace_file->flags & in trace_event_buffer_lock_reserve()
2793 if (!entry && trace_file->flags & EVENT_FILE_FL_TRIGGER_COND) { in trace_event_buffer_lock_reserve()
2817 event_call = fbuffer->trace_file->event_call; in output_printk()
2822 file = fbuffer->trace_file; in output_printk()
2828 event = &fbuffer->trace_file->event_call->event; in output_printk()
2880 event_trigger_unlock_commit_regs(fbuffer->trace_file, fbuffer->buffer, in trace_event_buffer_commit()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-ftrace.c570 char *trace_file; in __cmd_ftrace() local
619 trace_file = get_tracing_file("trace_pipe"); in __cmd_ftrace()
620 if (!trace_file) { in __cmd_ftrace()
625 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace()
627 put_tracing_file(trace_file); in __cmd_ftrace()
/kernel/linux/linux-5.10/include/linux/
Dtrace_events.h159 struct trace_event_file *trace_file,
233 struct trace_event_file *trace_file; member
241 struct trace_event_file *trace_file,
595 bool trace_event_ignore_this_pid(struct trace_event_file *trace_file);
/kernel/linux/linux-5.10/tools/perf/util/
Dprobe-file.h40 int open_trace_file(const char *trace_file, bool readwrite);
Dprobe-file.c74 int open_trace_file(const char *trace_file, bool readwrite) in open_trace_file() argument
79 ret = e_snprintf(buf, PATH_MAX, "%s/%s", tracing_path_mount(), trace_file); in open_trace_file()
/kernel/linux/linux-5.10/include/trace/
Dtrace_events.h678 struct trace_event_file *trace_file = __data; \
684 if (trace_trigger_soft_disabled(trace_file)) \
689 entry = trace_event_buffer_reserve(&fbuffer, trace_file, \
/kernel/linux/linux-5.10/Documentation/trace/
Dftrace.rst2398 static char trace_file[MAX_PATH+1];
2399 snprintf(trace_file, MAX_PATH, "%s/%s", find_tracefs(), file_name);
2400 return trace_file;