summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/bpf.h
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2020-04-30 10:15:05 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-05-01 20:36:32 +0300
commit0bee106716cfb2c6da81916b968395db22bd7755 (patch)
tree6a438ee3a2376d99a6cccee19c280f2e4e791db8 /tools/lib/bpf/bpf.h
parentd46edd671a147032e22cfeb271a5734703093649 (diff)
downloadlinux-0bee106716cfb2c6da81916b968395db22bd7755.tar.xz
libbpf: Add support for command BPF_ENABLE_STATS
bpf_enable_stats() is added to enable given stats. Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200430071506.1408910-3-songliubraving@fb.com
Diffstat (limited to 'tools/lib/bpf/bpf.h')
-rw-r--r--tools/lib/bpf/bpf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h
index 335b457b3a25..1901b2777854 100644
--- a/tools/lib/bpf/bpf.h
+++ b/tools/lib/bpf/bpf.h
@@ -231,6 +231,7 @@ LIBBPF_API int bpf_load_btf(void *btf, __u32 btf_size, char *log_buf,
LIBBPF_API int bpf_task_fd_query(int pid, int fd, __u32 flags, char *buf,
__u32 *buf_len, __u32 *prog_id, __u32 *fd_type,
__u64 *probe_offset, __u64 *probe_addr);
+LIBBPF_API int bpf_enable_stats(enum bpf_stats_type type);
#ifdef __cplusplus
} /* extern "C" */