/openbmc/qemu/util/ |
H A D | log.c | 63 FILE *logfile = qatomic_read(&global_file); in qemu_log_separate() local 64 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() 99 logfile = fopen(filename, "w"); in qemu_log_trylock_with_err() 100 if (!logfile) { in qemu_log_trylock_with_err() 106 thread_file = logfile; in qemu_log_trylock_with_err() 118 logfile = qatomic_rcu_read((void **)&global_file); in qemu_log_trylock_with_err() 119 if (!logfile) { in qemu_log_trylock_with_err() [all …]
|
/openbmc/openbmc/meta-facebook/meta-minerva/recipes-phosphor/console/obmc-console/ |
H A D | server.ttyS5.conf | 7 logfile = /var/log/obmc-console-compute_blade_1.log 11 logfile = /var/log/obmc-console-compute_blade_2.log 15 logfile = /var/log/obmc-console-compute_blade_3.log 19 logfile = /var/log/obmc-console-compute_blade_4.log 23 logfile = /var/log/obmc-console-compute_blade_5.log 27 logfile = /var/log/obmc-console-compute_blade_6.log 31 logfile = /var/log/obmc-console-compute_blade_7.log 35 logfile = /var/log/obmc-console-compute_blade_8.log 39 logfile = /var/log/obmc-console-compute_blade_9.log 43 logfile = /var/log/obmc-console-compute_blade_10.log [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/python/python3/ |
H A D | check_build_completeness.py | 3 logfile = open(sys.argv[1]).read() variable 5 necessary_bits = logfile.find("The necessary bits to build these optional modules were not found") 6 to_find_bits = logfile.find("To find the necessary bits, look in setup.py in detect_modules() for t… 8 print("%s" %(logfile[necessary_bits:to_find_bits])) 10 failed_to_build = logfile.find("Failed to build these modules:") 12 failed_to_build_end = logfile.find("\n\n", failed_to_build) 13 print("%s" %(logfile[failed_to_build:failed_to_build_end]))
|
/openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
H A D | sshcontrol.py | 34 self.logfile = None 43 if self.logfile: 44 with open(self.logfile, "a") as f: 47 def _run(self, command, timeout=None, logfile=None): argument 48 self.logfile = logfile 90 def run(self, command, timeout=None, logfile=None): argument 92 self._run(command, timeout, logfile) 103 def __init__(self, ip, logfile=None, timeout=300, user='root', port=None): argument 107 self.logfile = logfile 121 if self.logfile: [all …]
|
H A D | logparser.py | 17 def parse(self, logfile): argument 38 with open(logfile, errors='replace') as f: 113 def parse(self, logfile): argument 129 with open(logfile, errors="replace") as f: 159 def parse(self, logfile): argument 166 with open(logfile, errors='replace') as f: 167 name = logfile
|
H A D | qemutinyrunner.py | 22 …def __init__(self, machine, rootfs, display, tmpdir, deploy_dir_image, logfile, kernel, boottime, … argument 38 self.logfile = logfile 63 if self.logfile: 64 with open(self.logfile, "a") as f:
|
/openbmc/openbmc/poky/scripts/contrib/ |
H A D | test_build_time.sh | 179 logfile="$logdir/timelog_$rev.log" 180 echo -n > $logfile 192 echo "Applied $patchrev" >> $logfile 204 …-o $timeoutfile -f "%e\nreal\t%E\nuser\t%Us\nsys\t%Ss\nmaxm\t%Mk" $runscript 2>&1 | tee -a $logfile 211 cat $timeoutfile | tee -a $logfile 216 echo "*** Build failed (exit code $exitstatus), skipping..." | tee -a $logfile 221 echo "Returning $ret" | tee -a $logfile
|
/openbmc/openbmc/poky/scripts/ |
H A D | patchtest | 36 def getResult(patch, mergepatch, logfile=None): argument 86 if logfile: 87 with open(logfile, "a") as f: 98 if logfile: 99 with open(logfile, "a") as f: 111 if logfile: 112 with open(logfile, "a") as f: 155 def run(patch, logfile=None): argument 161 premerge_resultklass = getResult(patch, False, logfile) 165 postmerge_resultklass = getResult(patch, True, logfile)
|
/openbmc/qemu/tests/unit/ |
H A D | test-logging.c | 151 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()
|
/openbmc/linux/tools/testing/selftests/kselftest/ |
H A D | runner.sh | 7 export logfile=/dev/stdout 98 echo "# overriding timeout to $kselftest_timeout" >> "$logfile" 100 echo "# timeout set to $kselftest_timeout" >> "$logfile" 129 (read xs; exit $xs)) 4>>"$logfile" && 155 logfile="/tmp/$BASENAME_TEST" 156 cat /dev/null > "$logfile"
|
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/cdparanoia/files/ |
H A D | 0002-Fix-printf-format-errors.patch | 25 if (logfile != NULL && function==-1) { 26 - fprintf(logfile,buffer+1); 27 + fprintf(logfile, "%s", buffer+1); 28 fprintf(logfile,"\n\n"); 29 fflush(logfile);
|
/openbmc/qemu/accel/tcg/ |
H A D | translate-all.c | 439 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() 472 fprintf(logfile, " -- guest addr 0x%016" PRIx64 "\n", in tb_gen_code() 474 disas(logfile, tb->tc.ptr + chunk_start, in tb_gen_code() 482 fprintf(logfile, " -- tb slow paths + alignment\n"); in tb_gen_code() 483 disas(logfile, tb->tc.ptr + chunk_start, in tb_gen_code() 490 fprintf(logfile, " data: [size=%d]\n", data_size); in tb_gen_code() [all …]
|
H A D | translator.c | 226 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()
|
/openbmc/u-boot/test/py/ |
H A D | multiplexed_log.py | 21 def __init__(self, logfile, name, chained_file): argument 34 self.logfile = logfile 65 self.logfile.write(self, data, implicit) 79 self.logfile.flush() 88 def __init__(self, logfile, name, chained_file): argument 101 self.logfile = logfile 133 self.logfile.write(self, msg) 164 self.logfile.write(self, output) 167 self.logfile.timestamp()
|
/openbmc/openbmc/poky/meta/files/ |
H A D | ext-sdk-prepare.py | 42 logfile = sys.argv[1] 50 with open(logfile, 'a') as logf: 61 print('ERROR: PR data import failed: error log written to %s' % logfile) 69 with open(logfile, 'a') as logf: 81 print('ERROR: SDK preparation failed: error log written to %s' % logfile)
|
/openbmc/qemu/target/hppa/ |
H A D | sys_helper.c | 99 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()
|
H A D | int_helper.c | 245 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()
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | build.py | 66 def __init__(self, t, fn, logfile, d): argument 73 self.logfile = logfile 93 def __init__(self, t, fn, logfile, taskflags, d): argument 94 super(TaskStarted, self).__init__(t, fn, logfile, d) 103 def __init__(self, task, fn, logfile, metadata, errprinted = False): argument 105 super(TaskFailed, self).__init__(task, fn, logfile, metadata) 389 def create_progress_handler(func, progress, logfile, d): argument 392 return bb.progress.BasicProgressHandler(d, outfile=logfile) 395 return bb.progress.BasicProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile) 398 return bb.progress.OutOfProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile) [all …]
|
/openbmc/qemu/python/qemu/qmp/ |
H A D | qmp_shell.py | 183 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:
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | nft_audit.sh | 20 logfile=$(mktemp) 22 echo "logging into $logfile" 23 ./audit_logread >"$logfile" & 26 exec 3<"$logfile"
|
/openbmc/qemu/ |
H A D | cpu-target.c | 351 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()
|
/openbmc/qemu/net/can/ |
H A D | can_socketcan.c | 79 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()
|
/openbmc/openbmc/meta-arm/meta-arm/lib/oeqa/controllers/ |
H A D | fvp.py | 85 with open(self.fvp_log.name, 'rb') as logfile: 86 parser = runner.ConsolePortParser(logfile) 89 logfile = self._create_logfile(name) 93 self.fvp.create_pexpect(port, logfile=logfile)
|
/openbmc/qemu/hw/xen/ |
H A D | xen_pvdev.c | 177 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()
|
/openbmc/openbmc/poky/bitbake/lib/prserv/ |
H A D | serv.py | 236 def __init__(self, dbfile, logfile, host, port, upstream): argument 238 self.logfile = logfile 253 def run_as_daemon(func, pidfile, logfile): argument 292 so = open(logfile, "a+") 323 def start_daemon(dbfile, host, port, logfile, read_only=False, upstream=None): argument 343 run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile)) 436 logfile = os.path.join(cachedir, "prserv.log") 443 …singleton = PRServSingleton(os.path.abspath(dbfile), os.path.abspath(logfile), host, port, upstrea…
|