Skip to content

Commit b8abb15

Browse files
committed
gem5: trace use -ExecSymbol
1 parent 02e294c commit b8abb15

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7196,7 +7196,7 @@ Breakdown:
71967196
* `25007500`: time count in some unit. Note how the microops execute at further timestamps.
71977197
* `system.cpu`: distinguishes between CPUs when there are more than one
71987198
* `T0`: thread number. TODO: link:https://superuser.com/questions/133082/hyper-threading-and-dual-core-whats-the-difference/995858#995858[hyperthread]? How to play with it?
7199-
* `@start_kernel`: we are in the `start_kernel` function. Awesome feature! Implemented with libelf https://sourceforge.net/projects/elftoolchain/ copy pasted in-tree `ext/libelf`. To get raw addresses, remove the `ExecSymbol`, which is enabled by `Exec`.
7199+
* `@start_kernel`: we are in the `start_kernel` function. Awesome feature! Implemented with libelf https://sourceforge.net/projects/elftoolchain/ copy pasted in-tree `ext/libelf`. To get raw addresses, remove the `ExecSymbol`, which is enabled by `Exec`. This can be done with `Exec,-ExecSymbol`.
72007200
* `.1` as in `@start_kernel.1`: index of the microop
72017201
* `stp`: instruction disassembly. Seems to use `.isa` files dispersed per arch, which is an in house format: http://gem5.org/ISA_description_system
72027202
* `strxi_uop x29, [ureg0]`: microop disassembly.

build-usage.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
Mnemonic: `fast`.
2727
|`-g` | |Enable gem5 build or force its rebuild.
2828
|`-h` | |Show this help message.
29-
|`-L` |`VARIANT` |Linux kernel build variant.
29+
|`-L` |`VARIANT` |Linux kernel build variant.
3030
|`-I` | |Enable initramfs for the current build.
3131
|`-i` | |Enable initrd for the current build.
3232
|`-K` |`KERNEL_CONFIG_FILE` |Use `KERNEL_CONFIG_FILE` as the exact Linux kernel

qemu

Submodule qemu updated from f750236 to c42634d

trace-boot

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ done
1515
shift "$(($OPTIND - 1))"
1616
set_common_vars "$arch" "$gem5"
1717
if "$gem5"; then
18-
# Exactly what Exec enabled, but without ExecSymbol and ExecMicro.
19-
time ./run -a aarch64 -E 'm5 exit' -g -T 'ExecEnable,ExecTicks,ExecOpClass,ExecThread,ExecEffAddr,ExecResult,ExecMacro,ExecFaulting,ExecUser,ExecKernel' "$@"
18+
time ./run -a "$arch" -E 'm5 exit' -g -T 'Exec,-ExecSymbol,-ExecMicro' "$@"
2019
else
2120
time ./run -a "$arch" -e 'init=/poweroff.out' -T exec_tb "$@"
2221
time ./qemu-trace2txt -a "$arch"

0 commit comments

Comments
 (0)