/openbmc/linux/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 "c $DB_VALID_MASK" "$REM/db" [all …]
|
/openbmc/qemu/scripts/kvm/ |
H A D | kvm_flightrecorder | 43 def write_file(path, data): function 47 write_file(trace_path('events', subsystem, event, 'enable'), '1' if enable else '0') 50 write_file(trace_path('events', subsystem, 'enable'), '1' if enable else '0') 54 write_file(trace_path('tracing_on'), '1') 57 write_file(trace_path('tracing_on'), '0') 59 write_file(trace_path('events', 'enable'), '0') 60 write_file(trace_path('current_tracer'), 'nop') 110 write_file(trace_path('buffer_size_kb'), str(buffer_size_kb))
|
/openbmc/skeleton/flashbios/ |
H A D | flash_bios_obj.c | 116 gchar* write_file, in on_update_via_tftp() argument 129 printf("Flashing BIOS from TFTP: %s,%s\n",url,write_file); in on_update_via_tftp() 130 flash_set_filename(flash,write_file); in on_update_via_tftp() 131 flash_emit_download(flash,url,write_file); in on_update_via_tftp() 180 gchar* write_file, in on_update() argument 195 printf("Flashing BIOS from: %s\n",write_file); in on_update() 199 flash_set_filename(flash,write_file); in on_update()
|
/openbmc/skeleton/op-flasher/ |
H A D | flasher_obj.c | 192 flash(FlashControl* flash_control, enum flash_access chip, uint32_t address, char* write_file, char… in flash() argument 195 printf("flasher: %s, BMC = %d, address = 0x%x\n", write_file, chip, address); in flash() 203 if(strcmp(write_file,"")!=0) in flash() 207 if(stat(write_file, &stbuf)) { in flash() 216 rc = program_file(flash_control, write_file, address, write_size); in flash()
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | vvfat | 277 fat16.write_file(file, b"Hello, world! 0\n") 296 fat16.write_file(file, new_content) 358 fat16.write_file(file, new_content) 389 fat16.write_file(file, new_content) 411 fat16.write_file(file, new_content) 431 fat16.write_file(file, new_content) 456 fat16.write_file(file, new_content) 474 fat16.write_file(new_file, new_content)
|
/openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
H A D | ftools.py | 11 def write_file(path, data): function 52 write_file(path, "\n".join(contents))
|
/openbmc/linux/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) in write_file() function 88 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns() 93 if (write_file("/proc/self/uid_map", map, strlen(map))) in create_and_enter_userns() 98 if (write_file("/proc/self/gid_map", map, strlen(map))) in create_and_enter_userns()
|
/openbmc/linux/tools/testing/selftests/mount/ |
H A D | nosymfollow-test.c | 85 static void write_file(char *filename, char *fmt, ...) in write_file() function 103 write_file("/proc/self/uid_map", "0 %d 1", uid); in create_and_enter_ns() 104 write_file("/proc/self/gid_map", "0 %d 1", gid); in create_and_enter_ns()
|
H A D | unprivileged-remount-test.c | 105 static void write_file(char *filename, char *fmt, ...) in write_file() function 168 write_file("/proc/self/uid_map", "0 %d 1", uid); in create_and_enter_userns() 169 write_file("/proc/self/gid_map", "0 %d 1", gid); in create_and_enter_userns()
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/ |
H A D | case.py | 175 ftools.write_file(dest_path, data) 195 ftools.write_file(inc_file, data) 223 ftools.write_file(self.testinc_bblayers_path, data) 238 ftools.write_file(self.machineinc_path, data) 245 ftools.write_file(destfile, "")
|
/openbmc/openbmc/poky/scripts/lib/devtool/ide_plugins/ |
H A D | __init__.py | 110 GdbCrossConfig.write_file(self.gdbserver_script, cmd_lines, True) 160 GdbCrossConfig.write_file(self.gdbinit, gdbinit_lines) 168 GdbCrossConfig.write_file(self.gdb_script, cmd_lines, True) 176 def write_file(script_file, cmd_lines, executable=False): member in GdbCrossConfig
|
/openbmc/linux/tools/testing/selftests/powerpc/ |
H A D | utils.c | 126 int write_file(const char *path, const char *buf, size_t count) in write_file() function 183 return write_file(path, buf, count); in write_debugfs_file() 348 err = write_file(path, buffer, len); in write_long() 380 err = write_file(path, buffer, len); in write_ulong()
|
/openbmc/linux/tools/accounting/ |
H A D | procacct.c | 273 int write_file = 0; in main() local 290 write_file = 1; in main() 319 if (write_file) { in main()
|
H A D | getdelays.c | 293 int write_file = 0; in main() local 330 write_file = 1; in main() 392 if (write_file) { in main()
|
/openbmc/linux/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 80 static void write_file(char *filename, char *fmt, ...) in write_file() function 124 write_file("/proc/self/uid_map", "%d %d 1", inner_uid, outer_uid); in create_and_enter_ns() 125 write_file("/proc/self/gid_map", "0 %d 1", outer_gid); in create_and_enter_ns()
|
/openbmc/linux/fs/hostfs/ |
H A D | hostfs_user_exp.c | 11 EXPORT_SYMBOL_GPL(write_file);
|
H A D | hostfs.h | 84 extern int write_file(int fd, unsigned long long *offset, const char *buf,
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | signing.py | 16 from oeqa.utils.ftools import write_file 216 write_file(recipe_append_path, feature)
|
H A D | bbtests.py | 197 ftools.write_file(preconf ,"TEST_PREFILE=\"prefile\"") 211 ftools.write_file(postconf , "TEST_POSTFILE=\"postfile\"") 305 ftools.write_file(recipe_append_path, feature)
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | split_huge_page_test.c | 53 static int write_file(const char *path, const char *buf, size_t buflen) in write_file() function 85 if (!write_file(SPLIT_DEBUGFS, input, ret + 1)) { in write_debugfs()
|
/openbmc/linux/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) in write_file() function 200 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns() 205 if (write_file("/proc/self/uid_map", map, strlen(map))) in create_and_enter_userns() 210 if (write_file("/proc/self/gid_map", map, strlen(map))) in create_and_enter_userns() 1159 if (write_file(procfile, map, strlen(map))) in map_ids() 1165 if (write_file(procfile, map, strlen(map))) in map_ids()
|
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/webmin/files/ |
H A D | disable-version-check.patch | 25 - &write_file($realos_cache_file, \%realos);
|
/openbmc/linux/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 95 static bool write_file(char *filename, char *fmt, ...) in write_file() function 258 success = write_file(map_file_name, "0 %d 1", uid); in test_userns()
|
/openbmc/linux/tools/tracing/latency/ |
H A D | latency-collector.c | 1340 static void write_file(const char *file, const char *cur, const char *new, in write_file() function 1368 write_file(TR_MAXLAT, NULL, "0", ERR_CLEANUP); in reset_max_latency() 1404 write_file(TR_CURRENT, NULL, NOP_TRACER, ERR_EXIT); in save_and_disable_tracer() 1442 write_file(TR_THRESH, save_state.thresh, threshold, ERR_CLEANUP); in enable_tracer() 1443 write_file(TR_CURRENT, NOP_TRACER, current_tracer, ERR_CLEANUP); in enable_tracer()
|
/openbmc/openbmc/poky/scripts/lib/devtool/ |
H A D | __init__.py | 308 def write_file(path, data): function 334 write_file(path, "\n".join(new_contents))
|