Draft: Dtrace on linux
This is a rebase of !5529 (closed).
The hadrian changes need careful review from someone more familiar.
Thre release notes likely need an edit.
I've added a test, which passes on my machine. However I've commented it out as it requires bpftrace
and sudo. Let me know what I should do about it.
I've succeeded in seeing events in perf
, it required adding stage1.rts.ghc.link.opts += -optl-Wl,--build-id
to hadrian.settings.
cc @adamse
Edited by Matthew Pickering