Stop QEMU from creating trace- files by disabling trace from default build

Shame but it's way too annoying.
This commit is contained in:
Ciro Santilli
2025-04-29 02:54:40 +01:00
parent ab0aedf744
commit bcfea26ca1
2 changed files with 11 additions and 1 deletions

View File

@ -10891,6 +10891,14 @@ TODO test PyCharm: https://stackoverflow.com/questions/51982735/writing-gem5-con
=== Tracing
The tracing described in this section requires rebuilding QEMU with:
....
./build-qemu --extra-config-args=--enable-trace-backends=simple
....
Ideally we would like to use this build option by default, but unfortunately starting on some QEMU version this started generating `trace-<pid>` files for every run which is far too annoying when you don't want traces, and we don't know how to turn it off at runtime or make the files be created in some other directory.
QEMU can log several different events.
The most interesting are events which show instructions that QEMU ran, for which we have a helper:

View File

@ -38,7 +38,9 @@ Extra arguments to pass to configure
self.sh.run_cmd(
[
os.path.join(self.env['qemu_source_dir'], 'configure'), LF,
'--enable-trace-backends=simple', LF,
# Ideally we'd want this, but it creates trace-<pid>
# files on cwd which is too annoying.
#'--enable-trace-backends=simple', LF,
'--target-list={}'.format(target_list), LF,
'--enable-sdl', LF,
] +