Home
last modified time | relevance | path

Searched refs:write_file (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/ntb/
H A Dntb_test.sh109 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 Dkvm_flightrecorder43 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 Dflash_bios_obj.c116 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 Dflasher_obj.c192 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 Dvvfat277 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 Dftools.py11 def write_file(path, data): function
52 write_file(path, "\n".join(contents))
/openbmc/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c59 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 Dnosymfollow-test.c85 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 Dunprivileged-remount-test.c105 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 Dcase.py175 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__.py110 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 Dutils.c126 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 Dprocacct.c273 int write_file = 0; in main() local
290 write_file = 1; in main()
319 if (write_file) { in main()
H A Dgetdelays.c293 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 Dtest_execve.c80 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 Dhostfs_user_exp.c11 EXPORT_SYMBOL_GPL(write_file);
H A Dhostfs.h84 extern int write_file(int fd, unsigned long long *offset, const char *buf,
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dsigning.py16 from oeqa.utils.ftools import write_file
216 write_file(recipe_append_path, feature)
H A Dbbtests.py197 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 Dsplit_huge_page_test.c53 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 Dmount_setattr_test.c171 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 Ddisable-version-check.patch25 - &write_file($realos_cache_file, \%realos);
/openbmc/linux/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c95 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 Dlatency-collector.c1340 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__.py308 def write_file(path, data): function
334 write_file(path, "\n".join(new_contents))

12