Home
last modified time | relevance | path

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

/openbmc/linux/tools/perf/tests/shell/
H A 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.deco…
30 diff "$trace_file.comp.output" "$trace_file.decomp.output"
36 rm -f "$trace_file*"
/openbmc/linux/tools/power/x86/intel_pstate_tracer/
H A 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/tracing/events/power/pstate_sample/enable" variable
575 enable_trace(trace_file)
578 disable_trace(trace_file)
/openbmc/linux/kernel/trace/
H A 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()
H A Dtrace_fprobe.c178 struct trace_event_file *trace_file) in NOKPROBE_SYMBOL()
185 if (WARN_ON_ONCE(call != trace_file->event_call)) in NOKPROBE_SYMBOL()
188 if (trace_trigger_soft_disabled(trace_file)) in NOKPROBE_SYMBOL()
193 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in NOKPROBE_SYMBOL()
234 void *entry_data, struct trace_event_file *trace_file) in NOKPROBE_SYMBOL()
241 if (WARN_ON_ONCE(call != trace_file->event_call)) in NOKPROBE_SYMBOL()
244 if (trace_trigger_soft_disabled(trace_file)) in NOKPROBE_SYMBOL()
249 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in NOKPROBE_SYMBOL()
H A Dtrace_kprobe.c1365 struct trace_event_file *trace_file) in NOKPROBE_SYMBOL()
1372 WARN_ON(call != trace_file->event_call); in NOKPROBE_SYMBOL()
1374 if (trace_trigger_soft_disabled(trace_file)) in NOKPROBE_SYMBOL()
1379 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in NOKPROBE_SYMBOL()
1430 struct trace_event_file *trace_file) in __kretprobe_trace_func() argument
1437 WARN_ON(call != trace_file->event_call); in __kretprobe_trace_func()
1439 if (trace_trigger_soft_disabled(trace_file)) in __kretprobe_trace_func()
1444 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in __kretprobe_trace_func()
H A Dtrace_events.c476 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()
H A Dtrace_uprobe.c982 struct trace_event_file *trace_file) in __uprobe_trace_func() argument
990 WARN_ON(call != trace_file->event_call); in __uprobe_trace_func()
992 if (trace_trigger_soft_disabled(trace_file)) in __uprobe_trace_func()
997 entry = trace_event_buffer_reserve(&fbuffer, trace_file, size); in __uprobe_trace_func()
H A Dtrace_events_synth.c510 struct trace_event_file *trace_file = __data; in trace_event_raw_event_synth() local
517 event = trace_file->event_call->data; in trace_event_raw_event_synth()
519 if (trace_trigger_soft_disabled(trace_file)) in trace_event_raw_event_synth()
546 buffer = trace_file->tr->array_buffer.buffer; in trace_event_raw_event_synth()
549 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in trace_event_raw_event_synth()
H A Dtrace.c2838 struct trace_event_file *trace_file, in trace_event_buffer_lock_reserve() argument
2843 struct trace_array *tr = trace_file->tr; in trace_event_buffer_lock_reserve()
2849 (trace_file->flags & (EVENT_FILE_FL_SOFT_DISABLED | EVENT_FILE_FL_FILTERED))) { in trace_event_buffer_lock_reserve()
2910 if (!entry && trace_file->flags & EVENT_FILE_FL_TRIGGER_COND) { in trace_event_buffer_lock_reserve()
2934 event_call = fbuffer->trace_file->event_call; in output_printk()
2939 file = fbuffer->trace_file; in output_printk()
2945 event = &fbuffer->trace_file->event_call->event; in output_printk()
2993 struct trace_event_file *file = fbuffer->trace_file; in trace_event_buffer_commit()
/openbmc/linux/tools/perf/
H A 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()
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()
/openbmc/linux/tools/power/x86/amd_pstate_tracer/
H A 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/tracing/events/amd_cpu/enable" variable
325 ipt.enable_trace(trace_file)
327 ipt.disable_trace(trace_file)
/openbmc/linux/include/trace/
H A 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, \
H A 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, \
/openbmc/linux/tools/perf/util/
H A Dprobe-file.h40 int open_trace_file(const char *trace_file, bool readwrite);
H A 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()
/openbmc/linux/include/linux/
H A Dtrace_events.h234 struct trace_event_file *trace_file,
310 struct trace_event_file *trace_file; member
317 struct trace_event_file *trace_file,
728 bool trace_event_ignore_this_pid(struct trace_event_file *trace_file);
/openbmc/linux/tools/testing/selftests/user_events/
H A Dftrace_test.c24 const char *trace_file = "/sys/kernel/tracing/trace"; variable
29 int fd = open(trace_file, O_RDONLY); in trace_bytes()
/openbmc/u-boot/doc/
H A DREADME.trace278 -p <trace_file>
/openbmc/qemu/
H A Dmeson_options.txt32 option('trace_file', type: 'string', value: 'trace', string
H A Dmeson.build2248 config_host_data.set_quoted('CONFIG_TRACE_FILE', get_option('trace_file'))
4278 summary_info += {'Trace output file': get_option('trace_file') + '-<pid>'}
/openbmc/linux/Documentation/admin-guide/pm/
H A Damd-pstate.rst469 ./amd_pstate_trace.py [-c cpus] -t <trace_file> -n <test_name>
/openbmc/linux/Documentation/trace/
H A Dftrace.rst2466 static char trace_file[MAX_PATH+1];
2467 snprintf(trace_file, MAX_PATH, "%s/%s", find_tracefs(), file_name);
2468 return trace_file;