/linux-master/tools/testing/selftests/damon/ |
H A D | _damon_sysfs.py | 7 def write_file(path, string): function 48 err = write_file( 52 err = write_file( 56 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'), 60 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'), 64 err = write_file( 68 err = write_file( 88 err = write_file(os.path.join(self.sysfs_dir(), 'bytes'), self.sz) 91 err = write_file(os.path.join(self.sysfs_dir(), 'ms'), self.ms) 94 err = write_file(o [all...] |
/linux-master/tools/testing/selftests/ntb/ |
H A D | ntb_test.sh | 109 function write_file() function 184 if ! write_file "N" "$LOC/../link" 2> /dev/null; then 189 write_file "N" "$LOC/link_event" 196 write_file "Y" "$LOC/../link" 211 write_file "c $DB_VALID_MASK" "$REM/db" 224 write_file "s $MASK" "$LOC/peer_db" 227 write_file "c $DB_VALID_MASK" "$REM/db_mask" 228 write_file $DB_VALID_MASK "$REM/db_event" 229 write_file "s $DB_VALID_MASK" "$REM/db_mask" 231 write_file " [all...] |
/linux-master/fs/hostfs/ |
H A D | hostfs_user_exp.c | 11 EXPORT_SYMBOL_GPL(write_file); variable
|
H A D | hostfs.h | 83 extern int write_file(int fd, unsigned long long *offset, const char *buf,
|
H A D | hostfs_user.c | 136 int write_file(int fd, unsigned long long *offset, const char *buf, int len) function
|
/linux-master/tools/testing/selftests/mount/ |
H A D | nosymfollow-test.c | 85 static void write_file(char *filename, char *fmt, ...) function 103 write_file("/proc/self/uid_map", "0 %d 1", uid); 104 write_file("/proc/self/gid_map", "0 %d 1", gid);
|
H A D | unprivileged-remount-test.c | 105 static void write_file(char *filename, char *fmt, ...) function 168 write_file("/proc/self/uid_map", "0 %d 1", uid); 169 write_file("/proc/self/gid_map", "0 %d 1", gid);
|
/linux-master/tools/testing/selftests/mm/ |
H A D | thp_settings.h | 60 int write_file(const char *path, const char *buf, size_t buflen);
|
H A D | thp_settings.c | 66 int write_file(const char *path, const char *buf, size_t buflen) function 106 if (!write_file(path, buf, strlen(buf) + 1)) { 168 if (!write_file(path, val, strlen(val) + 1)) {
|
H A D | split_huge_page_test.c | 56 static void write_file(const char *path, const char *buf, size_t buflen) function 84 write_file(SPLIT_DEBUGFS, input, ret + 1);
|
/linux-master/tools/testing/selftests/move_mount_set_group/ |
H A D | move_mount_set_group_test.c | 59 static int write_file(const char *path, const void *buf, size_t count) function 88 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && 93 if (write_file("/proc/self/uid_map", map, strlen(map))) 98 if (write_file("/proc/self/gid_map", map, strlen(map)))
|
/linux-master/tools/accounting/ |
H A D | procacct.c | 273 int write_file = 0; local 290 write_file = 1; 319 if (write_file) {
|
H A D | getdelays.c | 293 int write_file = 0; local 330 write_file = 1; 392 if (write_file) {
|
/linux-master/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 72 static void write_file(char *filename, char *fmt, ...) function 112 write_file("/proc/self/uid_map", "%d %d 1", inner_uid, outer_uid); 113 write_file("/proc/self/gid_map", "0 %d 1", outer_gid);
|
/linux-master/tools/testing/selftests/powerpc/ |
H A D | utils.c | 126 int write_file(const char *path, const char *buf, size_t count) function 183 return write_file(path, buf, count); 348 err = write_file(path, buffer, len); 380 err = write_file(path, buffer, len);
|
/linux-master/tools/testing/selftests/filesystems/statmount/ |
H A D | statmount_test.c | 80 static void write_file(const char *path, const char *val) function 146 write_file("/proc/self/uid_map", buf); 147 write_file("/proc/self/setgroups", "deny"); 149 write_file("/proc/self/gid_map", buf);
|
/linux-master/tools/testing/selftests/powerpc/include/ |
H A D | utils.h | 54 int write_file(const char *path, const char *buf, size_t count);
|
/linux-master/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 95 static bool write_file(char *filename, char *fmt, ...) function 258 success = write_file(map_file_name, "0 %d 1", uid);
|
/linux-master/tools/testing/selftests/mount_setattr/ |
H A D | mount_setattr_test.c | 171 static int write_file(const char *path, const void *buf, size_t count) function 200 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && 205 if (write_file("/proc/self/uid_map", map, strlen(map))) 210 if (write_file("/proc/self/gid_map", map, strlen(map))) 1159 if (write_file(procfile, map, strlen(map))) 1165 if (write_file(procfile, map, strlen(map)))
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | token.c | 232 static int write_file(const char *path, const void *buf, size_t count) function 261 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && 266 if (write_file("/proc/self/uid_map", map, strlen(map))) 271 if (write_file("/proc/self/gid_map", map, strlen(map)))
|
H A D | tc_redirect.c | 72 static int write_file(const char *path, const char *newval) function 461 err = write_file("/proc/sys/net/ipv4/ip_forward", enable ? "1" : "0"); 465 err = write_file("/proc/sys/net/ipv6/conf/all/forwarding", enable ? "1" : "0");
|
/linux-master/tools/tracing/latency/ |
H A D | latency-collector.c | 1340 static void write_file(const char *file, const char *cur, const char *new, function 1368 write_file(TR_MAXLAT, NULL, "0", ERR_CLEANUP); 1404 write_file(TR_CURRENT, NULL, NOP_TRACER, ERR_EXIT); 1442 write_file(TR_THRESH, save_state.thresh, threshold, ERR_CLEANUP); 1443 write_file(TR_CURRENT, NOP_TRACER, current_tracer, ERR_CLEANUP);
|
/linux-master/scripts/ |
H A D | recordmcount.c | 329 static int write_file(const char *fname) function 661 rc = write_file(fname);
|
/linux-master/tools/testing/selftests/powerpc/nx-gzip/ |
H A D | gzfht_test.c | 354 if (write_file(outname, outbuf, dsttotlen)) {
|
/linux-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | core-pkey.c | 353 err = write_file(core_pattern_file, core_pattern, strlen(core_pattern));
|