Lines Matching refs:readwrite
36 static bool print_common_warning(int err, bool readwrite) in print_common_warning() argument
40 readwrite ? "write" : "read", in print_common_warning()
41 readwrite ? "run this command again with sudo." : in print_common_warning()
75 static void print_open_warning(int err, bool uprobe, bool readwrite) in print_open_warning() argument
79 if (print_common_warning(err, readwrite)) in print_open_warning()
90 static void print_both_open_warning(int kerr, int uerr, bool readwrite) in print_both_open_warning() argument
94 if (kerr == uerr && print_common_warning(kerr, readwrite)) in print_both_open_warning()
110 int open_trace_file(const char *trace_file, bool readwrite) in open_trace_file() argument
117 pr_debug("Opening %s write=%d\n", buf, readwrite); in open_trace_file()
118 if (readwrite && !probe_event_dry_run) in open_trace_file()
129 static int open_kprobe_events(bool readwrite) in open_kprobe_events() argument
131 return open_trace_file("kprobe_events", readwrite); in open_kprobe_events()
134 static int open_uprobe_events(bool readwrite) in open_uprobe_events() argument
136 return open_trace_file("uprobe_events", readwrite); in open_uprobe_events()