Home
last modified time | relevance | path

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

1234567

/openbmc/qemu/util/
H 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 …]
/openbmc/openbmc/poky/meta/recipes-devtools/python/python3/
H A Dcheck_build_completeness.py3 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 Dsshcontrol.py34 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
88 def run(self, command, timeout=None, logfile=None): argument
90 self._run(command, timeout, logfile)
105 self.logfile = logfile
119 if self.logfile:
120 with open(self.logfile, "a") as f:
[all …]
H A Dlogparser.py17 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 Dqemutinyrunner.py22 …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 Dtest_build_time.sh179 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 Dpatchtest35 def getResult(patch, mergepatch, logfile=None): argument
85 if logfile:
86 with open(logfile, "a") as f:
97 if logfile:
98 with open(logfile, "a") as f:
110 if logfile:
111 with open(logfile, "a") as f:
150 def run(patch, logfile=None): argument
156 premerge_resultklass = getResult(patch, False, logfile)
160 postmerge_resultklass = getResult(patch, True, logfile)
/openbmc/linux/tools/testing/selftests/kselftest/
H A Drunner.sh7 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 D0002-Fix-printf-format-errors.patch25 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/tests/unit/
H 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()
/openbmc/qemu/accel/tcg/
H A Dtranslate-all.c438 FILE *logfile = qemu_log_trylock(); in tb_gen_code() local
439 if (logfile) { in tb_gen_code()
456 fprintf(logfile, "OUT: [size=%d]\n", gen_code_size); in tb_gen_code()
457 fprintf(logfile, in tb_gen_code()
461 disas(logfile, tb->tc.ptr, chunk_start); in tb_gen_code()
473 disas(logfile, tb->tc.ptr + chunk_start, in tb_gen_code()
482 disas(logfile, tb->tc.ptr + chunk_start, in tb_gen_code()
492 fprintf(logfile, in tb_gen_code()
496 fprintf(logfile, in tb_gen_code()
504 fprintf(logfile, "\n"); in tb_gen_code()
[all …]
H A Dtranslator.c218 FILE *logfile = qemu_log_trylock(); in translator_loop() local
219 if (logfile) { in translator_loop()
220 fprintf(logfile, "----------------\n"); in translator_loop()
221 ops->disas_log(db, cpu, logfile); in translator_loop()
222 fprintf(logfile, "\n"); in translator_loop()
223 qemu_log_unlock(logfile); in translator_loop()
/openbmc/u-boot/test/py/
H A Dmultiplexed_log.py21 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 Dext-sdk-prepare.py42 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/linux/tools/testing/selftests/netfilter/
H A Dnft_audit.sh20 logfile=$(mktemp)
22 echo "logging into $logfile"
23 ./audit_logread >"$logfile" &
26 exec 3<"$logfile"
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dbuild.py66 def __init__(self, t, fn, logfile, d): argument
73 self.logfile = logfile
93 def __init__(self, t, fn, logfile, taskflags, d): argument
421 return logfile
466 logfile = StdoutNoopContextManager()
471 logfile = create_progress_handler(func, progress, logfile, d)
673 logfile = open(logfn, 'w')
686 os.dup2(logfile.fileno(), oso[1])
687 os.dup2(logfile.fileno(), ose[1])
690 handler = logging.StreamHandler(logfile)
[all …]
/openbmc/qemu/python/qemu/qmp/
H 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:
/openbmc/qemu/
H A Dcpu-target.c338 FILE *logfile = qemu_log_trylock(); in cpu_abort() local
339 if (logfile) { in cpu_abort()
340 fprintf(logfile, "qemu: fatal: "); in cpu_abort()
341 vfprintf(logfile, fmt, ap2); in cpu_abort()
342 fprintf(logfile, "\n"); in cpu_abort()
343 cpu_dump_state(cpu, logfile, CPU_DUMP_FPU | CPU_DUMP_CCOP); in cpu_abort()
344 qemu_log_unlock(logfile); in cpu_abort()
/openbmc/openbmc/meta-arm/meta-arm/lib/oeqa/controllers/
H A Dfvp.py84 with open(self.fvp_log.name, 'rb') as logfile:
85 parser = runner.ConsolePortParser(logfile)
88 logfile = self._create_logfile(name)
92 self.fvp.create_pexpect(port, logfile=logfile)
/openbmc/openbmc/poky/bitbake/lib/prserv/
H A Dserv.py150 def __init__(self, dbfile, logfile, host, port): argument
152 self.logfile = logfile
166 def run_as_daemon(func, pidfile, logfile): argument
205 so = open(logfile, "a+")
236 def start_daemon(dbfile, host, port, logfile, read_only=False): argument
256 run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
346 logfile = os.path.join(cachedir, "prserv.log")
353 … singleton = PRServSingleton(os.path.abspath(dbfile), os.path.abspath(logfile), host, port)
H A D__init__.py12 def init_logger(logfile, loglevel): argument
17 logging.basicConfig(level=numeric_level, filename=logfile, format=FORMAT)
/openbmc/qemu/net/can/
H 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()
/openbmc/qemu/hw/xen/
H 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()
/openbmc/openbmc/poky/meta/lib/oeqa/sdk/utils/
H A Dsdkbuildproject.py22 self.logfile = os.path.join(self.testlogdir, "sdk_target_log.%s" % self.datetime)
41 if self.logfile:
42 with open(self.logfile, "a") as f:
/openbmc/openbmc/poky/meta/lib/oeqa/core/
H A Dcase.py77 def ptest_section(self, section, duration = None, log = None, logfile = None, exitcode = None): argument
87 elif logfile is not None:
88 with open(logfile, "rb") as f:

1234567