Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve debug log #777

Merged
merged 2 commits into from
Jan 10, 2025
Merged

feat: improve debug log #777

merged 2 commits into from
Jan 10, 2025

Conversation

cebarobot
Copy link
Member

This PR includes two patches, and should be merged by rebase.

feat(debug): make log output simpler

When running emulation for a long time, the trace log file may be too
big. This patch adds a config option to remove color, file path, line
number of Log marco. Also, this patch removes some redundant log for
ref-debug defconfig.

image

feat(log): improve inst trace log format

This patch improves instruction trace log format in the following
aspects:

  • Add privilege mode infomation, which is useful in hypervisor debugging
  • Reduce the space between the instruction's bytes and its assembly
  • Align the operands in the assembly

image

Old instruction trace style

image

When running emulation for a long time, the trace log file may be too
big. This patch adds a config option to remove color, file path, line
number of Log marco. Also, this patch removes some redundant log for
ref-debug defconfig.
This patch improves instruction trace log format in the following
aspects:

- Add privilege mode infomation, which is useful in hypervisor debugging
- Reduce the space between the instruction's bytes and its assembly
- Align the operands in the assembly
@cebarobot cebarobot merged commit fa634b4 into master Jan 10, 2025
7 checks passed
@cebarobot cebarobot deleted the debug-log branch January 10, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants