Searched refs:cur_size (Results 1 – 1 of 1) sorted by relevance
/base/startup/init/services/modules/seccomp/scripts/ |
D | generate_code_from_policy.py | 490 def gen_bpf_valid_syscall_nr(syscall_nr, cur_size): argument 493 bpf_policy.append(BPF_JEQ.format(syscall_nr, 0, cur_size)) 627 def compile_atom(self, atom, cur_size): argument 633 bpf_policy += self.compile_mask_equal_atom(atom, cur_size) 635 bpf_policy += self.compile_single_operation_atom(atom, cur_size) 662 def gen_mask_equal_bpf(arg_id, mask, value, cur_size): argument 667 bpf_policy.append(BPF_JEQ.format('((uint64_t)' + value + ') >> 32', 0, cur_size + 3)) 672 bpf_policy.append(BPF_JEQ.format(value, cur_size, cur_size + 1)) 676 def compile_mask_equal_atom(self, atom, cur_size): argument 699 return self.gen_mask_equal_bpf(arg_res[0], mask, value, cur_size) [all …]
|