Home
last modified time | relevance | path

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

/tools/testing/selftests/ntb/
A Dntb_test.sh99 function read_file() function
164 LOCAL_PORT=$(read_file "$LOC/port")
165 REMOTE_PORT=$(read_file "$REM/port")
214 DB=$(read_file "$REM/db")
268 RVAL=$(read_file "$REM/../spad$i")
302 RVAL=$(read_file "$REM/../msg$i")
434 LOC_END=$(read_file "$LOC/count")
435 REM_END=$(read_file "$REM/count")
454 CNT=$(read_file "$LOC/count")
485 read_file "$LOCAL_PERF/run"
[all …]
/tools/testing/selftests/x86/bugs/
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)
/tools/testing/selftests/powerpc/
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()
/tools/testing/selftests/mm/
A Dthp_settings.c46 int read_file(const char *path, char *buf, size_t buflen) in read_file() function
94 if (read_file(path, buf, sizeof(buf)) < 0) { in read_num()
126 if (!read_file(path, buf, sizeof(buf))) { in thp_read_string()
367 ret = read_file(path, buf, sizeof(buf)); in __thp_supported_orders()
A Dthp_settings.h65 int read_file(const char *path, char *buf, size_t buflen);
A Dkhugepaged.c162 if (read_file(path, buf, sizeof(buf)) < 0) { in get_finfo()
/tools/testing/selftests/damon/
A D_damon_sysfs.py32 def read_file(path): function
183 content, err = read_file(nr_goals_file)
627 content, err = read_file(nr_targets_file)
641 content, err = read_file(nr_schemes_file)
673 content, err = read_file(nr_contexts_file)
688 self.pid, err = read_file(os.path.join(self.sysfs_dir(), 'pid'))
717 content, err = read_file(
732 content, err = read_file(os.path.join(scheme.sysfs_dir(),
748 content, err = read_file(
763 content, err = read_file(
[all …]
/tools/testing/selftests/powerpc/include/
A Dutils.h53 int read_file(const char *path, char *buf, size_t count, size_t *len);
/tools/tracing/latency/
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()
/tools/testing/selftests/powerpc/ptrace/
A Dcore-pkey.c346 ret = read_file(core_pattern_file, core_pattern, PATH_MAX - 1, &len); in setup_core_pattern()
/tools/perf/
A Dbuiltin-inject.c2078 static int read_file(int fd, u64 offs, void *buf, size_t sz) in read_file() function
2100 ret = read_file(fd, offs, buf, sz); in feat_copy()
/tools/testing/selftests/landlock/
A Dfs_test.c5774 TEST_F(audit_layout1, read_file) in TEST_F() argument

Completed in 36 milliseconds