Lines Matching refs:token_path
734 char *token_path; member
4945 if (obj->token_path && obj->token_path[0] == '\0') { in bpf_object_prepare_token()
4950 mandatory = obj->token_path != NULL; in bpf_object_prepare_token()
4953 bpffs_path = obj->token_path ?: BPF_FS_DEFAULT_PATH; in bpf_object_prepare_token()
7962 const char *kconfig, *btf_tmp_path, *token_path; in bpf_object_open() local
7997 token_path = OPTS_GET(opts, bpf_token_path, NULL); in bpf_object_open()
8002 if (!token_path) in bpf_object_open()
8003 token_path = getenv("LIBBPF_BPF_TOKEN_PATH"); in bpf_object_open()
8004 if (token_path && strlen(token_path) >= PATH_MAX) in bpf_object_open()
8015 if (token_path) { in bpf_object_open()
8016 obj->token_path = strdup(token_path); in bpf_object_open()
8017 if (!obj->token_path) { in bpf_object_open()
9096 zfree(&obj->token_path); in bpf_object__close()