aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/uapi/linux
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2017-10-05 12:19:23 -0400
committerDavid S. Miller <davem@davemloft.net>2017-10-07 18:05:57 -0400
commit81b9cf8028a17bdbdaa0da80b735b32150d4e89e (patch)
treeb5ec33cc6476e31c8e30c6623e635c6b75be80ae /tools/include/uapi/linux
parent4bebdc7a85aa400c0222b5329861e4ad9252f1e5 (diff)
bpf: add a test case for helper bpf_perf_prog_read_value
The bpf sample program trace_event is enhanced to use the new helper to print out enabled/running time. Signed-off-by: Yonghong Song <yhs@fb.com> Acked-by: Alexei Starovoitov <ast@fb.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/include/uapi/linux')
-rw-r--r--tools/include/uapi/linux/bpf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index cdf6c4f50b0f..0894fd20b12b 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -698,7 +698,8 @@ union bpf_attr {
698 FN(sk_redirect_map), \ 698 FN(sk_redirect_map), \
699 FN(sock_map_update), \ 699 FN(sock_map_update), \
700 FN(xdp_adjust_meta), \ 700 FN(xdp_adjust_meta), \
701 FN(perf_event_read_value), 701 FN(perf_event_read_value), \
702 FN(perf_prog_read_value),
702 703
703/* integer value in 'imm' field of BPF_CALL instruction selects which helper 704/* integer value in 'imm' field of BPF_CALL instruction selects which helper
704 * function eBPF program intends to call 705 * function eBPF program intends to call