summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorJoel Fernandes <joelaf@google.com>2019-04-17 11:30:46 -0400
committerJoel Fernandes <joelaf@google.com>2019-04-17 15:37:18 +0000
commit1b8962af4c1b26251e83ee4593300d439e9922aa (patch)
tree79a29906676bbd850707a943632fd8bcd6a54781 /progs
parente1153fd1da40bdc43b82445b2c68a28c6f24e062 (diff)
downloadbpf-1b8962af4c1b26251e83ee4593300d439e9922aa.tar.gz
Add support for the bpf_probe_read_str bpf function
This is needed for the iorapd project (i/o readahead). Change-Id: If6a3de682296bbce0fc808a0eced6bd778106292 Signed-off-by: Joel Fernandes <joelaf@google.com>
Diffstat (limited to 'progs')
-rw-r--r--progs/include/bpf_helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/include/bpf_helpers.h b/progs/include/bpf_helpers.h
index 3ae4291..01bdc68 100644
--- a/progs/include/bpf_helpers.h
+++ b/progs/include/bpf_helpers.h
@@ -17,6 +17,7 @@ static int (*bpf_map_update_elem)(void* map, void* key, void* value,
unsigned long long flags) = (void*) BPF_FUNC_map_update_elem;
static int (*bpf_map_delete_elem)(void* map, void* key) = (void*) BPF_FUNC_map_delete_elem;
static int (*bpf_probe_read)(void* dst, int size, void* unsafe_ptr) = (void*) BPF_FUNC_probe_read;
+static int (*bpf_probe_read_str)(void* dst, int size, void* unsafe_ptr) = (void*) BPF_FUNC_probe_read_str;
static unsigned long long (*bpf_ktime_get_ns)(void) = (void*) BPF_FUNC_ktime_get_ns;
static int (*bpf_trace_printk)(const char* fmt, int fmt_size, ...) = (void*) BPF_FUNC_trace_printk;
static unsigned long long (*bpf_get_current_pid_tgid)(void) = (void*) BPF_FUNC_get_current_pid_tgid;