Lines Matching defs:kind

719 				   const char *name, __u32 kind);
2143 pr_warn("map '%s': map-in-map inner def is of unexpected kind %s.\n",
2149 pr_warn("map '%s': map-in-map inner def is of unexpected kind %s.\n",
2241 pr_warn("map '%s': unexpected var kind %s.\n",
2254 pr_warn("map '%s': unexpected def kind %s.\n",
4386 /* CO-RE relocation kind */
4418 static const char *core_relo_kind_str(enum bpf_core_relo_kind kind)
4420 switch (kind) {
4437 static bool core_relo_is_field_based(enum bpf_core_relo_kind kind)
4439 switch (kind) {
4452 static bool core_relo_is_type_based(enum bpf_core_relo_kind kind)
4454 switch (kind) {
4465 static bool core_relo_is_enumval_based(enum bpf_core_relo_kind kind)
4467 switch (kind) {
4635 pr_warn("relo for [%u] %s (at idx %d) captures type [%d] of unexpected kind %s\n",
4802 pr_warn("unexpected kind %d relocated, local [%d], target [%d]\n",
4902 * kind should match for local and target types (i.e., STRUCT is not
4984 pr_warn("unexpected kind %s relocated, local [%d], target [%d]\n",
5121 if (relo->kind == BPF_FIELD_EXISTS) {
5134 if (relo->kind == BPF_FIELD_BYTE_OFFSET) {
5142 } else if (relo->kind == BPF_FIELD_BYTE_SIZE) {
5149 prog->name, relo->kind, relo->insn_off / 8);
5171 prog->name, relo->kind, relo->insn_off / 8);
5193 switch (relo->kind) {
5243 switch (relo->kind) {
5272 switch (relo->kind) {
5316 * specs and relocation kind. These values are calculated for each candidate.
5338 if (core_relo_is_field_based(relo->kind)) {
5384 } else if (core_relo_is_type_based(relo->kind)) {
5387 } else if (core_relo_is_enumval_based(relo->kind)) {
5400 prog->name, relo_idx, core_relo_kind_str(relo->kind),
5401 relo->kind, relo->insn_off / 8);
5457 * Patched value is determined by relocation kind and target specification.
5459 * Expected insn->imm value is determined using relocation kind and local
5755 err = bpf_core_parse_spec(local_btf, local_id, spec_str, relo->kind, &local_spec);
5764 pr_debug("prog '%s': relo #%d: kind <%s> (%d), spec is ", prog->name,
5765 relo_idx, core_relo_kind_str(relo->kind), relo->kind);
5770 if (relo->kind == BPF_TYPE_ID_LOCAL) {
5781 prog->name, relo_idx, core_relo_kind_str(relo->kind), relo->kind);
5855 * depending on relo's kind.
8678 const char *name, __u32 kind)
8691 return btf__find_by_name_kind(btf, btf_type_name, kind);