History

bpf: Add support for BTF pointers to interpreter

Pointer to BTF object is a pointer to kernel object or NULL. The memory access in the interpreter has to be done via probe_kernel_read to avoid page faults.

Alexei Starovoitov committed 7 years ago

Commit 2a027591 parent ac4414b3 files · +30 −0Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/filter.h+3−0
@@ -65,6 +65,9 @@ struct ctl_table_header; · 64 unmodified lines
65/* unused opcode to mark special call to bpf_tail_call() helper */65/* unused opcode to mark special call to bpf_tail_call() helper */
66#define BPF_TAIL_CALL 0xf066#define BPF_TAIL_CALL 0xf0
67 67
68/* unused opcode to mark special load instruction. Same as BPF_ABS */
69#define BPF_PROBE_MEM 0x20
70
68/* unused opcode to mark call to interpreter with arguments */71/* unused opcode to mark call to interpreter with arguments */
69#define BPF_CALL_ARGS 0xe072#define BPF_CALL_ARGS 0xe0
70 73

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