Lines Matching refs:file
350 struct trace_event_file *file) in enable_trace_kprobe() argument
363 if (file) { in enable_trace_kprobe()
364 ret = trace_probe_add_file(tp, file); in enable_trace_kprobe()
386 if (file) in enable_trace_kprobe()
387 trace_probe_remove_file(tp, file); in enable_trace_kprobe()
400 struct trace_event_file *file) in disable_trace_kprobe() argument
408 if (file) { in disable_trace_kprobe()
409 if (!trace_probe_get_file_link(tp, file)) in disable_trace_kprobe()
421 if (file) in disable_trace_kprobe()
428 trace_probe_remove_file(tp, file); in disable_trace_kprobe()
1202 static int probes_open(struct inode *inode, struct file *file) in probes_open() argument
1210 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
1216 return seq_open(file, &probes_seq_op); in probes_open()
1219 static ssize_t probes_write(struct file *file, const char __user *buffer, in probes_write() argument
1222 return trace_parse_run_command(file, buffer, count, ppos, in probes_write()
1263 static int profile_open(struct inode *inode, struct file *file) in profile_open() argument
1271 return seq_open(file, &profile_seq_op); in profile_open()
1421 __kprobe_trace_func(tk, regs, link->file); in kprobe_trace_func()
1464 __kretprobe_trace_func(tk, ri, regs, link->file); in kretprobe_trace_func()
1692 struct trace_event_file *file = data; in kprobe_register() local
1696 return enable_trace_kprobe(event, file); in kprobe_register()
1698 return disable_trace_kprobe(event, file); in kprobe_register()
1895 struct trace_event_file *file; in enable_boot_kprobe_events() local
1901 list_for_each_entry(file, &tr->events, list) in enable_boot_kprobe_events()
1902 if (file->event_call == trace_probe_event_call(&tk->tp)) in enable_boot_kprobe_events()
1903 trace_event_enable_disable(file, 1, 0); in enable_boot_kprobe_events()
1977 struct trace_event_file *file; in find_trace_probe_file() local
1979 list_for_each_entry(file, &tr->events, list) in find_trace_probe_file()
1980 if (file->event_call == trace_probe_event_call(&tk->tp)) in find_trace_probe_file()
1981 return file; in find_trace_probe_file()
1995 struct trace_event_file *file; in kprobe_trace_self_tests_init() local
2018 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2019 if (WARN_ON_ONCE(file == NULL)) { in kprobe_trace_self_tests_init()
2024 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
2039 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2040 if (WARN_ON_ONCE(file == NULL)) { in kprobe_trace_self_tests_init()
2045 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
2073 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2074 if (WARN_ON_ONCE(file == NULL)) { in kprobe_trace_self_tests_init()
2079 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
2092 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2093 if (WARN_ON_ONCE(file == NULL)) { in kprobe_trace_self_tests_init()
2098 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()