Lines Matching refs:pathname
1354 zfree(&file->pathname); in thread_trace__free_files()
1391 static int trace__set_fd_pathname(struct thread *thread, int fd, const char *pathname) in trace__set_fd_pathname() argument
1398 if (stat(pathname, &st) == 0) in trace__set_fd_pathname()
1400 file->pathname = strdup(pathname); in trace__set_fd_pathname()
1401 if (file->pathname) in trace__set_fd_pathname()
1410 char linkname[PATH_MAX], pathname[PATH_MAX]; in thread__read_fd_path() local
1423 if (lstat(linkname, &st) < 0 || st.st_size + 1 > (off_t)sizeof(pathname)) in thread__read_fd_path()
1426 ret = readlink(linkname, pathname, sizeof(pathname)); in thread__read_fd_path()
1431 pathname[ret] = '\0'; in thread__read_fd_path()
1432 return trace__set_fd_pathname(thread, fd, pathname); in thread__read_fd_path()
1446 if ((fd > ttrace->files.max || ttrace->files.table[fd].pathname == NULL)) { in thread__fd_path()
1454 return ttrace->files.table[fd].pathname; in thread__fd_path()
1494 zfree(&ttrace->files.table[fd].pathname); in syscall_arg__scnprintf_close_fd()