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/linux (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
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 helper704/* integer value in 'imm' field of BPF_CALL instruction selects which helper
704 * function eBPF program intends to call705 * function eBPF program intends to call

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t