Lines Matching refs:label

43 static void bpf_set_curr_label(char *label);
44 static void bpf_set_jmp_label(char *label, enum jmp_type type);
49 char *label; member
63 %token number label
65 %type <label> label
118 : label ':' { bpf_set_curr_label($1); }
335 : OP_JMP label {
341 : OP_JEQ '#' number ',' label ',' label {
345 | OP_JEQ 'x' ',' label ',' label {
349 | OP_JEQ '%' 'x' ',' label ',' label {
353 | OP_JEQ '#' number ',' label {
356 | OP_JEQ 'x' ',' label {
359 | OP_JEQ '%' 'x' ',' label {
365 : OP_JNEQ '#' number ',' label {
368 | OP_JNEQ 'x' ',' label {
371 | OP_JNEQ '%' 'x' ',' label {
377 : OP_JLT '#' number ',' label {
380 | OP_JLT 'x' ',' label {
383 | OP_JLT '%' 'x' ',' label {
389 : OP_JLE '#' number ',' label {
392 | OP_JLE 'x' ',' label {
395 | OP_JLE '%' 'x' ',' label {
401 : OP_JGT '#' number ',' label ',' label {
405 | OP_JGT 'x' ',' label ',' label {
409 | OP_JGT '%' 'x' ',' label ',' label {
413 | OP_JGT '#' number ',' label {
416 | OP_JGT 'x' ',' label {
419 | OP_JGT '%' 'x' ',' label {
425 : OP_JGE '#' number ',' label ',' label {
429 | OP_JGE 'x' ',' label ',' label {
433 | OP_JGE '%' 'x' ',' label ',' label {
437 | OP_JGE '#' number ',' label {
440 | OP_JGE 'x' ',' label {
443 | OP_JGE '%' 'x' ',' label {
449 : OP_JSET '#' number ',' label ',' label {
453 | OP_JSET 'x' ',' label ',' label {
457 | OP_JSET '%' 'x' ',' label ',' label {
461 | OP_JSET '#' number ',' label {
464 | OP_JSET 'x' ',' label {
467 | OP_JSET '%' 'x' ',' label {
615 static void bpf_set_curr_label(char *label) in bpf_set_curr_label() argument
618 labels[curr_instr] = label; in bpf_set_curr_label()
621 static void bpf_set_jmp_label(char *label, enum jmp_type type) in bpf_set_jmp_label() argument
626 labels_jt[curr_instr] = label; in bpf_set_jmp_label()
629 labels_jf[curr_instr] = label; in bpf_set_jmp_label()
632 labels_k[curr_instr] = label; in bpf_set_jmp_label()
637 static int bpf_find_insns_offset(const char *label) in bpf_find_insns_offset() argument
642 if (labels[i] && !strcmp(label, labels[i])) { in bpf_find_insns_offset()
649 fprintf(stderr, "no such label \'%s\'!\n", label); in bpf_find_insns_offset()