bcc
bcc copied to clipboard
Is there a way to know the exact instruction count of a probe?
trafficstars
Our BCC C code runs on 4.14 kernels or newer, whose probes still have the limit of 4096 instructions.
Is there a way to check the instruction count of the probe before attaching them? So that we could report failure to userspace before trying to attaching the probes?
Maybe you can use bpf_function_size:
https://github.com/iovisor/bcc/blob/5f44839aecabe57f5146a457e5dec763ccb068e3/src/python/bcc/init.py#L515