bpftrace on voidlinux

2021-08-24
1 min read

I’m using voidlinux on my laptop and server, so I wanted to start using the current dynamic tracers on Linux as been used to use Dtrace on illumos and FreeBSD, so here is to make it work on voidlinux.

vpm install bpftrace
sudo mount -t debugfs debugfs /sys/kernel/debug

That’s all after that, we are able to list all the probes available.

bpftrace -l

If debugfs is not mounted you will get this error:

 Could not read symbols from /sys/kernel/debug/tracing/available_filter_functions