Lines Matching refs:bpf
172 bpf = convert_priority_to_intermediate_bpf(priority_syscalls) + \
177 for i, statement in enumerate(bpf):
184 bpf[i] = statement.format(fail=str(len(bpf) - i),
185 allow=str(len(bpf) - i - 1))
190 bpf.append(BPF_ALLOW + ",")
193 bpf.insert(0, BPF_JGE.format(ranges[0].begin, 0, str(len(bpf))) + ',')
194 return bpf
197 def convert_bpf_to_output(bpf, architecture, name_modifier): argument
219 return header + "\n".join(bpf) + footer
226 bpf = convert_ranges_to_bpf(ranges, priority_syscalls)
227 return convert_bpf_to_output(bpf, architecture, name_modifier)