Idea is to use argdist
to measure latency duration of napi_poll()
which returns number of packet processed (called work). Ratio of execution latency of napi_poll()
to number of packets processed would give me average amount of time it took to process each packet in form of histogram.
I am using following command
argdist -H 'r:c:napi_poll():u64:$latency/$retval#avg time per packet (ns)'
which end up giving me error Failed to attach BPF to kprobe
and in dmesg I get message like Could not insert probe at napi_poll+0: -2
I am just curios why I can not attach kretprobes
to napi_poll()
when similar trick works with net_rx_action()
?