Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

resolve_btfids: Rename object btf field to btf_path

Rename the member of `struct object` holding the path to BTF data if
provided via --btf arg. `btf_path` is less ambiguous.

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20251219181321.1283664-2-ihor.solodrai@linux.dev

authored by

Ihor Solodrai and committed by
Andrii Nakryiko
c1c7d617 ec439c38

+5 -5
+5 -5
tools/bpf/resolve_btfids/main.c
··· 113 113 114 114 struct object { 115 115 const char *path; 116 - const char *btf; 116 + const char *btf_path; 117 117 const char *base_btf_path; 118 118 119 119 struct { ··· 550 550 } 551 551 } 552 552 553 - btf = btf__parse_split(obj->btf ?: obj->path, base_btf); 553 + btf = btf__parse_split(obj->btf_path ?: obj->path, base_btf); 554 554 err = libbpf_get_error(btf); 555 555 if (err) { 556 556 pr_err("FAILED: load BTF from %s: %s\n", 557 - obj->btf ?: obj->path, strerror(-err)); 557 + obj->btf_path ?: obj->path, strerror(-err)); 558 558 goto out; 559 559 } 560 560 ··· 790 790 struct option btfid_options[] = { 791 791 OPT_INCR('v', "verbose", &verbose, 792 792 "be more verbose (show errors, etc)"), 793 - OPT_STRING(0, "btf", &obj.btf, "BTF data", 794 - "BTF data"), 793 + OPT_STRING(0, "btf", &obj.btf_path, "file", 794 + "path to a file with input BTF data"), 795 795 OPT_STRING('b', "btf_base", &obj.base_btf_path, "file", 796 796 "path of file providing base BTF"), 797 797 OPT_BOOLEAN(0, "fatal_warnings", &fatal_warnings,