page_pool: extend tracepoint to also include the page PFN
authorJesper Dangaard Brouer <brouer@redhat.com>
Sat, 16 Nov 2019 11:22:48 +0000 (12:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2019 01:03:18 +0000 (17:03 -0800)
commit832ccf6f80cda06ad2373cd1f40291b0183958b4
tree2a814316785aae3350f363e0f510472e30760f1c
parent7c9e69428da39ed761c9d903c4850368fa4ef7bf
page_pool: extend tracepoint to also include the page PFN

The MM tracepoint for page free (called kmem:mm_page_free) doesn't provide
the page pointer directly, instead it provides the PFN (Page Frame Number).
This is annoying when writing a page_pool leak detector in BPF.

This patch change page_pool tracepoints to also provide the PFN.
The page pointer is still provided to allow other kinds of
troubleshooting from BPF.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/page_pool.h