/Linux-v6.6/tools/perf/tests/shell/ |
D | record+zstd_comp_decomp.sh | 6 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.deco… 30 diff "$trace_file.comp.output" "$trace_file.decomp.output" 36 rm -f "$trace_file*"
|
/Linux-v6.6/tools/power/x86/intel_pstate_tracer/ |
D | intel_pstate_tracer.py | 66 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/tracing/events/power/pstate_sample/enable" variable 575 enable_trace(trace_file) 578 disable_trace(trace_file)
|
/Linux-v6.6/kernel/trace/ |
D | trace_syscalls.c | 294 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()
|
D | trace_fprobe.c | 174 struct trace_event_file *trace_file) in NOKPROBE_SYMBOL() 181 if (WARN_ON_ONCE(call != trace_file->event_call)) in NOKPROBE_SYMBOL() 184 if (trace_trigger_soft_disabled(trace_file)) in NOKPROBE_SYMBOL() 189 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in NOKPROBE_SYMBOL() 217 struct trace_event_file *trace_file) in __fexit_trace_func() argument 224 if (WARN_ON_ONCE(call != trace_file->event_call)) in __fexit_trace_func() 227 if (trace_trigger_soft_disabled(trace_file)) in __fexit_trace_func() 232 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in __fexit_trace_func()
|
D | trace_kprobe.c | 1345 struct trace_event_file *trace_file) in NOKPROBE_SYMBOL() 1352 WARN_ON(call != trace_file->event_call); in NOKPROBE_SYMBOL() 1354 if (trace_trigger_soft_disabled(trace_file)) in NOKPROBE_SYMBOL() 1359 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in NOKPROBE_SYMBOL() 1385 struct trace_event_file *trace_file) in __kretprobe_trace_func() argument 1392 WARN_ON(call != trace_file->event_call); in __kretprobe_trace_func() 1394 if (trace_trigger_soft_disabled(trace_file)) in __kretprobe_trace_func() 1399 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in __kretprobe_trace_func()
|
D | trace_events.c | 476 bool trace_event_ignore_this_pid(struct trace_event_file *trace_file) in trace_event_ignore_this_pid() argument 478 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() 496 struct trace_event_file *trace_file, in trace_event_buffer_reserve() argument 499 struct trace_event_call *event_call = trace_file->event_call; in trace_event_buffer_reserve() 501 if ((trace_file->flags & EVENT_FILE_FL_PID_FILTER) && in trace_event_buffer_reserve() 502 trace_event_ignore_this_pid(trace_file)) in trace_event_buffer_reserve() 512 fbuffer->trace_file = trace_file; in trace_event_buffer_reserve() 515 trace_event_buffer_lock_reserve(&fbuffer->buffer, trace_file, in trace_event_buffer_reserve()
|
D | trace_uprobe.c | 949 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 entry = trace_event_buffer_reserve(&fbuffer, trace_file, size); in __uprobe_trace_func()
|
D | trace_events_synth.c | 509 struct trace_event_file *trace_file = __data; in trace_event_raw_event_synth() local 516 event = trace_file->event_call->data; in trace_event_raw_event_synth() 518 if (trace_trigger_soft_disabled(trace_file)) in trace_event_raw_event_synth() 545 buffer = trace_file->tr->array_buffer.buffer; in trace_event_raw_event_synth() 548 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in trace_event_raw_event_synth()
|
D | trace.c | 2855 struct trace_event_file *trace_file, in trace_event_buffer_lock_reserve() argument 2860 struct trace_array *tr = trace_file->tr; in trace_event_buffer_lock_reserve() 2866 (trace_file->flags & (EVENT_FILE_FL_SOFT_DISABLED | EVENT_FILE_FL_FILTERED))) { in trace_event_buffer_lock_reserve() 2927 if (!entry && trace_file->flags & EVENT_FILE_FL_TRIGGER_COND) { in trace_event_buffer_lock_reserve() 2951 event_call = fbuffer->trace_file->event_call; in output_printk() 2956 file = fbuffer->trace_file; in output_printk() 2962 event = &fbuffer->trace_file->event_call->event; in output_printk() 3010 struct trace_event_file *file = fbuffer->trace_file; in trace_event_buffer_commit()
|
/Linux-v6.6/tools/perf/ |
D | builtin-ftrace.c | 565 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() 801 char *trace_file; in prepare_func_latency() local 825 trace_file = get_tracing_file("trace_pipe"); in prepare_func_latency() 826 if (!trace_file) { in prepare_func_latency() 831 fd = open(trace_file, O_RDONLY); in prepare_func_latency() 835 put_tracing_file(trace_file); in prepare_func_latency()
|
/Linux-v6.6/tools/power/x86/amd_pstate_tracer/ |
D | amd_pstate_trace.py | 57 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/tracing/events/amd_cpu/enable" variable 325 ipt.enable_trace(trace_file) 327 ipt.disable_trace(trace_file)
|
/Linux-v6.6/include/trace/ |
D | trace_custom_events.h | 145 struct trace_event_file *trace_file = __data; \ 151 if (trace_trigger_soft_disabled(trace_file)) \ 156 entry = trace_event_buffer_reserve(&fbuffer, trace_file, \
|
D | trace_events.h | 383 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-v6.6/tools/perf/util/ |
D | probe-file.h | 40 int open_trace_file(const char *trace_file, bool readwrite);
|
D | probe-file.c | 109 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-v6.6/include/linux/ |
D | trace_events.h | 234 struct trace_event_file *trace_file, 310 struct trace_event_file *trace_file; member 317 struct trace_event_file *trace_file, 724 bool trace_event_ignore_this_pid(struct trace_event_file *trace_file);
|
/Linux-v6.6/tools/testing/selftests/user_events/ |
D | ftrace_test.c | 24 const char *trace_file = "/sys/kernel/tracing/trace"; variable 29 int fd = open(trace_file, O_RDONLY); in trace_bytes()
|
/Linux-v6.6/Documentation/admin-guide/pm/ |
D | amd-pstate.rst | 469 ./amd_pstate_trace.py [-c cpus] -t <trace_file> -n <test_name>
|
/Linux-v6.6/Documentation/trace/ |
D | ftrace.rst | 2466 static char trace_file[MAX_PATH+1]; 2467 snprintf(trace_file, MAX_PATH, "%s/%s", find_tracefs(), file_name); 2468 return trace_file;
|