Lines Matching refs:bpf
23 import bpf
62 return bpf.simulate(self.filter.instructions, arch, syscall_number,
114 bpf.SyscallEntry(
115 entry.numbers[0], action, reject_action, op=bpf.BPF_JEQ))
120 bpf.SyscallEntry(
121 entry.numbers[1], reject_action, action, op=bpf.BPF_JGE))
126 bpf.SyscallEntry(
127 entry.numbers[0], action, reject_action, op=bpf.BPF_JGE))
130 upper_entry = bpf.SyscallEntry(
131 entry.numbers[1], reject_action, action, op=bpf.BPF_JGE)
133 bpf.SyscallEntry(
134 entry.numbers[0], upper_entry, reject_action, op=bpf.BPF_JGE))
245 bpf.SyscallEntry(
249 op=bpf.BPF_JGE)))
283 visitor = bpf.FlatteningVisitor(
285 accept_action = bpf.Allow()
294 next_action.accept(bpf.ArgFilterForwardingVisitor(visitor))
297 bpf.ValidateArch(next_action).accept(visitor)
300 bpf.ValidateArch(reject_action).accept(visitor)
313 if false_action == bpf.Allow():
326 block = bpf.Atom(atom.argument_index, atom.op, atom.value,
333 lowering_visitor = bpf.LoweringVisitor(arch=self._arch)
337 flattening_visitor = bpf.FlatteningVisitor(