Kstack doesn't lookup symbols

I’m trying to find all the stacks that call a certain method.

kprobe:md_make_request {
    @[kstack(8)] = count();
}

However, when I run this, the output doesn’t have the symbols.

...
@[
    0xffffffffa028c9e1
    0xffffffff9fedbba6
    0xffffffff9fd22363
    0xffffffff9fd226ee
    0xffffffff9fda9912
    0xffffffff9fc1e912
    0xffffffff9fc1ea8e
    0xffffffff9fd947cd
]: 40300

Other things, like running async-profiler does resolve the symbols so they are there somewhere. Is the invocation wrong? Or do I need to point bpftrace to the System.map file somehow?

System is Linux disk-bench1-dsp-master-5f07 5.4.0-1021-gcp #21~18.04.1-Ubuntu SMP Mon Jul 13 03:31:28 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux. I’ve installed the Ubuntu snap package.

bpftrace v0.10.0-193-g2420 btw

Can you try the docker build just to rule out that this isn’t a snap confinement issue?

It’s a snap confinement issue. It works now, thanks. I’ll open an issue on the snap.