Lines Matching refs:ranges
126 ranges = []
128 if not ranges:
129 ranges.append(SyscallRange(name, value))
132 last_range = ranges[-1]
136 ranges.append(SyscallRange(name, value))
137 return ranges
146 def convert_to_intermediate_bpf(ranges): argument
147 if len(ranges) == 1:
149 return [BPF_JGE.format(ranges[0].end, "{fail}", "{allow}") +
150 ", //" + "|".join(ranges[0].names)]
152 half = (len(ranges) + 1) / 2
153 first = convert_to_intermediate_bpf(ranges[:half])
154 second = convert_to_intermediate_bpf(ranges[half:])
155 jump = [BPF_JGE.format(ranges[half].begin, len(first), 0) + ","]
171 def convert_ranges_to_bpf(ranges, priority_syscalls): argument
173 convert_to_intermediate_bpf(ranges)
193 bpf.insert(0, BPF_JGE.format(ranges[0].begin, 0, str(len(bpf))) + ',')
225 ranges = convert_NRs_to_ranges(other_syscalls)
226 bpf = convert_ranges_to_bpf(ranges, priority_syscalls)