mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
tools lib bpf: Remove _get_ from non-refcount method names
The use of this term is not warranted here, we use it in the kernel sources and in tools/ for refcounting, so, for consistency, rename them. Acked-bu: Wang Nan <wangnan0@huawei.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Milian Wolff <milian.wolff@kdab.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/n/tip-4ya1ot2e2fkrz48ws9ebiofs@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
6e009e65a1
commit
a7fe0450b0
3 changed files with 10 additions and 16 deletions
|
@ -1137,7 +1137,7 @@ bpf__obj_config_map(struct bpf_object *obj,
|
|||
goto out;
|
||||
}
|
||||
|
||||
map = bpf_object__get_map_by_name(obj, map_name);
|
||||
map = bpf_object__find_map_by_name(obj, map_name);
|
||||
if (!map) {
|
||||
pr_debug("ERROR: Map %s doesn't exist\n", map_name);
|
||||
err = -BPF_LOADER_ERRNO__OBJCONF_MAP_NOTEXIST;
|
||||
|
@ -1662,7 +1662,7 @@ int bpf__strerror_load(struct bpf_object *obj,
|
|||
{
|
||||
bpf__strerror_head(err, buf, size);
|
||||
case LIBBPF_ERRNO__KVER: {
|
||||
unsigned int obj_kver = bpf_object__get_kversion(obj);
|
||||
unsigned int obj_kver = bpf_object__kversion(obj);
|
||||
unsigned int real_kver;
|
||||
|
||||
if (fetch_kernel_version(&real_kver, NULL, 0)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue