javierhonduco / lightswitch

CPU profiler for Linux written in Rust
MIT License
7 stars 3 forks source link

Add support for unwinding through vDSO sections #92

Closed javierhonduco closed 1 month ago

javierhonduco commented 1 month ago

Rather than skipping these sections, let's fish out the ELF executable loaded by the kernel and treat it as any other object file. This could be cached but it is not done yet.

Test Plan

Running the following Python script: import time; while True: time.time() Unwinding vDSO works (vdso_encountered: 12)

$ cargo run -- --pids `pidof python3` --sample-freq=127
image