History

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.

Yonghong Song committed 9 years ago

Commit 81b9cf81 parent 4bebdc74 files · +23 −6Browse files

Showing the changes to tools/include/uapi (1 of 4 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+2−1
@@ -698,7 +698,8 @@ union bpf_attr { · 697 unmodified lines
698698 FN(sk_redirect_map), \
699699 FN(sock_map_update), \
700700 FN(xdp_adjust_meta), \
701− FN(perf_event_read_value),
701+ FN(perf_event_read_value), \
702+ FN(perf_prog_read_value),
702703
703704 /* integer value in 'imm' field of BPF_CALL instruction selects which helper
704705 * function eBPF program intends to call