/qemu/scripts/ |
H A D | clean-header-guards.pl | 58 my ($fname, $msg) = @_; 64 my ($fname) = @_; 66 open(my $in, "<", $fname) 82 my ($fname) = @_; 83 $fname =~ tr/a-z/A-Z/; 84 $fname =~ tr/A-Z0-9/_/cs; 85 return $fname; 89 my ($fname, $guard) = @_; 103 for my $fname (@ARGV) { 104 my $text = slurp($fname); [all …]
|
H A D | cleanup-trace-events.pl | 44 while (my $fname = <GREP>) { 45 chomp $fname; 46 next if $seen{$fname} || $fname eq 'trace-events'; 47 $seen{$fname} = 1; 48 push @files, "# $fname\n";
|
H A D | python_qmp_updater.py | 128 for fname in sys.argv[1:]: 129 print(fname) 130 with open(fname) as f: 135 with open(fname, 'w') as f:
|
/qemu/tests/unit/ |
H A D | test-crypto-secret.c | 55 char *fname = NULL; in test_secret_indirect_good() local 57 &fname, in test_secret_indirect_good() 61 g_assert_nonnull(fname); in test_secret_indirect_good() 70 "file", fname, in test_secret_indirect_good() 81 unlink(fname); in test_secret_indirect_good() 82 g_free(fname); in test_secret_indirect_good() 103 char *fname = NULL; in test_secret_indirect_emptyfile() local 109 g_assert_nonnull(fname); in test_secret_indirect_emptyfile() 116 "file", fname, in test_secret_indirect_emptyfile() 127 unlink(fname); in test_secret_indirect_emptyfile() [all …]
|
H A D | crypto-tls-x509-helpers.h | 124 # define TLS_ROOT_REQ_SIMPLE(varname, fname) \ argument 126 .filename = fname, \ 137 # define TLS_CERT_REQ_SIMPLE_CLIENT(varname, cavarname, cname, fname) \ argument 139 .filename = fname, \ 154 # define TLS_CERT_REQ_SIMPLE_SERVER(varname, cavarname, fname, \ argument 157 .filename = fname, \
|
/qemu/tests/qtest/ |
H A D | boot-sector.c | 88 int boot_sector_init(char *fname) in boot_sector_init() argument 95 fd = mkstemp(fname); in boot_sector_init() 97 fprintf(stderr, "Couldn't open \"%s\": %s", fname, strerror(errno)); in boot_sector_init() 127 fprintf(stderr, "Could not write \"%s\"", fname); in boot_sector_init() 177 void boot_sector_cleanup(const char *fname) in boot_sector_cleanup() argument 179 unlink(fname); in boot_sector_cleanup()
|
H A D | acpi-utils.c | 102 char *fname = NULL; in acpi_fetch_table() local 106 fd = g_file_open_tmp("malformed-XXXXXX.dat", &fname, &error); in acpi_fetch_table() 108 fprintf(stderr, "Dumping invalid table into '%s'\n", fname); in acpi_fetch_table() 112 g_free(fname); in acpi_fetch_table()
|
H A D | boot-sector.h | 20 int boot_sector_init(char *fname); 26 void boot_sector_cleanup(const char *fname);
|
/qemu/semihosting/ |
H A D | syscalls.c | 134 int len = validate_strlen(cs, fname, fname_len); in gdb_open() 142 (uint64_t)fname, (uint32_t)len, in gdb_open() 190 int len = validate_strlen(cs, fname, fname_len); in gdb_stat() 203 int len = validate_strlen(cs, fname, fname_len); in gdb_remove() 296 unlock_user(p, fname, 0); in host_open() 436 unlock_user(name, fname, 0); in host_stat() 454 unlock_user(p, fname, 0); in host_remove() 911 gdb_stat(cs, complete, fname, fname_len, addr); in semihost_sys_stat() 913 host_stat(cs, complete, fname, fname_len, addr); in semihost_sys_stat() 921 gdb_remove(cs, complete, fname, fname_len); in semihost_sys_remove() [all …]
|
/qemu/util/ |
H A D | module.c | 157 static bool module_load_dso(const char *fname, bool export_symbols, in module_load_dso() argument 171 g_module = g_module_open(fname, flags); in module_load_dso() 177 error_setg(errp, "failed to initialize module: %s", fname); in module_load_dso() 194 trace_module_load_module(fname); in module_load_dso() 283 char *fname = g_strdup_printf("%s/%s%s", in module_load() local 285 int ret = access(fname, F_OK); in module_load() 293 g_free(fname); in module_load() 297 error_setg_errno(errp, errno, "error trying to access %s", fname); in module_load() 298 } else if (module_load_dso(fname, export_symbols, errp)) { in module_load() 301 g_free(fname); in module_load()
|
H A D | memfd.c | 120 gchar *fname; in qemu_memfd_alloc() local 122 fname = g_strdup_printf("%s/memfd-XXXXXX", tmpdir); in qemu_memfd_alloc() 123 mfd = mkstemp(fname); in qemu_memfd_alloc() 124 unlink(fname); in qemu_memfd_alloc() 125 g_free(fname); in qemu_memfd_alloc()
|
H A D | error-report.c | 128 void loc_set_file(const char *fname, int lno) in loc_set_file() argument 130 assert (fname || cur_loc->kind == LOC_FILE); in loc_set_file() 133 if (fname) { in loc_set_file() 134 cur_loc->ptr = fname; in loc_set_file()
|
H A D | qemu-config.c | 95 const char *fname, Error **errp) in qemu_config_foreach() argument 137 loc_set_file(fname, lno); in qemu_config_foreach() 181 int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname, Error **errp) in qemu_config_parse() argument 183 return qemu_config_foreach(fp, qemu_config_do_parse, lists, fname, errp); in qemu_config_parse()
|
/qemu/scripts/qapi/ |
H A D | gen.py | 50 def __init__(self, fname: str): 51 self.fname = fname 76 if self.fname.startswith('../'): 78 pathname = os.path.join(output_dir, self.fname) 136 def __init__(self, fname: str): 137 super().__init__(fname) 158 def __init__(self, fname: str, blurb: str, pydoc: str): 159 super().__init__(fname) 187 name=c_fname(self.fname)) 192 return super()._top() + guardstart(self.fname) [all …]
|
H A D | source.py | 36 def __init__(self, fname: str, parent: Optional['QAPISourceInfo']): 37 self.fname = fname 60 return "%s: In %s '%s':\n" % (self.fname,
|
H A D | schema.py | 103 fname = info.fname if info else QAPISchemaModule.BUILTIN_MODULE_NAME 104 self._module = schema.module_by_fname(fname) 1125 def __init__(self, fname: str): 1126 self.fname = fname 1129 parser = QAPISchemaParser(fname) 1140 self._schema_dir = os.path.dirname(fname) 1142 self._make_module(fname) 1193 def _module_name(self, fname: str) -> str: 1195 return fname 1199 name = self._module_name(fname) [all …]
|
/qemu/replay/ |
H A D | replay.c | 339 static void replay_enable(const char *fname, int mode) in replay_enable() argument 358 replay_file = fopen(fname, fmode); in replay_enable() 360 fprintf(stderr, "Replay: open %s: %s\n", fname, strerror(errno)); in replay_enable() 364 replay_filename = g_strdup(fname); in replay_enable() 393 const char *fname; in replay_configure() local 418 fname = qemu_opt_get(opts, "rrfile"); in replay_configure() 419 if (!fname) { in replay_configure() 426 replay_enable(fname, mode); in replay_configure()
|
/qemu/scripts/simplebench/ |
H A D | bench_prealloc.py | 47 fname = f"{case['dir']}/prealloc-test.qcow2" 49 os.remove(fname) 53 subprocess.run([env['qemu-img-binary'], 'create', '-f', 'qcow2', fname, 64 args += ['-f', 'qcow2', fname]
|
H A D | bench-backup.py | 77 fname = dirs[dst] + '/test-target' 79 fname += '.qcow2' 80 target = drv_file(fname, o_direct=o_direct)
|
/qemu/trace/ |
H A D | control.c | 202 static void trace_init_events(const char *fname) in trace_init_events() argument 209 if (fname == NULL) { in trace_init_events() 214 loc_set_file(fname, 0); in trace_init_events() 215 fp = fopen(fname, "r"); in trace_init_events() 221 loc_set_file(fname, ++line_idx); in trace_init_events() 232 loc_set_file(fname, 0); in trace_init_events()
|
/qemu/tests/vm/ |
H A D | basevm.py | 205 def check_sha256sum(fname): argument 208 checksum = subprocess.check_output(["sha256sum", fname]).split()[0] 211 def check_sha512sum(fname): argument 214 checksum = subprocess.check_output(["sha512sum", fname]).split()[0] 220 fname = os.path.join(cache_dir, 222 if os.path.exists(fname) and check_sha256sum(fname) and check_sha512sum(fname): 223 return fname 224 logging.debug("Downloading %s to %s...", url, fname) 225 subprocess.check_call(["wget", "-c", url, "-O", fname + ".download"], 227 os.rename(fname + ".download", fname) [all …]
|
/qemu/migration/ |
H A D | file.c | 25 char *fname; member 49 g_free(outgoing_args.fname); in file_cleanup_outgoing_migration() 50 outgoing_args.fname = NULL; in file_cleanup_outgoing_migration() 59 ioc = qio_channel_file_new_path(outgoing_args.fname, flags, 0, errp); in file_send_channel_create() 93 outgoing_args.fname = g_strdup(filename); in file_start_outgoing_migration()
|
/qemu/include/semihosting/ |
H A D | syscalls.h | 24 target_ulong fname, target_ulong fname_len, 56 target_ulong fname, target_ulong fname_len, 60 target_ulong fname, target_ulong fname_len);
|
/qemu/target/mips/tcg/sysemu/ |
H A D | mips-semi.c | 216 target_ulong fname = gpr[4]; in mips_semihosting() local 219 p = lock_user_string(fname); in mips_semihosting() 230 unlock_user(p, fname, 0); in mips_semihosting() 238 semihost_sys_open(cs, uhi_cb, fname, 0, gpr[5], gpr[6]); in mips_semihosting()
|
/qemu/scripts/tracetool/ |
H A D | __init__.py | 349 def read_events(fobj, fname): argument 365 raise ValueError("%s does not end with a new line" % fname) 372 event = Event.build(line, lineno, fname) 374 arg0 = 'Error at %s:%d: %s' % (fname, lineno, e.args[0])
|