• Jesper Dangaard Brouer's avatar
    xdp: add tracepoints for XDP mem · f033b688
    Jesper Dangaard Brouer authored
    These tracepoints make it easier to troubleshoot XDP mem id disconnect.
    
    The xdp:mem_disconnect tracepoint cannot be replaced via kprobe. It is
    placed at the last stable place for the pointer to struct xdp_mem_allocator,
    just before it's scheduled for RCU removal. It also extract info on
    'safe_to_remove' and 'force'.
    
    Detailed info about in-flight pages is not available at this layer. The next
    patch will added tracepoints needed at the page_pool layer for this.
    Signed-off-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f033b688
xdp.h 9.56 KB