mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
f033b688c1
commit
32c28f7e41
3 changed files with 99 additions and 1 deletions
|
@ -43,6 +43,10 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(fdb_delete);
|
|||
EXPORT_TRACEPOINT_SYMBOL_GPL(br_fdb_update);
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_PAGE_POOL)
|
||||
#include <trace/events/page_pool.h>
|
||||
#endif
|
||||
|
||||
#include <trace/events/neigh.h>
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(neigh_update);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(neigh_update_done);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue