Home
last modified time | relevance | path

Searched refs:pwd (Results 1 – 4 of 4) sorted by relevance

/tools/lib/subcmd/
Dexec-cmd.c38 char *pwd; in get_pwd_cwd() local
42 pwd = getenv("PWD"); in get_pwd_cwd()
43 if (pwd && strcmp(pwd, cwd)) { in get_pwd_cwd()
45 if (!stat(pwd, &pwd_stat) && in get_pwd_cwd()
48 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd()
/tools/perf/util/
Dtarget.c71 struct passwd pwd, *result; in target__parse_uid() local
80 getpwnam_r(str, &pwd, buf, sizeof(buf), &result); in target__parse_uid()
92 getpwuid_r(uid, &pwd, buf, sizeof(buf), &result); in target__parse_uid()
/tools/perf/ui/browsers/
Dhists.c2257 char *pwd, *options[32], *abs_path[32], *tmp; in switch_data_file() local
2262 pwd = getenv("PWD"); in switch_data_file()
2263 if (!pwd) in switch_data_file()
2266 pwd_dir = opendir(pwd); in switch_data_file()
2282 snprintf(path, sizeof(path), "%s/%s", pwd, name); in switch_data_file()
/tools/perf/tests/
Dmake45 srctree := $(patsubst %/,%,$(dir $(shell pwd)))