Home
last modified time | relevance | path

Searched refs:logfile (Results 1 – 25 of 31) sorted by relevance

12

/qemu/util/
A Dlog.c64 return logfile && logfile != stderr; in qemu_log_separate()
92 FILE *logfile; in qemu_log_trylock_with_err() local
94 logfile = thread_file; in qemu_log_trylock_with_err()
95 if (!logfile) { in qemu_log_trylock_with_err()
100 if (!logfile) { in qemu_log_trylock_with_err()
127 return logfile; in qemu_log_trylock_with_err()
137 if (logfile) { in qemu_log_unlock()
138 fflush(logfile); in qemu_log_unlock()
213 FILE *logfile; in qemu_set_log_internal() local
294 if (logfile) { in qemu_set_log_internal()
[all …]
/qemu/tests/unit/
A Dtest-logging.c151 FILE *logfile; in test_logfile_lock() local
163 logfile = qemu_log_trylock(); in test_logfile_lock()
164 g_assert(logfile); in test_logfile_lock()
165 fprintf(logfile, "%s 1st write to file\n", __func__); in test_logfile_lock()
166 fflush(logfile); in test_logfile_lock()
173 fprintf(logfile, "%s 2nd write to file\n", __func__); in test_logfile_lock()
174 fflush(logfile); in test_logfile_lock()
175 qemu_log_unlock(logfile); in test_logfile_lock()
/qemu/accel/tcg/
A Dtranslate-all.c439 FILE *logfile = qemu_log_trylock(); in tb_gen_code() local
440 if (logfile) { in tb_gen_code()
457 fprintf(logfile, "OUT: [size=%d]\n", gen_code_size); in tb_gen_code()
458 fprintf(logfile, in tb_gen_code()
462 disas(logfile, tb->tc.ptr, chunk_start); in tb_gen_code()
474 disas(logfile, tb->tc.ptr + chunk_start, in tb_gen_code()
483 disas(logfile, tb->tc.ptr + chunk_start, in tb_gen_code()
493 fprintf(logfile, in tb_gen_code()
497 fprintf(logfile, in tb_gen_code()
505 fprintf(logfile, "\n"); in tb_gen_code()
[all …]
A Dtranslator.c226 FILE *logfile = qemu_log_trylock(); in translator_loop() local
227 if (logfile) { in translator_loop()
228 fprintf(logfile, "----------------\n"); in translator_loop()
231 !ops->disas_log(db, cpu, logfile)) { in translator_loop()
232 fprintf(logfile, "IN: %s\n", lookup_symbol(db->pc_first)); in translator_loop()
233 target_disas(logfile, cpu, db); in translator_loop()
235 fprintf(logfile, "\n"); in translator_loop()
236 qemu_log_unlock(logfile); in translator_loop()
A Dplugin-gen.c264 FILE *logfile = qemu_log_trylock(); in plugin_gen_inject() local
265 if (logfile) { in plugin_gen_inject()
266 fprintf(logfile, "OP before plugin injection:\n"); in plugin_gen_inject()
267 tcg_dump_ops(tcg_ctx, logfile, false); in plugin_gen_inject()
268 fprintf(logfile, "\n"); in plugin_gen_inject()
269 qemu_log_unlock(logfile); in plugin_gen_inject()
A Dcpu-exec.c300 FILE *logfile = qemu_log_trylock(); in log_cpu_exec() local
301 if (logfile) { in log_cpu_exec()
313 cpu_dump_state(cpu, logfile, flags); in log_cpu_exec()
314 qemu_log_unlock(logfile); in log_cpu_exec()
/qemu/target/hppa/
A Dsys_helper.c99 FILE *logfile = qemu_log_trylock(); in HELPER() local
100 if (logfile) { in HELPER()
103 fprintf(logfile, "RFI: cpu %d\n", cs->cpu_index); in HELPER()
104 hppa_cpu_dump_state(cs, logfile, 0); in HELPER()
105 qemu_log_unlock(logfile); in HELPER()
A Dint_helper.c245 FILE *logfile = qemu_log_trylock(); in hppa_cpu_do_interrupt() local
246 if (logfile) { in hppa_cpu_do_interrupt()
253 fprintf(logfile, "INT: cpu %d %s\n", cs->cpu_index, name); in hppa_cpu_do_interrupt()
255 fprintf(logfile, "INT: cpu %d unknown %d\n", cs->cpu_index, i); in hppa_cpu_do_interrupt()
257 hppa_cpu_dump_state(cs, logfile, 0); in hppa_cpu_do_interrupt()
258 qemu_log_unlock(logfile); in hppa_cpu_do_interrupt()
/qemu/python/qemu/qmp/
A Dqmp_shell.py183 logfile: Optional[str] = None):
193 self.logfile = None
195 if logfile is not None:
196 self.logfile = open(logfile, "w", encoding='utf-8')
365 if self.logfile is not None:
367 self._print(cmd, fh=self.logfile)
436 logfile: Optional[str] = None):
437 super().__init__(address, pretty, verbose, server, logfile)
550 with shell_class(address, args.pretty, args.verbose, args.logfile) as qemu:
601 True, args.logfile) as qemu:
/qemu/
A Dcpu-target.c351 FILE *logfile = qemu_log_trylock(); in cpu_abort() local
352 if (logfile) { in cpu_abort()
353 fprintf(logfile, "qemu: fatal: "); in cpu_abort()
354 vfprintf(logfile, fmt, ap2); in cpu_abort()
355 fprintf(logfile, "\n"); in cpu_abort()
356 cpu_dump_state(cpu, logfile, CPU_DUMP_FPU | CPU_DUMP_CCOP); in cpu_abort()
357 qemu_log_unlock(logfile); in cpu_abort()
/qemu/net/can/
A Dcan_socketcan.c79 FILE *logfile = qemu_log_trylock(); in can_host_socketcan_display_msg() local
81 if (logfile) { in can_host_socketcan_display_msg()
82 fprintf(logfile, "[cansocketcan]: %03X [%01d] %s %s", in can_host_socketcan_display_msg()
89 fprintf(logfile, " %02X", msg->data[i]); in can_host_socketcan_display_msg()
91 fprintf(logfile, "\n"); in can_host_socketcan_display_msg()
92 qemu_log_unlock(logfile); in can_host_socketcan_display_msg()
/qemu/hw/xen/
A Dxen_pvdev.c177 FILE *logfile; in xen_pv_printf() local
184 logfile = qemu_log_trylock(); in xen_pv_printf()
185 if (logfile) { in xen_pv_printf()
187 xen_pv_output_msg(xendev, logfile, fmt, args); in xen_pv_printf()
189 qemu_log_unlock(logfile); in xen_pv_printf()
/qemu/block/
A Dgluster.c65 char *logfile; member
466 ret = glfs_set_logging(glfs, gconf->logfile, gconf->debug); in qemu_gluster_glfs_init()
801 const char *filename, *logfile; in qemu_gluster_open() local
825 logfile = qemu_opt_get(opts, GLUSTER_OPT_LOGFILE); in qemu_gluster_open()
826 s->logfile = g_strdup(logfile ? logfile : GLUSTER_LOGFILE_DEFAULT); in qemu_gluster_open()
828 gconf->logfile = g_strdup(s->logfile); in qemu_gluster_open()
878 g_free(s->logfile); in qemu_gluster_open()
916 gconf->logfile = g_strdup(s->logfile); in qemu_gluster_reopen_prepare()
1158 if (!gconf->logfile) { in qemu_gluster_co_create_opts()
1159 gconf->logfile = g_strdup(GLUSTER_LOGFILE_DEFAULT); in qemu_gluster_co_create_opts()
[all …]
/qemu/qga/
A Dservice-win32.c98 int ga_install_service(const char *path, const char *logfile, in ga_install_service() argument
123 if (logfile) { in ga_install_service()
125 win_escape_arg(logfile, esc)); in ga_install_service()
A Dservice-win32.h32 int ga_install_service(const char *path, const char *logfile,
A Dmain.c408 static FILE *ga_open_logfile(const char *logfile) in ga_open_logfile() argument
412 f = fopen(logfile, "a"); in ga_open_logfile()
/qemu/docs/system/
A Ddevice-url-syntax.rst.inc98 gluster[+type]://[host[:port]]/volume/path[?socket=...][,debug=N][,logfile=...]
101 …er":"qcow2","file":{"driver":"gluster","volume":"testvol","path":"a.img","debug":N,"logfile":"...",
111   file.debug=9,file.logfile=/var/log/qemu-gluster.log
117   "debug":9,"logfile":"/var/log/qemu-gluster.log",
121   file.debug=9,file.logfile=/var/log/qemu-gluster.log,
A Dqemu-block-drivers.rst.inc680 [?socket=...][,file.debug=9][,file.logfile=...]
688 "volume":"testvol","path":"a.img","debug":9,"logfile":"...",
719 *logfile* is a commandline option to mention log file path which helps in
740 …|qemu_system| -drive file=gluster://1.2.3.4/testvol/a.img,file.debug=9,file.logfile=/var/log/qemu-…
744 "debug":9,"logfile":"/var/log/qemu-gluster.log",
748 file.debug=9,file.logfile=/var/log/qemu-gluster.log,
/qemu/hw/net/can/
A Dcan_sja1000.c250 FILE *logfile = qemu_log_trylock(); in can_display_msg() local
252 if (logfile) { in can_display_msg()
253 fprintf(logfile, "%s%03X [%01d] %s %s", in can_display_msg()
261 fprintf(logfile, " %02X", msg->data[i]); in can_display_msg()
263 fprintf(logfile, "\n"); in can_display_msg()
264 qemu_log_unlock(logfile); in can_display_msg()
/qemu/tcg/
A Dtcg.c1444 if (logfile) { in tcg_prologue_init()
1469 fprintf(logfile, "\n"); in tcg_prologue_init()
1470 qemu_log_unlock(logfile); in tcg_prologue_init()
6098 if (logfile) { in tcg_gen_code()
6099 fprintf(logfile, "OP:\n"); in tcg_gen_code()
6101 fprintf(logfile, "\n"); in tcg_gen_code()
6102 qemu_log_unlock(logfile); in tcg_gen_code()
6133 if (logfile) { in tcg_gen_code()
6151 if (logfile) { in tcg_gen_code()
6154 fprintf(logfile, "\n"); in tcg_gen_code()
[all …]
/qemu/docs/interop/
A Dqemu-ga.rst67 .. option:: -l, --logfile=PATH
147 logfile string
/qemu/chardev/
A Dchar.c256 if (common && common->logfile) { in qemu_char_open()
264 chr->logfd = qemu_create(common->logfile, flags, 0666, errp); in qemu_char_open()
515 const char *logfile = qemu_opt_get(opts, "logfile"); in qemu_chr_parse_common() local
517 backend->logfile = g_strdup(logfile); in qemu_chr_parse_common()
/qemu/roms/
A Dedk2-build.py118 logfile = f'{section}.log'
128 with open(logfile, 'wb') as f:
/qemu/qapi/
A Dchar.json197 # @logfile: The name of a logfile to save output
205 'data': { '*logfile': 'str',
/qemu/target/i386/tcg/
A Dtranslate.c2080 FILE *logfile = qemu_log_trylock(); in gen_unknown_opcode() local
2081 if (logfile) { in gen_unknown_opcode()
2084 fprintf(logfile, "ILLOPC: " TARGET_FMT_lx ":", pc); in gen_unknown_opcode()
2086 fprintf(logfile, " %02x", translator_ldub(env, &s->base, pc)); in gen_unknown_opcode()
2088 fprintf(logfile, "\n"); in gen_unknown_opcode()
2089 qemu_log_unlock(logfile); in gen_unknown_opcode()

Completed in 74 milliseconds

12