Lines Matching refs:readwrite
35 static bool print_common_warning(int err, bool readwrite) in print_common_warning() argument
39 readwrite ? "write" : "read", in print_common_warning()
40 readwrite ? "run this command again with sudo." : in print_common_warning()
74 static void print_open_warning(int err, bool uprobe, bool readwrite) in print_open_warning() argument
78 if (print_common_warning(err, readwrite)) in print_open_warning()
89 static void print_both_open_warning(int kerr, int uerr, bool readwrite) in print_both_open_warning() argument
93 if (kerr == uerr && print_common_warning(kerr, readwrite)) in print_both_open_warning()
109 int open_trace_file(const char *trace_file, bool readwrite) in open_trace_file() argument
116 pr_debug("Opening %s write=%d\n", buf, readwrite); in open_trace_file()
117 if (readwrite && !probe_event_dry_run) in open_trace_file()
128 static int open_kprobe_events(bool readwrite) in open_kprobe_events() argument
130 return open_trace_file("kprobe_events", readwrite); in open_kprobe_events()
133 static int open_uprobe_events(bool readwrite) in open_uprobe_events() argument
135 return open_trace_file("uprobe_events", readwrite); in open_uprobe_events()