Searched refs:tag_name (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 1221 const char *param_name, *tag_name; in process_kfunc_with_implicit_args() local 1268 tag_name = btf__name_by_offset(btf, t->name_off); in process_kfunc_with_implicit_args() 1269 if (strcmp(tag_name, DECL_TAG_KFUNC) == 0) in process_kfunc_with_implicit_args() 1275 err = btf__add_decl_attr(btf, tag_name, new_func_id, idx); in process_kfunc_with_implicit_args() 1277 err = btf__add_decl_tag(btf, tag_name, new_func_id, idx); in process_kfunc_with_implicit_args() 1281 tag_name, tmp_name); in process_kfunc_with_implicit_args() 1456 static int add_decl_tag(struct btf2btf_context *ctx, const char *tag_name, in add_decl_tag() argument 1461 new_id = btf__add_decl_tag(ctx->btf, tag_name, target_btf_id, component_idx); in add_decl_tag() 1464 tag_name, target_btf_id, new_id); in add_decl_tag()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | resolve_btfids.c | 195 static bool btf_has_decl_tag(struct btf *btf, const char *tag_name, s32 target_id) in btf_has_decl_tag() argument 211 if (strcmp(name, tag_name) == 0) in btf_has_decl_tag()
|