Lines Matching refs:labels
294 int bpf_resolve_jumps(struct bpf_labels *labels, struct sock_filter *filter,
314 if (instr->k >= labels->count) {
318 if (labels->labels[instr->k].location == 0xffffffff) {
320 labels->labels[instr->k].label);
324 labels->labels[instr->k].location - (offset + 1);
329 if (labels->labels[instr->k].location != 0xffffffff) {
331 labels->labels[instr->k].label);
334 labels->labels[instr->k].location = offset;
344 /* Simple lookup table for labels. */
345 int bpf_label_id(struct bpf_labels *labels, const char *label)
347 struct __bpf_label *begin = labels->labels, *end;
349 if (labels->count == 0) {
355 labels->count++;
358 end = begin + labels->count;
366 if (labels->count == BPF_LABELS_MAX) {
374 labels->count++;
378 void free_label_strings(struct bpf_labels *labels)
380 if (labels->count == 0)
383 struct __bpf_label *begin = labels->labels, *end;
385 end = begin + labels->count;
391 labels->count = 0;