Home
last modified time | relevance | path

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

/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*"
/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)
/linux/tools/power/x86/amd_pstate_tracer/
H A Damd_pstate_trace.py56 global sample_num, last_sec_cpu, last_usec_cpu, start_time, test_name, trace_file
245 ipt.disable_trace(trace_file)
250 trace_file = "/sys/kernel/tracing/events/amd_cpu/enable" variable
267 opts, args = getopt.getopt(sys.argv[1:],"ht:i:c:n:m:",["help","trace_file=","interval=","cpu=","name=","memory="])
275 elif opt in ("-t", "--trace_file"):
324 ipt.enable_trace(trace_file)
326 ipt.disable_trace(trace_file)
/linux/tools/perf/
H A Dbuiltin-ftrace.c743 char *trace_file; in __cmd_ftrace() local
774 trace_file = get_tracing_instance_file("trace_pipe"); in __cmd_ftrace()
775 if (!trace_file) { in __cmd_ftrace()
780 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace()
782 put_tracing_file(trace_file); in __cmd_ftrace()
1044 char *trace_file; in prepare_func_latency() local
1071 trace_file = get_tracing_instance_file("trace_pipe"); in prepare_func_latency()
1072 if (!trace_file) { in prepare_func_latency()
1077 fd = open(trace_file, O_RDONLY); in prepare_func_latency()
1083 put_tracing_file(trace_file); in prepare_func_latency()
[all …]
/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, \
/linux/kernel/trace/
H A Dtrace_fprobe.c323 struct trace_event_file *trace_file) in NOKPROBE_SYMBOL()
330 if (WARN_ON_ONCE(call != trace_file->event_call)) in NOKPROBE_SYMBOL()
333 if (trace_trigger_soft_disabled(trace_file)) in NOKPROBE_SYMBOL()
338 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in NOKPROBE_SYMBOL()
409 void *entry_data, struct trace_event_file *trace_file) in NOKPROBE_SYMBOL()
416 if (WARN_ON_ONCE(call != trace_file->event_call)) in NOKPROBE_SYMBOL()
419 if (trace_trigger_soft_disabled(trace_file)) in NOKPROBE_SYMBOL()
424 entry = trace_event_buffer_reserve(&fbuffer, trace_file, in NOKPROBE_SYMBOL()
H A Dtrace_uprobe.c996 struct trace_event_file *trace_file) in __uprobe_trace_func() argument
1004 WARN_ON(call != trace_file->event_call); in __uprobe_trace_func()
1006 if (trace_trigger_soft_disabled(trace_file)) in __uprobe_trace_func()
1011 entry = trace_event_buffer_reserve(&fbuffer, trace_file, size); in __uprobe_trace_func()
H A Dtrace_events.c632 bool trace_event_ignore_this_pid(struct trace_event_file *trace_file) in trace_event_ignore_this_pid() argument
634 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid()
669 struct trace_event_file *trace_file, in trace_event_buffer_reserve() argument
672 struct trace_event_call *event_call = trace_file->event_call; in trace_event_buffer_reserve()
674 if ((trace_file->flags & EVENT_FILE_FL_PID_FILTER) && in trace_event_buffer_reserve()
675 trace_event_ignore_this_pid(trace_file)) in trace_event_buffer_reserve()
685 fbuffer->trace_file = trace_file; in trace_event_buffer_reserve()
688 trace_event_buffer_lock_reserve(&fbuffer->buffer, trace_file, in trace_event_buffer_reserve()
H A Dtrace.c1860 struct trace_event_file *trace_file, in trace_event_buffer_lock_reserve() argument
1865 struct trace_array *tr = trace_file->tr; in trace_event_buffer_lock_reserve()
1871 (trace_file->flags & (EVENT_FILE_FL_SOFT_DISABLED | EVENT_FILE_FL_FILTERED))) { in trace_event_buffer_lock_reserve()
1932 if (!entry && trace_file->flags & EVENT_FILE_FL_TRIGGER_COND) { in trace_event_buffer_lock_reserve()
1956 event_call = fbuffer->trace_file->event_call; in output_printk()
1961 file = fbuffer->trace_file; in output_printk()
1967 event = &fbuffer->trace_file->event_call->event; in output_printk()
2012 struct trace_event_file *file = fbuffer->trace_file; in trace_event_buffer_commit()
/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()
/linux/tools/perf/util/
H A Dprobe-file.c110 int open_trace_file(const char *trace_file, bool readwrite) in open_trace_file() argument
115 ret = e_snprintf(buf, PATH_MAX, "%s/%s", tracing_path_mount(), trace_file); in open_trace_file()