Home
last modified time | relevance | path

Searched refs:sys (Results 1 – 25 of 170) sorted by relevance

1234567

/qemu/scripts/
H A Dfeature_to_c.py4 import os, sys, xml.etree.ElementTree
7 sys.stdout.write(' ' * indent)
8 sys.stdout.write('"')
13 sys.stdout.write('\n')
15 sys.stdout.write('"')
19 sys.stdout.write('\\"')
31 sys.stdout.write('"')
38 for input in sys.argv[1:]:
87 sys.stdout.write(' {\n')
89 sys.stdout.write(',\n')
[all …]
H A Dsignrom.py12 import sys
15 if len(sys.argv) < 3:
17 sys.exit(1)
19 fin = open(sys.argv[1], 'rb')
20 fout = open(sys.argv[2], 'wb')
24 sys.exit("%s: option ROM does not begin with magic 55 aa" % sys.argv[1])
32 sys.stderr.write('error: ROM is too large (%d > %d)\n' % (len(data), size))
33 sys.exit(1)
41 sys.stderr.write('WARNING: ROM includes nonzero checksum\n')
H A Dundefsym.py11 import sys
30 sys.exit(0)
36 sys.exit(1)
42 sys.exit(1)
45 sys.stdout.buffer.write(b'\n'.join(lines))
48 main(sys.argv)
H A Dtracetool.py16 import sys
57 sys.exit(0)
59 sys.exit(1)
94 sys.exit(0)
112 sys.exit(1)
113 sys.exit(0)
140 main(sys.argv)
H A Dqemu-trace-stap26 import sys
40 sys.exit(1)
51 sys.exit(1)
70 sys.exit(1)
105 sys.exit(1)
138 """ % {"argv0": sys.argv[0]})
157 """ % {"argv0": sys.argv[0]})
166 sys.exit(0)
/qemu/scripts/kvm/
H A Dkvm_flightrecorder35 import sys
75 sys.stdout.write(line)
82 sys.exit(0)
85 if len(sys.argv) < 2:
88 cmd = sys.argv[1]
91 sys.exit(0)
96 sys.exit(1)
99 sys.exit(1)
104 if len(sys.argv) == 3:
109 sys.exit(1)
[all …]
/qemu/tests/qemu-iotests/
H A Dqcow2.py21 import sys
49 sys.exit(1)
54 sys.exit(1)
66 sys.exit(1)
75 data = sys.stdin.read()
84 sys.exit(1)
108 sys.exit(1)
120 sys.exit(1)
168 if len(sys.argv) < 3:
170 sys.exit(1)
[all …]
H A Dlinters.py19 import sys
71 (sys.executable, '-m', tool, *args),
85 print(f"Usage: {sys.argv[0]} < --mypy | --pylint >", file=sys.stderr)
86 sys.exit(1)
88 if len(sys.argv) != 2:
93 if sys.argv[1] == '--pylint':
95 elif sys.argv[1] == '--mypy':
100 print(f"Unrecognized argument: '{sys.argv[1]}'", file=sys.stderr)
H A Dcheck20 import sys
34 if os.path.islink(sys.argv[0]):
36 return os.path.dirname(os.readlink(sys.argv[0]))
38 return os.path.dirname(os.path.abspath(sys.argv[0]))
151 if len(sys.argv) > 1 and sys.argv[-len(args.tests)-1] == '--':
153 sys.exit("missing command after '--'")
158 sys.exit('command not found: ' + cmd[0])
175 sys.exit(f"Failed to parse group file '{group_local}': {e}")
184 sys.exit(str(e))
195 sys.exit(1)
H A Dnbd-fault-injector.py46 import sys
76 sys.stderr.write(msg + '\n')
77 sys.exit(1)
115 sys.stdout.flush()
116 sys.exit(0)
248 sys.stdout.flush() # another process may be waiting, show message now
252sys.stderr.write('usage: %s [--classic-negotiation] <tcp-port>|<unix-path> <config-file>\n' % args…
253 sys.stderr.write('Run an fault injector NBD server with rules defined in a config file.\n')
254 sys.exit(1)
270 sys.exit(main(sys.argv))
H A Dqed.py13 import sys
33 sys.stderr.write(msg + '\n')
34 sys.exit(1)
211 print('Usage: %s <file> <cmd> [<arg>, ...]' % sys.argv[0])
216 sys.exit(1)
219 if len(sys.argv) < 3:
221 filename, cmd = sys.argv[1:3]
229 globals()[cmd](qed, *sys.argv[3:])
231 sys.stderr.write(globals()[cmd].__doc__ + '\n')
232 sys.exit(1)
/qemu/tests/image-fuzzer/
H A Drunner.py21 import sys
337 sys.exit(1)
345 sys.exit(1)
360 sys.exit(1)
371 sys.exit()
377 "Reason: %s" % e, file=sys.stderr)
378 sys.exit(1)
393 sys.exit(1)
398 sys.exit(1)
415 sys.exit(1)
[all …]
/qemu/hw/block/
H A Dfdc-sysbus.c88 FDCtrlSysBus *sys = SYSBUS_FDC(d); in fdctrl_external_reset_sysbus() local
89 FDCtrl *s = &sys->state; in fdctrl_external_reset_sysbus()
103 FDCtrlSysBus *sys; in fdctrl_init_sysbus() local
106 sys = SYSBUS_FDC(dev); in fdctrl_init_sysbus()
119 FDCtrlSysBus *sys; in sun4m_fdctrl_init() local
123 sys = SYSBUS_FDC(dev); in sun4m_fdctrl_init()
136 FDCtrlSysBus *sys = SYSBUS_FDC(obj); in sysbus_fdc_common_instance_init() local
137 FDCtrl *fdctrl = &sys->state; in sysbus_fdc_common_instance_init()
155 sysbus_init_mmio(sbd, &sys->iomem); in sysbus_fdc_common_instance_init()
163 FDCtrlSysBus *sys = SYSBUS_FDC(dev); in sysbus_fdc_realize() local
[all …]
/qemu/tests/qapi-schema/
H A Dtest-qapi.py18 import sys
148 sys.stdout = StringIO()
160 sys.stdout.close()
161 sys.stdout = sys.__stdout__
171 file=sys.stderr)
178 file=sys.stderr)
181 sys.stdout.writelines(out_diff)
197 file=sys.stderr)
221 sys.exit(status)
225 main(sys.argv)
[all …]
/qemu/scripts/oss-fuzz/
H A Dreorder_fuzzer_qtest_trace.py65 import sys
76 sys.exit("Usage: {} /path/to/qtest_log_output".format((sys.argv[0])))
91 sys.stderr.write("Warning: Likely double fetch on line"
101 if len(sys.argv) == 1:
103 main(sys.argv[1])
/qemu/.gitlab-ci.d/
H A Dcheck-patch.py11 import sys
15 if len(sys.argv) >= 2:
16 namespace = sys.argv[1]
43 sys.exit(0)
53 sys.exit(1)
55 sys.exit(0)
H A Dcheck-dco.py11 import sys
15 if len(sys.argv) >= 2:
16 namespace = sys.argv[1]
91 sys.exit(1)
93 sys.exit(0)
/qemu/scripts/simplebench/
H A Dbench_block_job.py22 import sys
28 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
146 import sys
148 if len(sys.argv) < 4:
151 '<qemu binary path and arguments>'.format(sys.argv[0]))
154 res = bench_block_job(sys.argv[1], json.loads(sys.argv[2]), sys.argv[3:])
H A Dbench_write_req.py25 import sys
47 sys.stderr.write('qemu-img received signal %i: %s\n'
73 sys.exit(1)
78 sys.exit(1)
117 if len(sys.argv) < 4:
118 program = os.path.basename(sys.argv[0])
/qemu/tests/lcitool/
H A Drefresh15 import sys
20 if len(sys.argv) != 1:
21 print("syntax: %s" % sys.argv[0], file=sys.stderr)
22 sys.exit(1)
245 sys.exit(0)
247 print(str(ex), file=sys.stderr)
248 sys.exit(1)
/qemu/scripts/modules/
H A Dmodule_block.py13 import sys
86 output_file = sys.argv[1]
90 for filename in sys.argv[2:]:
94 print("File " + filename + " does not exist.", file=sys.stderr)
95 sys.exit(1)
99 sys.exit(0)
/qemu/python/qemu/utils/
H A Dqemu_ga_client.py44 import sys
193 sys.exit(1)
202 sys.exit(1)
206 sys.exit(1)
241 sys.exit(1)
249 sys.exit(1)
253 sys.exit(1)
281 sys.exit(1)
286 sys.exit(1)
294 sys.exit(1)
[all …]
/qemu/python/scripts/
H A Dmkvenv.py76 import sys
129 return sys.prefix != sys.base_prefix
203 if sys.version_info >= (3, 12):
217 if sys.platform == "win32":
222 "python%d.%d" % sys.version_info[:2],
374 file=sys.stderr,
447 python_path = sys.executable
566 if sys.base_prefix in site.PREFIXES:
605 sys.executable,
718 if sys.version_info < (3, 11):
[all …]
/qemu/python/qemu/qmp/
H A Dutil.py14 import sys
98 if sys.version_info >= (3, 7):
114 if sys.version_info >= (3, 7):
129 if sys.version_info >= (3, 7):
159 if sys.version_info >= (3, 7):
212 output = "".join(traceback.format_exception(*sys.exc_info()))
/qemu/scripts/codeconverter/
H A Dconverter.py12 import sys
63 print("Invalid pattern name: %s" % (c), file=sys.stderr)
64 print("Valid patterns:", file=sys.stderr)
65 print(PATTERN_HELP, file=sys.stderr)
66 sys.exit(1)
81 f.write_to_file(sys.stdout)
82 sys.stdout.flush()

1234567