Lines Matching defs:kind

86 static const char *core_relo_kind_str(enum bpf_core_relo_kind kind)
88 switch (kind) {
106 static bool core_relo_is_field_based(enum bpf_core_relo_kind kind)
108 switch (kind) {
121 static bool core_relo_is_type_based(enum bpf_core_relo_kind kind)
123 switch (kind) {
135 static bool core_relo_is_enumval_based(enum bpf_core_relo_kind kind)
137 switch (kind) {
220 pr_warn("unexpected kind %s relocated, local [%d], target [%d]\n",
281 spec->relo_kind = relo->kind;
284 if (core_relo_is_type_based(relo->kind)) {
315 if (core_relo_is_enumval_based(relo->kind)) {
326 if (!core_relo_is_field_based(relo->kind))
386 pr_warn("prog '%s': relo for [%u] %s (at idx %d) captures type [%d] of unexpected kind %s\n",
694 if (relo->kind == BPF_CORE_FIELD_EXISTS) {
707 if (relo->kind == BPF_CORE_FIELD_BYTE_OFFSET) {
715 } else if (relo->kind == BPF_CORE_FIELD_BYTE_SIZE) {
722 prog_name, relo->kind, relo->insn_off / 8);
744 prog_name, relo->kind, relo->insn_off / 8);
766 switch (relo->kind) {
819 switch (relo->kind) {
853 switch (relo->kind) {
874 * specs and relocation kind. These values are calculated for each candidate.
896 if (core_relo_is_field_based(relo->kind)) {
942 } else if (core_relo_is_type_based(relo->kind)) {
945 } else if (core_relo_is_enumval_based(relo->kind)) {
958 prog_name, relo_idx, core_relo_kind_str(relo->kind),
959 relo->kind, relo->insn_off / 8);
1010 * Patched value is determined by relocation kind and target specification.
1012 * Expected insn->imm value is determined using relocation kind and local
1320 if (relo->kind == BPF_CORE_TYPE_ID_LOCAL) {
1333 prog_name, relo_idx, core_relo_kind_str(relo->kind), relo->kind);
1393 * depending on relo's kind.
1522 * - generally speaking types need to be of same kind (struct vs. struct, union
1535 * pointer, in which case we only check matching names and compatible kind
1593 /* match if the forward declaration is for the same kind */
1683 pr_warn("unexpected kind %s relocated, local [%d], target [%d]\n",