Lines Matching refs:ranges
134 ranges = []
136 if not ranges:
137 ranges.append(SyscallRange(name, value))
140 last_range = ranges[-1]
144 ranges.append(SyscallRange(name, value))
145 return ranges
154 def convert_to_intermediate_bpf(ranges): argument
155 if len(ranges) == 1:
157 return [BPF_JGE.format(ranges[0].end, "{fail}", "{allow}") +
158 ", //" + "|".join(ranges[0].names)]
160 half = (len(ranges) + 1) // 2
161 first = convert_to_intermediate_bpf(ranges[:half])
162 second = convert_to_intermediate_bpf(ranges[half:])
163 jump = [BPF_JGE.format(ranges[half].begin, len(first), 0) + ","]
179 def convert_ranges_to_bpf(ranges, priority_syscalls): argument
181 convert_to_intermediate_bpf(ranges)
201 bpf.insert(0, BPF_JGE.format(ranges[0].begin, 0, str(len(bpf))) + ',')
233 ranges = convert_NRs_to_ranges(other_syscalls)
234 bpf = convert_ranges_to_bpf(ranges, priority_syscalls)