Home
last modified time | relevance | path

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

123

/linux/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()
99 layer_fds[8] = openat(fd_tmpfs, "d3", O_DIRECTORY); in TEST_F()
187 layer_fds[i] = openat(fd_tmpf in TEST_F()
[all...]
/linux/Documentation/trace/
H A Deprobetrace.rst154 within the kernel). In order to trace the openat system call, one can create
184 # echo 'e:openat raw_syscalls.sys_enter nr=$id filename=+8($args):ustring' >> dynamic_events
186 This is being run on x86_64 where the word size is 8 bytes and the openat
190 # echo 'nr == 257' > events/eprobes/openat/filter
195 # echo 1 > events/eprobes/openat/enable
210 … cat-1298 [003] ...2. 2060.875970: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault)
211 … cat-1298 [003] ...2. 2060.876197: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault)
212 … cat-1298 [003] ...2. 2060.879126: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault)
213 … cat-1298 [003] ...2. 2060.879639: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault)
227 # echo 1 > events/eprobes/openat/enable
[all …]
/linux/tools/testing/selftests/filesystems/mount_cycle/
H A Dmount_cover_test.c329 self->fd = openat(self->dfd, "covered", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in FIXTURE_SETUP()
429 fd = openat(self->fd, "..", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST_F()
447 fd = openat(self->cfd, "..", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST_F()
452 fd = openat(self->dfd, "covered", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST_F()
474 EXPECT_EQ(openat(self->dfd, "covered", O_RDONLY | O_DIRECTORY | O_CLOEXEC), -1); in TEST_F()
504 fd = openat(self->dfd, "file", O_RDONLY | O_CLOEXEC); in TEST_F()
524 fd = openat(self->dfd, "file", O_WRONLY | O_TRUNC | O_CLOEXEC); in TEST_F()
534 fd = openat(self->dfd, "file", O_RDONLY | O_CLOEXEC); in TEST_F()
539 EXPECT_EQ(openat(self->dfd, "file", O_RDONLY | O_DIRECTORY | O_CLOEXEC), -1); in TEST_F()
553 fd = openat(self->tfd, "covered", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST_F()
[all …]
/linux/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/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/tools/testing/selftests/openat2/
H A Dhelpers.c
H A Drename_attack_test.c
/linux/tools/testing/selftests/ftrace/test.d/filter/
H A Devent-filter-function.tc94 nocnt=`grep openat trace | wc -l`
97 hitcnt=`grep openat trace | wc -l`;
/linux/tools/testing/selftests/filesystems/
H A Didmapped_tmpfile.c126 fd = openat(mfd, ".", O_TMPFILE | O_WRONLY, 0644); in TEST_F()
151 fd = openat(mfd, ".", O_TMPFILE | O_RDWR, 0600); in TEST_F()
H A Dreaddir_hold.h99 fd = openat(h->dfd, "no_such_name", O_RDONLY | O_CLOEXEC); in readdir_hold_finder()
119 fd = openat(h->taskdir, path, O_RDONLY | O_CLOEXEC); in readdir_hold_creator_settled()
/linux/tools/perf/tests/
H A DBuild9 perf-test-y += openat-syscall.o
10 perf-test-y += openat-syscall-all-cpus.o
11 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.c92 io__init(&io, openat(dir_fd, name, O_RDONLY), buf, sizeof(buf)); in shell_test__description()
273 fd = openat(dir_fd, ent->d_name, O_PATH); in create_script_test_suites()
H A Dopenat-syscall.c49 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event()
75 TEST_CASE_REASON("Detect openat syscall event",
82 .desc = "Detect openat syscall event",
H A Dhwmon_pmu.c108 file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
125 file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()
/linux/tools/perf/trace/strace/groups/
H A Dfile10 openat
H A Dstring42 openat
/linux/tools/perf/util/
H A Ddrm_pmu.c166 io__init(&io, openat(fdinfo_dir_fd, fd_name, O_RDONLY), buf, sizeof(buf)); in read_drm_pmus_cb()
406 fd_dir_fd = openat(proc_dir, buf, O_DIRECTORY); in for_each_drm_fdinfo_in_dir()
452 fdinfo_dir_fd = openat(proc_dir, buf, O_DIRECTORY); in for_each_drm_fdinfo_in_dir()
583 io__init(&io, openat(fdinfo_dir_fd, fd_name, O_RDONLY), buf, sizeof(buf)); in read_drm_event()
H A Dhwmon_pmu.c248 /* Use openat so that the directory contents are refreshed. */ in hwmon_pmu__read_events()
287 int fd = openat(dir.dirfd, ent->d_name, O_RDONLY); in hwmon_pmu__read_events()
437 fd = openat(dir, buf, O_RDONLY); in hwmon_pmu__describe_items()
741 name_fd = openat(hwmon_dir, "name", O_RDONLY); in perf_pmus__read_hwmon_pmus()
785 fd = openat(dir, buf, O_RDONLY); in evsel__hwmon_pmu_open()
/linux/tools/include/nolibc/
H A Dfcntl.h32 * int openat(int dirfd, const char *path, int flags[, mode_t mode]); in openat()
42 int openat(int dirfd, const char *path, int flags, ...)
28 int openat(int dirfd, const char *path, int flags, ...) openat() function
/linux/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/samples/pidfd/
H A Dpidfd-metadata.c105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
/linux/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c39 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
/linux/tools/perf/Documentation/
H A Dperf-trace.txt302 Trace the first 4 open, openat or open_by_handle_at syscalls (in the future more syscalls may match here):
306 2272.992 ( 0.037 ms): gnome-shell/1370 openat(dfd: CWD, filename: /proc/self/stat) = 31
307 2277.481 ( 0.139 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
308 3026.398 ( 0.076 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
309 4294.665 ( 0.015 ms): sed/15879 openat(dfd: CWD, filename: /etc/ld.so.cache, flags: CLOEXEC) = 3

123