Lines Matching refs:labels
204 int bpf_resolve_jumps(struct bpf_labels *labels, struct sock_filter *filter, in bpf_resolve_jumps() argument
224 if (instr->k >= labels->count) { in bpf_resolve_jumps()
228 if (labels->labels[instr->k].location == 0xffffffff) { in bpf_resolve_jumps()
230 labels->labels[instr->k].label); in bpf_resolve_jumps()
234 labels->labels[instr->k].location - (offset + 1); in bpf_resolve_jumps()
239 if (labels->labels[instr->k].location != 0xffffffff) { in bpf_resolve_jumps()
241 labels->labels[instr->k].label); in bpf_resolve_jumps()
244 labels->labels[instr->k].location = offset; in bpf_resolve_jumps()
255 int bpf_label_id(struct bpf_labels *labels, const char *label) in bpf_label_id() argument
257 struct __bpf_label *begin = labels->labels, *end; in bpf_label_id()
259 if (labels->count == 0) { in bpf_label_id()
265 labels->count++; in bpf_label_id()
268 end = begin + labels->count; in bpf_label_id()
276 if (labels->count == BPF_LABELS_MAX) { in bpf_label_id()
284 labels->count++; in bpf_label_id()
288 void free_label_strings(struct bpf_labels *labels) in free_label_strings() argument
290 if (labels->count == 0) in free_label_strings()
293 struct __bpf_label *begin = labels->labels, *end; in free_label_strings()
295 end = begin + labels->count; in free_label_strings()
301 labels->count = 0; in free_label_strings()