Lines Matching full:env
8 #include "../util/env.h"
109 char *env = getenv("PATH"); in lookup_path() local
111 if (!env) in lookup_path()
114 env = strdup(env); in lookup_path()
115 if (!env) in lookup_path()
118 path = strtok_r(env, ":", &tmp); in lookup_path()
127 free(env); in lookup_path()
144 static int perf_env__lookup_binutils_path(struct perf_env *env, in perf_env__lookup_binutils_path() argument
148 const char *arch = perf_env__arch(env), *cross_env; in perf_env__lookup_binutils_path()
221 int perf_env__lookup_objdump(struct perf_env *env, char **path) in perf_env__lookup_objdump() argument
224 * For live mode, env->arch will be NULL and we can use in perf_env__lookup_objdump()
227 if (env->arch == NULL) in perf_env__lookup_objdump()
230 return perf_env__lookup_binutils_path(env, "objdump", path); in perf_env__lookup_objdump()
238 bool perf_env__single_address_space(struct perf_env *env) in perf_env__single_address_space() argument
240 return strcmp(perf_env__arch(env), "sparc"); in perf_env__single_address_space()