History

bpf: remove global variables

Move three global variables protected by bpf_verifier_lock into 'struct bpf_verifier_env' to allow parallel verification.

Alexei Starovoitov committed 7 years ago

Commit 7df737e1 parent 3b880242 files · +18 −12Browse files

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

Unified · Split

include/linux/bpf_verifier.h+5−0
@@ -295,6 +295,11 @@ struct bpf_verifier_env { · 294 unmodified lines
295 const struct bpf_line_info *prev_linfo;295 const struct bpf_line_info *prev_linfo;
296 struct bpf_verifier_log log;296 struct bpf_verifier_log log;
297 struct bpf_subprog_info subprog_info[BPF_MAX_SUBPROGS + 1];297 struct bpf_subprog_info subprog_info[BPF_MAX_SUBPROGS + 1];
298 struct {
299 int *insn_state;
300 int *insn_stack;
301 int cur_stack;
302 } cfg;
298 u32 subprog_cnt;303 u32 subprog_cnt;
299 /* number of instructions analyzed by the verifier */304 /* number of instructions analyzed by the verifier */
300 u32 insn_processed;305 u32 insn_processed;

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