page_pool: add tracepoints for page_pool with details need by XDP
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 18 Jun 2019 13:06:03 +0000 (15:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2019 15:23:13 +0000 (11:23 -0400)
commit32c28f7e413981c7dd4a3ad9bbb1151e4b654261
tree3231f0c5e391c8a08e583697f6cc7715d1b970dc
parentf033b688c1ede5ec78c9a718fa9f0b374049bc31
page_pool: add tracepoints for page_pool with details need by XDP

The xdp tracepoints for mem id disconnect don't carry information about, why
it was not safe_to_remove.  The tracepoint page_pool:page_pool_inflight in
this patch can be used for extract this info for further debugging.

This patchset also adds tracepoint for the pages_state_* release/hold
transitions, including a pointer to the page.  This can be used for stats
about in-flight pages, or used to debug page leakage via keeping track of
page pointer and combining this with kprobe for __put_page().

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/page_pool.h [new file with mode: 0644]
net/core/net-traces.c
net/core/page_pool.c