提交 de6e3cad 编写于 作者: Y Yufen Yu 提交者: Cheng Jian

bpf: add bpf_probe_read_str into bpf_helpers.h

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I3UHF8
CVE: NA

-------------------------------------------------

Then, we can use bpf_probe_read_str() into ebpf program.
Signed-off-by: NYufen Yu <yuyufen@huawei.com>
Reviewed-by: NHou Tao <houtao1@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 4a0a1e84
......@@ -18,6 +18,8 @@ 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, ...) =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册