| /tools/testing/selftests/ntb/ |
| A D | ntb_test.sh | 99 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 D | common.py | 14 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 D | utils.c | 31 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 D | thp_settings.c | 46 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 D | thp_settings.h | 65 int read_file(const char *path, char *buf, size_t buflen);
|
| A D | khugepaged.c | 162 if (read_file(path, buf, sizeof(buf)) < 0) { in get_finfo()
|
| /tools/testing/selftests/damon/ |
| A D | _damon_sysfs.py | 32 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 D | utils.h | 53 int read_file(const char *path, char *buf, size_t count, size_t *len);
|
| /tools/tracing/latency/ |
| A D | latency-collector.c | 572 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 D | core-pkey.c | 346 ret = read_file(core_pattern_file, core_pattern, PATH_MAX - 1, &len); in setup_core_pattern()
|
| /tools/perf/ |
| A D | builtin-inject.c | 2078 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 D | fs_test.c | 5774 TEST_F(audit_layout1, read_file) in TEST_F() argument
|