Home
last modified time | relevance | path

Searched refs:read_file (Results 1 – 21 of 21) sorted by relevance

/linux/tools/testing/selftests/ntb/
H A Dntb_test.sh99 function read_file() function
147 PEER_PORT=$(read_file "${PEER_DIR}/port")
164 LOCAL_PORT=$(read_file "$LOC/port")
165 REMOTE_PORT=$(read_file "$REM/port")
191 if [[ $(read_file "$REM/link") != "N" ]]; then
209 DB_VALID_MASK=$(read_file "$LOC/db_valid_mask")
214 DB=$(read_file "$REM/db")
268 RVAL=$(read_file "$REM/../spad$i")
293 MSG_OUTBITS_MASK=$(read_file "$LOC/../msg_inbits")
294 MSG_INBITS_MASK=$(read_file "$REM/../msg_inbits")
[all …]
/linux/tools/testing/selftests/x86/bugs/
H A Dcommon.py14 def read_file(path): function
21 cpuinfo = read_file('/proc/cpuinfo')
27 cmdline = read_file('/proc/cmdline')
33 cmdline = read_file('/proc/cmdline')
43 cmdline = read_file('/proc/cmdline')
50 return read_file("/sys/devices/system/cpu/vulnerabilities/" + bug)
/linux/Documentation/trace/
H A Devents-landlock.rst91 cat-127 [...] landlock_create_ruleset: ruleset=195cc6b76.0 handled_fs=execute|write_file|read_file|read_dir|remove_dir|remove_file|make_char|make_dir|make_reg|make_sock|make_fifo|make_block|make_sym|refer|truncate|ioctl_dev|resolve_unix handled_net= scoped= handled_permissions=
94 cat-127 [...] landlock_deny_access_fs: domain=195cc6b7c same_exec=0 logged=0 blockers=read_file dev=0:17 ino=5901179 path=/etc/passwd
132 separates with commas (e.g., ``blockers=fs.read_file``), while the
134 with ``|`` (e.g., ``blockers=read_file``). Scope and ptrace
258 ``{read_file,,read_file}``) means the rule grants none of the
292 cat-127 [...] landlock_check_rule_inode: domain=1e40cb56f access_request=execute|read_file|truncate dev=0:17 ino=2 grants={execute|read_file}
293 cat-127 [...] landlock_check_rule_inode: domain=1e40cb56f access_request=read_file|truncate dev=0:17 ino=2 grants={read_file}
[all...]
/linux/tools/testing/selftests/filesystems/mount_cycle/
H A Dovermount_ns_file_test.c56 static const char *read_file(const char *path, char *buf, size_t len) in read_file() function
178 ASSERT_STREQ(read_file(b, buf, sizeof(buf)), "Q"); in TEST_F()
185 EXPECT_STREQ(read_file(b, buf, sizeof(buf)), "Q"); in TEST_F()
187 EXPECT_STREQ(read_file(b, buf, sizeof(buf)), "S"); in TEST_F()
/linux/tools/testing/selftests/powerpc/
H A Dutils.c31 int read_file(const char *path, char *buf, size_t count, size_t *len) in read_file() function
159 err = read_file("/proc/self/auxv", buf, buf_size, NULL); in read_auxv()
174 return read_file(path, buf, count, NULL); in read_debugfs_file()
311 err = read_file(path, buffer, sizeof(buffer) - 1, NULL); in read_long()
323 err = read_file(path, buffer, sizeof(buffer) - 1, NULL); in read_ulong()
499 return read_file(path, result, result_size, NULL); in read_sysfs_file()
/linux/tools/testing/selftests/namespaces/
H A Duid_map_range_test.c37 static ssize_t read_file(const char *path, char *buf, size_t size) in read_file() function
73 EXPECT_EQ(read_file(path, buf, sizeof(buf)), 0) { in expect_rejected()
89 ASSERT_GT(read_file(path, buf, sizeof(buf)), 0); in expect_accepted()
267 ASSERT_GT(read_file("/proc/self/uid_map", buf, sizeof(buf)), 0); in TEST()
/linux/tools/testing/selftests/damon/
H A D_damon_sysfs.py32 def read_file(path): function
190 content, err = read_file(nr_goals_file)
803 content, err = read_file(nr_targets_file)
817 content, err = read_file(nr_schemes_file)
858 content, err = read_file(nr_contexts_file)
878 self.pid, err = read_file(os.path.join(self.sysfs_dir(), 'pid'))
907 content, err = read_file(
922 content, err = read_file(os.path.join(scheme.sysfs_dir(),
938 content, err = read_file(
953 content, err = read_file(
[all...]
/linux/tools/testing/selftests/mm/
H A Dthp_settings.c
H A Dthp_settings.h
H A Dvm_util.h
H A Dvm_util.c888 int read_file(const char *path, char *buf, size_t buflen) read_file() function
H A Dkhugepaged.c150 ret = read_file(path, buf, sizeof(buf)); in get_finfo()
152 ksft_exit_fail_msg("read_file(%s): %s\n", path, strerror(-ret)); in get_finfo()
/linux/scripts/basic/
H A Dfixdep.c213 static void *read_file(const char *filename) in read_file() function
391 buf = read_file(p); in parse_dep_file()
424 buf = read_file(depfile); in main()
/linux/fs/hostfs/
H A Dhostfs_user_exp.c10 EXPORT_SYMBOL_GPL(read_file);
H A Dhostfs.h51 extern int read_file(int fd, unsigned long long *offset, char *buf, int len);
H A Dhostfs_kern.c436 bytes_read = read_file(FILE_HOSTFS_I(file)->fd, &start, buffer, in hostfs_read_folio()
/linux/scripts/
H A Dinsert-sys-cert.c228 static char *read_file(char *file_name, int *size) in read_file() function
310 cert = read_file(cert_file, &cert_size); in main()
/linux/tools/testing/selftests/powerpc/include/
H A Dutils.h53 int read_file(const char *path, char *buf, size_t count, size_t *len);
/linux/tools/tracing/latency/
H A Dlatency-collector.c572 static char *read_file(const char *file, enum errhandling h) in read_file() function
629 maxlat = read_file(TR_MAXLAT, ERR_WARN); in cleanup_exit()
1380 tracer = read_file(TR_CURRENT, ERR_EXIT); in save_and_disable_tracer()
1381 orig_th = read_file(TR_THRESH, ERR_EXIT); in save_and_disable_tracer()
/linux/tools/perf/
H A Dbuiltin-inject.c2328 static int read_file(int fd, u64 offs, void *buf, size_t sz) in __cmd_inject()
2350 ret = read_file(fd, offs, buf, sz); in __cmd_inject()
2155 static int read_file(int fd, u64 offs, void *buf, size_t sz) read_file() function
/linux/tools/testing/selftests/landlock/
H A Dfs_test.c7614 * the extra ",fs\\.read_file" blocked by the executable file. in TEST_F()
7618 "fs\\.execute,fs\\.read_file", file1_s1d1)); in TEST_F()
7621 "fs\\.execute,fs\\.read_file", file1_s1d1));
7643 TEST_F(audit_layout1, read_file) in TEST_F()
7650 EXPECT_EQ(0, matches_log_fs(_metadata, self->audit_fd, "fs\\.read_file", in TEST_F()
8295 blocker = "fs\\.write_file,fs\\.read_file"; in audit_quiet_layout1_test_body()
8297 blocker = "fs\\.read_file"; in audit_quiet_layout1_test_body()
10758 * grants= fields. Opening file1_s1d1 read-only needs only read_file, but the in TEST_F()
10760 * both, so the event reports access_request=read_file|truncate and in TEST_F()
10761 * grants={read_file|truncat in TEST_F()
7592 TEST_F(audit_layout1,read_file) TEST_F() argument
[all...]