Lines Matching refs:labels
187 int bpf_resolve_jumps(struct bpf_labels *labels,
204 if (labels->labels[filter->k].location == 0xffffffff) {
206 labels->labels[filter->k].label);
209 filter->k = labels->labels[filter->k].location -
215 if (labels->labels[filter->k].location != 0xffffffff) {
217 labels->labels[filter->k].label);
220 labels->labels[filter->k].location = insn;
230 /* Simple lookup table for labels. */
231 int bpf_label_id(struct bpf_labels *labels, const char *label)
233 struct __bpf_label *begin = labels->labels, *end;
235 if (labels->count == 0) {
241 labels->count++;
244 end = begin + labels->count;
254 labels->count++;
259 void free_label_strings(struct bpf_labels *labels)
261 if (labels->count == 0)
264 struct __bpf_label *begin = labels->labels, *end;
266 end = begin + labels->count;