Thank you for your reply. Indeed, there are repeated references to some structures defined in virtio_net that are not present in any header files, such as virtnet_info, vring_virtqueue, etc. However, the virtnet_mon module requires the layouts of these structures to be able to track their members.
在 2025-11-28 10:21:29,"Jason Wang" <[email protected]> 写道: >On Thu, Nov 27, 2025 at 11:33 AM Longjun Tang <[email protected]> wrote: >> >> From: Tang Longjun <[email protected]> >> >> track skb and virtqueue through the kprobe start_xmit function >> >> Signed-off-by: Tang Longjun <[email protected]> >> -- > >Can you explain what's the use case for this or why we need to >duplicate virtio-net driver codes here? > >Thanks
