Home
last modified time | relevance | path

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

/linux-6.1.9/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 -F comm,dso,sym | head -n -3 > $trace_file.comp.output &&
29 …$perf_tool report -i $trace_file.decomp --stdio -F comm,dso,sym | head -n -3 > $trace_file.decomp.…
30 diff $trace_file.comp.output $trace_file.decomp.output
36 rm -f $trace_file*
/linux-6.1.9/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py66 global sample_num, last_sec_cpu, last_usec_cpu, start_time, testname, trace_file
382 def enable_trace(trace_file): argument
386 open(trace_file,'w').write("1")
391 def disable_trace(trace_file): argument
395 open(trace_file, 'w').write("0")
491 disable_trace(trace_file)
498 trace_file = "/sys/kernel/debug/tracing/events/power/pstate_sample/enable" variable
575 enable_trace(trace_file)
578 disable_trace(trace_file)
/linux-6.1.9/kernel/trace/
Dtrace_syscalls.c294 struct trace_event_file *trace_file; in ftrace_syscall_enter() local
307 trace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]); in ftrace_syscall_enter()
308 if (!trace_file) in ftrace_syscall_enter()
311 if (trace_trigger_soft_disabled(trace_file)) in ftrace_syscall_enter()
320 entry = trace_event_buffer_reserve(&fbuffer, trace_file, size); in ftrace_syscall_enter()
335 struct trace_event_file *trace_file; in ftrace_syscall_exit() local
346 trace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]); in ftrace_syscall_exit()
347 if (!trace_file) in ftrace_syscall_exit()
350 if (trace_trigger_soft_disabled(trace_file)) in ftrace_syscall_exit()
357 entry = trace_event_buffer_reserve(&fbuffer, trace_file, sizeof(*entry)); in ftrace_syscall_exit()
Dtrace_kprobe.c1327 struct trace_event_file *trace_file) in NOKPROBE_SYMBOL()
1334 WARN_ON(call != trace_file->event_call); in NOKPROBE_SYMBOL()
1336 if (trace_trigger_soft_disabled(trace_file)) in NOKPROBE_SYMBOL()
1341 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in NOKPROBE_SYMBOL()
1368 struct trace_event_file *trace_file) in __kretprobe_trace_func() argument
1375 WARN_ON(call != trace_file->event_call); in __kretprobe_trace_func()
1377 if (trace_trigger_soft_disabled(trace_file)) in __kretprobe_trace_func()
1382 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in __kretprobe_trace_func()
Dtrace_events.c459 bool trace_event_ignore_this_pid(struct trace_event_file *trace_file) in trace_event_ignore_this_pid() argument
461 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid()
479 struct trace_event_file *trace_file, in trace_event_buffer_reserve() argument
482 struct trace_event_call *event_call = trace_file->event_call; in trace_event_buffer_reserve()
484 if ((trace_file->flags & EVENT_FILE_FL_PID_FILTER) && in trace_event_buffer_reserve()
485 trace_event_ignore_this_pid(trace_file)) in trace_event_buffer_reserve()
495 fbuffer->trace_file = trace_file; in trace_event_buffer_reserve()
498 trace_event_buffer_lock_reserve(&fbuffer->buffer, trace_file, in trace_event_buffer_reserve()
Dtrace_events_synth.c455 struct trace_event_file *trace_file = __data; in trace_event_raw_event_synth() local
462 event = trace_file->event_call->data; in trace_event_raw_event_synth()
464 if (trace_trigger_soft_disabled(trace_file)) in trace_event_raw_event_synth()
485 buffer = trace_file->tr->array_buffer.buffer; in trace_event_raw_event_synth()
488 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in trace_event_raw_event_synth()
Dtrace_uprobe.c952 struct trace_event_file *trace_file) in __uprobe_trace_func() argument
960 WARN_ON(call != trace_file->event_call); in __uprobe_trace_func()
965 if (trace_trigger_soft_disabled(trace_file)) in __uprobe_trace_func()
970 entry = trace_event_buffer_reserve(&fbuffer, trace_file, size); in __uprobe_trace_func()
Dtrace.c2785 struct trace_event_file *trace_file, in trace_event_buffer_lock_reserve() argument
2790 struct trace_array *tr = trace_file->tr; in trace_event_buffer_lock_reserve()
2796 (trace_file->flags & (EVENT_FILE_FL_SOFT_DISABLED | EVENT_FILE_FL_FILTERED))) { in trace_event_buffer_lock_reserve()
2857 if (!entry && trace_file->flags & EVENT_FILE_FL_TRIGGER_COND) { in trace_event_buffer_lock_reserve()
2881 event_call = fbuffer->trace_file->event_call; in output_printk()
2886 file = fbuffer->trace_file; in output_printk()
2892 event = &fbuffer->trace_file->event_call->event; in output_printk()
2940 struct trace_event_file *file = fbuffer->trace_file; in trace_event_buffer_commit()
/linux-6.1.9/tools/perf/
Dbuiltin-ftrace.c565 char *trace_file; in __cmd_ftrace() local
605 trace_file = get_tracing_file("trace_pipe"); in __cmd_ftrace()
606 if (!trace_file) { in __cmd_ftrace()
611 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace()
613 put_tracing_file(trace_file); in __cmd_ftrace()
799 char *trace_file; in prepare_func_latency() local
823 trace_file = get_tracing_file("trace_pipe"); in prepare_func_latency()
824 if (!trace_file) { in prepare_func_latency()
829 fd = open(trace_file, O_RDONLY); in prepare_func_latency()
833 put_tracing_file(trace_file); in prepare_func_latency()
/linux-6.1.9/tools/power/x86/amd_pstate_tracer/
Damd_pstate_trace.py57 global sample_num, last_sec_cpu, last_usec_cpu, start_time, test_name, trace_file
246 ipt.disable_trace(trace_file)
251 trace_file = "/sys/kernel/debug/tracing/events/amd_cpu/enable" variable
325 ipt.enable_trace(trace_file)
327 ipt.disable_trace(trace_file)
/linux-6.1.9/include/trace/
Dtrace_custom_events.h145 struct trace_event_file *trace_file = __data; \
151 if (trace_trigger_soft_disabled(trace_file)) \
156 entry = trace_event_buffer_reserve(&fbuffer, trace_file, \
Dtrace_events.h383 struct trace_event_file *trace_file = __data; \
389 if (trace_trigger_soft_disabled(trace_file)) \
394 entry = trace_event_buffer_reserve(&fbuffer, trace_file, \
/linux-6.1.9/tools/perf/util/
Dprobe-file.h40 int open_trace_file(const char *trace_file, bool readwrite);
Dprobe-file.c109 int open_trace_file(const char *trace_file, bool readwrite) in open_trace_file() argument
114 ret = e_snprintf(buf, PATH_MAX, "%s/%s", tracing_path_mount(), trace_file); in open_trace_file()
/linux-6.1.9/include/linux/
Dtrace_events.h224 struct trace_event_file *trace_file,
298 struct trace_event_file *trace_file; member
305 struct trace_event_file *trace_file,
709 bool trace_event_ignore_this_pid(struct trace_event_file *trace_file);
/linux-6.1.9/tools/testing/selftests/user_events/
Dftrace_test.c22 const char *trace_file = "/sys/kernel/debug/tracing/trace"; variable
32 int fd = open(trace_file, O_RDONLY); in trace_bytes()
/linux-6.1.9/Documentation/admin-guide/pm/
Damd-pstate.rst382 ./amd_pstate_trace.py [-c cpus] -t <trace_file> -n <test_name>
/linux-6.1.9/Documentation/trace/
Dftrace.rst2416 static char trace_file[MAX_PATH+1];
2417 snprintf(trace_file, MAX_PATH, "%s/%s", find_tracefs(), file_name);
2418 return trace_file;