Skip to content

Enable guest tracing #695

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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
25fab53
[hyperlight_host] Restrict OutBHandler{Caller,Wrapper} to pub(crate)
syntactically Oct 19, 2024
886a1a0
[hyperlight_host] Plumb a trace file descriptor around
syntactically Oct 19, 2024
571748d
[hyperlight_host/exe] Allow load() to consume the exe_info
syntactically Dec 5, 2024
48867e5
[hyperlight_host/trace] Add HV interface for reading trace registers
syntactically Oct 19, 2024
1959883
[hyperlight_host/trace] Support collecting guest stacktraces
syntactically Dec 5, 2024
b64e19b
allow dead code for unused functions triggered by previous commit
dblnz Jul 3, 2025
90f45f4
Add trace support for recording memory allocations and frees
syntactically Dec 6, 2024
c764152
Add basic utility for dumping logs and memory statistics from traces
syntactically Dec 6, 2024
0b5e222
add license header to trace_dump
dblnz Jul 7, 2025
2cc89fb
[hyperlight-guest-tracing] Add crates that generate guest tracing rec…
dblnz Jul 8, 2025
d6e1e67
[hyperlight_host/trace] Handle the trace records sent by a guest
dblnz Jul 8, 2025
bb06585
[hyperlight_guest] Add traces in the guest to track the execution timing
dblnz Jul 8, 2025
f65e79c
Update sample guests to accept features that enable tracing
dblnz Jul 8, 2025
46f00fe
Update utility for dumping logs to support the traces
dblnz Jul 8, 2025
c8cfbd4
Add documentation on how to use the tracing functionality
dblnz Jul 8, 2025
add9621
Fix clippy warnings for unrelated work
dblnz Jul 8, 2025
e0bf4e1
Fix clippy warning of method missing # Safety section
dblnz Jul 9, 2025
5cd13da
[hyperlight-guest-tracing] fixup to add tests and improve macro
dblnz Jul 16, 2025
84aced7
[hyperlight-host/trace] Fixup: update the way the TSC frequency is ca…
dblnz Jul 16, 2025
8af861c
[ci] fixup: Add checks for tracing features and run tracing tests
dblnz Jul 16, 2025
61feafb
fixup: fix unrelated clippy warnings
dblnz Jul 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/dep_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ jobs:
cargo check -p hyperlight-host --features crashdump
cargo check -p hyperlight-host --features print_debug
cargo check -p hyperlight-host --features gdb
cargo check -p hyperlight-host --features trace_guest,unwind_guest,mem_profile

# without any features
just test-compilation-no-default-features ${{ matrix.config }}
Expand Down Expand Up @@ -169,6 +170,13 @@ jobs:
RUST_LOG: debug
run: just test-rust-crashdump ${{ matrix.config }} ${{ matrix.hypervisor == 'mshv3' && 'mshv3' || ''}}

- name: Run Rust Tracing tests - linux
if: runner.os == 'Linux'
env:
CARGO_TERM_COLOR: always
RUST_LOG: debug
run: just test-rust-tracing ${{ matrix.config }} ${{ matrix.hypervisor == 'mshv3' && 'mshv3' || ''}}

- name: Download benchmarks from "latest"
run: just bench-download ${{ runner.os }} ${{ matrix.hypervisor }} ${{ matrix.cpu}} dev-latest # compare to prerelease
env:
Expand Down
Loading
Loading