Home
last modified time | relevance | path

Searched refs:oldcwd (Results 1 – 2 of 2) sorted by relevance

/tools/perf/util/
Dnamespaces.c214 char *oldcwd = NULL; in nsinfo__mountns_enter() local
228 oldcwd = get_current_dir_name(); in nsinfo__mountns_enter()
229 if (!oldcwd) in nsinfo__mountns_enter()
243 nc->oldcwd = oldcwd; in nsinfo__mountns_enter()
249 free(oldcwd); in nsinfo__mountns_enter()
258 if (nc == NULL || nc->oldns == -1 || nc->newns == -1 || !nc->oldcwd) in nsinfo__mountns_exit()
263 if (nc->oldcwd) { in nsinfo__mountns_exit()
264 WARN_ON_ONCE(chdir(nc->oldcwd)); in nsinfo__mountns_exit()
265 zfree(&nc->oldcwd); in nsinfo__mountns_exit()
Dnamespaces.h45 char *oldcwd; member