Lines Matching full: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) {
721 } else if (relo->kind == BPF_CORE_FIELD_BYTE_SIZE) {
728 prog_name, relo->kind, relo->insn_off / 8);
750 prog_name, relo->kind, relo->insn_off / 8);
772 switch (relo->kind) {
835 switch (relo->kind) {
869 switch (relo->kind) {
890 * specs and relocation kind. These values are calculated for each candidate.
912 if (core_relo_is_field_based(relo->kind)) {
958 } else if (core_relo_is_type_based(relo->kind)) {
961 } else if (core_relo_is_enumval_based(relo->kind)) {
974 prog_name, relo_idx, core_relo_kind_str(relo->kind),
975 relo->kind, relo->insn_off / 8);
1026 * Patched value is determined by relocation kind and target specification.
1028 * Expected insn->imm value is determined using relocation kind and local
1336 if (relo->kind == BPF_CORE_TYPE_ID_LOCAL) {
1349 prog_name, relo_idx, core_relo_kind_str(relo->kind), relo->kind);
1409 * depending on relo's kind.
1538 * - generally speaking types need to be of same kind (struct vs. struct, union
1551 * pointer, in which case we only check matching names and compatible kind
1609 /* match if the forward declaration is for the same kind */
1699 pr_warn("unexpected kind %s relocated, local [%d], target [%d]\n",