Lines Matching defs:labels
19 int bpf_resolve_jumps(struct bpf_labels *labels,
37 if (labels->labels[instr->k].location == 0xffffffff) {
39 labels->labels[instr->k].label);
42 instr->k = labels->labels[instr->k].location -
48 if (labels->labels[instr->k].location != 0xffffffff) {
50 labels->labels[instr->k].label);
53 labels->labels[instr->k].location = offset;
63 /* Simple lookup table for labels. */
64 __u32 seccomp_bpf_label(struct bpf_labels *labels, const char *label)
66 struct __bpf_label *begin = labels->labels, *end;
69 if (labels->count == BPF_LABELS_MAX) {
70 fprintf(stderr, "Too many labels\n");
73 if (labels->count == 0) {
76 labels->count++;
79 end = begin + labels->count;
86 labels->count++;