readwrite
if (readwrite == AF9005_CMD_READ)
int readwrite, int type, u8 * values, int len)
command |= readwrite;
if (readwrite == AF9005_CMD_WRITE)
priv->readwrite[i] += 1;
memset(priv->readwrite, 0, sizeof(priv->readwrite));
priv->parent->readerwriters[i] -= priv->readwrite[i];
u32 readwrite[P2A_REGION_COUNT];
__setup("rw", readwrite);
int open_trace_file(const char *trace_file, bool readwrite)
pr_debug("Opening %s write=%d\n", buf, readwrite);
if (readwrite && !probe_event_dry_run)
static int open_kprobe_events(bool readwrite)
return open_trace_file("kprobe_events", readwrite);
static int open_uprobe_events(bool readwrite)
return open_trace_file("uprobe_events", readwrite);
static bool print_common_warning(int err, bool readwrite)
readwrite ? "write" : "read",
readwrite ? "run this command again with sudo." :
static void print_open_warning(int err, bool uprobe, bool readwrite)
if (print_common_warning(err, readwrite))
static void print_both_open_warning(int kerr, int uerr, bool readwrite)
if (kerr == uerr && print_common_warning(kerr, readwrite))
int open_trace_file(const char *trace_file, bool readwrite);