• Home
  • Raw
  • Download

Lines Matching refs:file

352 				struct trace_event_file *file)  in enable_trace_kprobe()  argument
365 if (file) { in enable_trace_kprobe()
366 ret = trace_probe_add_file(tp, file); in enable_trace_kprobe()
389 if (file) in enable_trace_kprobe()
390 trace_probe_remove_file(tp, file); in enable_trace_kprobe()
403 struct trace_event_file *file) in disable_trace_kprobe() argument
411 if (file) { in disable_trace_kprobe()
412 if (!trace_probe_get_file_link(tp, file)) in disable_trace_kprobe()
424 if (file) in disable_trace_kprobe()
431 trace_probe_remove_file(tp, file); in disable_trace_kprobe()
956 static int probes_open(struct inode *inode, struct file *file) in probes_open() argument
964 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
970 return seq_open(file, &probes_seq_op); in probes_open()
973 static ssize_t probes_write(struct file *file, const char __user *buffer, in probes_write() argument
976 return trace_parse_run_command(file, buffer, count, ppos, in probes_write()
1014 static int profile_open(struct inode *inode, struct file *file) in profile_open() argument
1022 return seq_open(file, &profile_seq_op); in profile_open()
1215 __kprobe_trace_func(tk, regs, link->file); in kprobe_trace_func()
1265 __kretprobe_trace_func(tk, ri, regs, link->file); in kretprobe_trace_func()
1493 struct trace_event_file *file = data; in kprobe_register() local
1497 return enable_trace_kprobe(event, file); in kprobe_register()
1499 return disable_trace_kprobe(event, file); in kprobe_register()
1652 struct trace_event_file *file; in enable_boot_kprobe_events() local
1658 list_for_each_entry(file, &tr->events, list) in enable_boot_kprobe_events()
1659 if (file->event_call == trace_probe_event_call(&tk->tp)) in enable_boot_kprobe_events()
1660 trace_event_enable_disable(file, 1, 0); in enable_boot_kprobe_events()
1732 struct trace_event_file *file; in find_trace_probe_file() local
1734 list_for_each_entry(file, &tr->events, list) in find_trace_probe_file()
1735 if (file->event_call == trace_probe_event_call(&tk->tp)) in find_trace_probe_file()
1736 return file; in find_trace_probe_file()
1750 struct trace_event_file *file; in kprobe_trace_self_tests_init() local
1776 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1777 if (WARN_ON_ONCE(file == NULL)) { in kprobe_trace_self_tests_init()
1782 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
1798 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1799 if (WARN_ON_ONCE(file == NULL)) { in kprobe_trace_self_tests_init()
1804 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
1832 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1833 if (WARN_ON_ONCE(file == NULL)) { in kprobe_trace_self_tests_init()
1838 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
1851 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1852 if (WARN_ON_ONCE(file == NULL)) { in kprobe_trace_self_tests_init()
1857 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()