Home
last modified time | relevance | path

Searched refs:tmp_name (Results 1 – 3 of 3) sorted by relevance

/linux/tools/bpf/resolve_btfids/
H A Dmain.c1118 char tmp_name[KSYM_NAME_LEN]; in process_kfunc_with_implicit_args() local
1138 len = snprintf(tmp_name, sizeof(tmp_name), "%s%s", kfunc->name, KF_IMPL_SUFFIX); in process_kfunc_with_implicit_args()
1139 if (len < 0 || len >= sizeof(tmp_name)) { in process_kfunc_with_implicit_args()
1144 if (btf__find_by_name_kind(btf, tmp_name, BTF_KIND_FUNC) > 0) { in process_kfunc_with_implicit_args()
1145 pr_debug("resolve_btfids: function %s already exists in BTF\n", tmp_name); in process_kfunc_with_implicit_args()
1150 new_func_id = btf__add_func(btf, tmp_name, linkage, proto_id); in process_kfunc_with_implicit_args()
1152 pr_err("ERROR: resolve_btfids: failed to add func %s to BTF\n", tmp_name); in process_kfunc_with_implicit_args()
1175 tag_name, tmp_name); in process_kfunc_with_implicit_args()
/linux/tools/objtool/
H A Delf.c1244 char *tmp_name; in elf_create_file() local
1258 tmp_name = malloc(strlen(name) + 8); in elf_create_file()
1259 if (!tmp_name) { in elf_create_file()
1264 sprintf(tmp_name, "%s.XXXXXX", name); in elf_create_file()
1266 elf->fd = mkstemp(tmp_name); in elf_create_file()
1272 elf->tmp_name = tmp_name; in elf_create_file()
1830 if (elf->tmp_name && rename(elf->tmp_name, elf->name)) in elf_close()
/linux/tools/lib/bpf/
H A Dlibbpf.c8471 char tmp_name[64]; in libbpf_kallsyms_parse()
8477 snprintf(tmp_name, sizeof(tmp_name), "%lx-%zx", (unsigned long)obj_buf, obj_buf_sz); in libbpf_kallsyms_parse()
8479 return libbpf_ptr(bpf_object_open(NULL, obj_buf, obj_buf_sz, tmp_name, opts)); in libbpf_kallsyms_parse()
8416 char tmp_name[64]; bpf_object__open_mem() local