Home
last modified time | relevance | path

Searched refs:oldcwd (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/util/
H A Dnamespaces.c207 char *oldcwd = NULL; in nsinfo__mountns_enter() local
221 oldcwd = get_current_dir_name(); in nsinfo__mountns_enter()
222 if (!oldcwd) in nsinfo__mountns_enter()
236 nc->oldcwd = oldcwd; in nsinfo__mountns_enter()
242 free(oldcwd); in nsinfo__mountns_enter()
251 if (nc == NULL || nc->oldns == -1 || nc->newns == -1 || !nc->oldcwd) in nsinfo__mountns_exit()
256 if (nc->oldcwd) { in nsinfo__mountns_exit()
257 WARN_ON_ONCE(chdir(nc->oldcwd)); in nsinfo__mountns_exit()
258 zfree(&nc->oldcwd); in nsinfo__mountns_exit()
[all...]
H A Dnamespaces.h43 char *oldcwd; member
/kernel/linux/linux-6.6/tools/perf/util/
H A Dnamespaces.c280 char *oldcwd = NULL; in nsinfo__mountns_enter() local
294 oldcwd = get_current_dir_name(); in nsinfo__mountns_enter()
295 if (!oldcwd) in nsinfo__mountns_enter()
309 nc->oldcwd = oldcwd; in nsinfo__mountns_enter()
315 free(oldcwd); in nsinfo__mountns_enter()
324 if (nc == NULL || nc->oldns == -1 || nc->newns == -1 || !nc->oldcwd) in nsinfo__mountns_exit()
329 if (nc->oldcwd) { in nsinfo__mountns_exit()
330 WARN_ON_ONCE(chdir(nc->oldcwd)); in nsinfo__mountns_exit()
331 zfree(&nc->oldcwd); in nsinfo__mountns_exit()
[all...]
H A Dnamespaces.h46 char *oldcwd; member

Completed in 2 milliseconds