-
Hello, community of cilium/ebpf! Previously I used https://github.com/iovisor/gobpf library, and that library created kprobe through I found out that by default cillium/ebpf is creating kprobes using PMU, and it falls back to the tracefs only if PMU method is not supported: Lines 184 to 199 in aaa9af2 I assume that it is a more modern and proper way of creating kprobe, but could you tell me how I can access to the hit/miss statistic using this approach? Let's say my ebpf program crashed during execution (e.g. referenced invalid memory address): with tracefs method this failed execution will fall under "miss" counter in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's a fair question. As far as I know the kernel currently doesn't expose that kind of information, see #755 (comment) (Thanks to @mmat11 for digging up the necessary information). |
Beta Was this translation helpful? Give feedback.
That's a fair question. As far as I know the kernel currently doesn't expose that kind of information, see #755 (comment)
(Thanks to @mmat11 for digging up the necessary information).