Home
last modified time | relevance | path

Searched refs:openat (Results 1 – 25 of 79) sorted by relevance

1234

/linux-6.15/tools/testing/selftests/filesystems/overlayfs/
H A Dset_layers_via_fds.c75 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()
192 fd_work = openat(fd_tmpfs, "w", O_DIRECTORY); in TEST_F()
196 fd_upper = openat(fd_tmpfs, "u", O_DIRECTORY); in TEST_F()
[all …]
H A Ddev_in_maps.c108 fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644); in test()
/linux-6.15/tools/testing/selftests/proc/
H A Dread.c45 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 Dfd-003-kthread.c56 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-6.15/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c59 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-6.15/tools/testing/selftests/openat2/
H A Dhelpers.c35 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 Drename_attack_test.c102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
/linux-6.15/tools/testing/selftests/ftrace/test.d/filter/
H A Devent-filter-function.tc90 nocnt=`grep openat trace | wc -l`
93 hitcnt=`grep openat trace | wc -l`;
/linux-6.15/tools/perf/bench/
H A Dsched-pipe.c130 fd = openat(cgrp->fd, "cgroup.threads", O_WRONLY); in enter_cgroup()
132 fd = openat(cgrp->fd, "cgroup.procs", O_WRONLY); in enter_cgroup()
136 fd = openat(cgrp->fd, "tasks", O_WRONLY); in enter_cgroup()
/linux-6.15/tools/perf/tests/
H A Dhwmon_pmu.c96 hwmon_dirfd = openat(test_dirfd, "hwmon1234", O_DIRECTORY); in test_pmu_get()
101 file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
118 file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()
H A DBuild8 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 Dpmu.c88 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 Dtests-scripts.c84 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 Dopenat-syscall.c49 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event()
H A Dopenat-syscall-all-cpus.c85 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event_on_all_cpus()
H A Dopenat-syscall-tp-fields.c89 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
/linux-6.15/tools/perf/trace/strace/groups/
H A Dfile10 openat
H A Dstring42 openat
/linux-6.15/tools/perf/util/
H A Dhwmon_pmu.c248 io_dir__init(&dir, openat(pmu->hwmon_dir_fd, ".", O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in hwmon_pmu__read_events()
286 int fd = openat(pmu->hwmon_dir_fd, ent->d_name, O_RDONLY); in hwmon_pmu__read_events()
423 fd = openat(hwm->hwmon_dir_fd, buf, O_RDONLY); in hwmon_pmu__describe_items()
725 name_fd = openat(hwmon_dir, "name", O_RDONLY); in perf_pmus__read_hwmon_pmus()
765 fd = openat(hwm->hwmon_dir_fd, buf, O_RDONLY); in evsel__hwmon_pmu_open()
H A Dprint-events.c77 dir_fd = openat(events_fd, sys_dirent->d_name, O_PATH); in print_tracepoint_events()
100 io__init(&id, openat(dir_fd, buf, O_RDONLY), buf, sizeof(buf)); in print_tracepoint_events()
/linux-6.15/tools/perf/ui/browsers/
H A Dscripts.c101 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-6.15/samples/pidfd/
H A Dpidfd-metadata.c105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
/linux-6.15/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
/linux-6.15/tools/perf/Documentation/
H A Dperf-trace.txt292 Trace the first 4 open, openat or open_by_handle_at syscalls (in the future more syscalls may match…
296 2272.992 ( 0.037 ms): gnome-shell/1370 openat(dfd: CWD, filename: /proc/self/stat) = 31
297 2277.481 ( 0.139 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
298 3026.398 ( 0.076 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
299 4294.665 ( 0.015 ms): sed/15879 openat(dfd: CWD, filename: /etc/ld.so.cache, flags: CLOEXEC) = 3
/linux-6.15/tools/testing/selftests/pidfd/
H A Dpidfd_bind_mount.c175 fd_pidfd_mnt = openat(-EBADF, self->template, O_RDONLY | O_NOCTTY | O_CLOEXEC); in TEST_F()

1234