janestreet / magic-trace

magic-trace collects and displays high-resolution traces of what a process is doing
https://magic-trace.org
MIT License
4.7k stars 93 forks source link

Allow tracing kernel threads #226

Open Xyene opened 2 years ago

Xyene commented 2 years ago

Currently, tracing them fails because we can't open /proc/$pid/exe, but we can figure out if we're looking at a kernel thread (its parent's PID should be 2), and use vmlinux instead.

hlian commented 2 years ago

@Lilydemi is going to take this issue!

ameya-deshmukh commented 1 year ago

@Xyene is this open to take up? Would love to give it a go.

cgaebel commented 1 year ago

It's open.

ameya-deshmukh commented 1 year ago

Thanks!