| /linux/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | set_layers_via_fds.c | 75 layer_fds[0] = openat(fd_tmpfs, "w", O_DIRECTORY); in TEST_F() 78 layer_fds[1] = openat(fd_tmpfs, "u", O_DIRECTORY); in TEST_F() 81 layer_fds[2] = openat(fd_tmpfs, "l1", O_DIRECTORY); in TEST_F() 84 layer_fds[3] = openat(fd_tmpfs, "l2", O_DIRECTORY); in TEST_F() 87 layer_fds[4] = openat(fd_tmpfs, "l3", O_DIRECTORY); in TEST_F() 90 layer_fds[5] = openat(fd_tmpfs, "l4", O_DIRECTORY); in TEST_F() 93 layer_fds[6] = openat(fd_tmpfs, "d1", O_DIRECTORY); in TEST_F() 96 layer_fds[7] = openat(fd_tmpfs, "d2", O_DIRECTORY); in TEST_F() 99 layer_fds[8] = openat(fd_tmpfs, "d3", O_DIRECTORY); in TEST_F() 187 layer_fds[i] = openat(fd_tmpfs, path, O_DIRECTORY); in TEST_F() [all …]
|
| H A D | dev_in_maps.c | 108 fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644); in test()
|
| /linux/Documentation/trace/ |
| H A D | eprobetrace.rst | 145 within the kernel). In order to trace the openat system call, one can create 175 # echo 'e:openat raw_syscalls.sys_enter nr=$id filename=+8($args):ustring' >> dynamic_events 177 This is being run on x86_64 where the word size is 8 bytes and the openat 181 # echo 'nr == 257' > events/eprobes/openat/filter 186 # echo 1 > events/eprobes/openat/enable 201 … cat-1298 [003] ...2. 2060.875970: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault) 202 … cat-1298 [003] ...2. 2060.876197: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault) 203 … cat-1298 [003] ...2. 2060.879126: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault) 204 … cat-1298 [003] ...2. 2060.879639: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault) 218 # echo 1 > events/eprobes/openat/enable [all …]
|
| /linux/tools/testing/selftests/proc/ |
| H A D | read.c | 45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg() 60 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write() 109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
|
| H A D | fd-003-kthread.c | 56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd() 90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
|
| /linux/tools/testing/selftests/tmpfs/ |
| H A D | bug-link-o-tmpfile.c | 59 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main() 71 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
|
| /linux/tools/testing/selftests/openat2/ |
| H A D | helpers.c | 35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat() 49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
|
| H A D | rename_attack_test.c | 102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
|
| /linux/tools/testing/selftests/ftrace/test.d/filter/ |
| H A D | event-filter-function.tc | 94 nocnt=`grep openat trace | wc -l` 97 hitcnt=`grep openat trace | wc -l`;
|
| /linux/tools/perf/tests/ |
| H A D | Build | 8 perf-test-y += openat-syscall.o 9 perf-test-y += openat-syscall-all-cpus.o 10 perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall-tp-fields.o
|
| H A D | pmu.c | 88 file = openat(dirfd, "perf-pmu-test/type", O_WRONLY | O_CREAT, 0600); in test_pmu_get() 113 file = openat(dirfd, name, O_WRONLY | O_CREAT, 0600); in test_pmu_get() 132 file = openat(dirfd, "perf-pmu-test/events/test-event", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
|
| H A D | tests-scripts.c | 84 io__init(&io, openat(dir_fd, name, O_RDONLY), buf, sizeof(buf)); in shell_test__description() 261 fd = openat(dir_fd, ent->d_name, O_PATH); in append_scripts_in_dir()
|
| H A D | hwmon_pmu.c | 103 file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600); in test_pmu_get() 120 file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()
|
| H A D | openat-syscall.c | 49 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event()
|
| H A D | openat-syscall-all-cpus.c | 85 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event_on_all_cpus()
|
| H A D | openat-syscall-tp-fields.c | 88 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
|
| /linux/tools/perf/trace/strace/groups/ |
| H A D | file | 10 openat
|
| H A D | string | 42 openat
|
| /linux/tools/perf/util/ |
| H A D | drm_pmu.c | 170 io__init(&io, openat(fdinfo_dir_fd, fd_name, O_RDONLY), buf, sizeof(buf)); in read_drm_pmus_cb() 410 fd_dir_fd = openat(proc_dir, buf, O_DIRECTORY); in for_each_drm_fdinfo_in_dir() 456 fdinfo_dir_fd = openat(proc_dir, buf, O_DIRECTORY); in for_each_drm_fdinfo_in_dir() 587 io__init(&io, openat(fdinfo_dir_fd, fd_name, O_RDONLY), buf, sizeof(buf)); in read_drm_event()
|
| H A D | hwmon_pmu.c | 286 int fd = openat(dir.dirfd, ent->d_name, O_RDONLY); in hwmon_pmu__read_events() 433 fd = openat(dir, buf, O_RDONLY); in hwmon_pmu__describe_items() 737 name_fd = openat(hwmon_dir, "name", O_RDONLY); in perf_pmus__read_hwmon_pmus() 781 fd = openat(dir, buf, O_RDONLY); in evsel__hwmon_pmu_open()
|
| /linux/tools/include/nolibc/ |
| H A D | fcntl.h | 28 int openat(int dirfd, const char *path, int flags, ...) in openat() function
|
| /linux/tools/perf/ui/browsers/ |
| H A D | scripts.c | 101 fd = openat(dir_fd, filename, O_RDONLY); in check_ev_match() 212 lang_dir_fd = openat(scripts_dir_fd, lang_dirent->d_name, O_DIRECTORY); in find_scripts()
|
| /linux/samples/pidfd/ |
| H A D | pidfd-metadata.c | 105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-trace.txt | 295 Trace the first 4 open, openat or open_by_handle_at syscalls (in the future more syscalls may match… 299 2272.992 ( 0.037 ms): gnome-shell/1370 openat(dfd: CWD, filename: /proc/self/stat) = 31 300 2277.481 ( 0.139 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65 301 3026.398 ( 0.076 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65 302 4294.665 ( 0.015 ms): sed/15879 openat(dfd: CWD, filename: /etc/ld.so.cache, flags: CLOEXEC) = 3
|
| /linux/tools/testing/selftests/fchmodat2/ |
| H A D | fchmodat2_test.c | 32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
|