Lines Matching refs:path

203 	char path[];  member
306 static struct bpf_object *bpf_object__new(const char *path, in bpf_object__new() argument
312 obj = calloc(1, sizeof(struct bpf_object) + strlen(path) + 1); in bpf_object__new()
314 pr_warning("alloc memory failed for %s\n", path); in bpf_object__new()
318 strcpy(obj->path, path); in bpf_object__new()
373 obj->efile.fd = open(obj->path, O_RDONLY); in bpf_object__elf_init()
375 pr_warning("failed to open %s: %s\n", obj->path, in bpf_object__elf_init()
387 obj->path); in bpf_object__elf_init()
394 obj->path); in bpf_object__elf_init()
402 obj->path); in bpf_object__elf_init()
447 pr_debug("license of %s is %s\n", obj->path, obj->license); in bpf_object__init_license()
458 pr_warning("invalid kver section in %s\n", obj->path); in bpf_object__init_kversion()
463 pr_debug("kernel version of %s is %x\n", obj->path, in bpf_object__init_kversion()
474 obj->path); in bpf_object__init_maps()
480 pr_warning("malloc maps failed: %s\n", obj->path); in bpf_object__init_maps()
486 pr_debug("maps in %s: %ld bytes\n", obj->path, (long)size); in bpf_object__init_maps()
500 obj->path); in bpf_object__elf_collect()
512 obj->path); in bpf_object__elf_collect()
520 obj->path); in bpf_object__elf_collect()
528 name, obj->path); in bpf_object__elf_collect()
551 obj->path); in bpf_object__elf_collect()
565 name, obj->path, errmsg); in bpf_object__elf_collect()
677 obj->path); in bpf_object__create_maps()
898 obj->path); in bpf_object__validate()
905 __bpf_object__open(const char *path, void *obj_buf, size_t obj_buf_sz) in __bpf_object__open() argument
911 pr_warning("failed to init libelf for %s\n", path); in __bpf_object__open()
915 obj = bpf_object__new(path, obj_buf, obj_buf_sz); in __bpf_object__open()
932 struct bpf_object *bpf_object__open(const char *path) in bpf_object__open() argument
935 if (!path) in bpf_object__open()
938 pr_debug("loading %s\n", path); in bpf_object__open()
940 return __bpf_object__open(path, NULL, 0); in bpf_object__open()
1005 pr_warning("failed to load object '%s'\n", obj->path); in bpf_object__load()
1055 return obj->path; in bpf_object__get_name()