~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/trace/events/page_pool.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #undef TRACE_SYSTEM
  3 #define TRACE_SYSTEM page_pool
  4 
  5 #if !defined(_TRACE_PAGE_POOL_H) || defined(TRACE_HEADER_MULTI_READ)
  6 #define      _TRACE_PAGE_POOL_H
  7 
  8 #include <linux/types.h>
  9 #include <linux/tracepoint.h>
 10 
 11 #include <trace/events/mmflags.h>
 12 #include <net/page_pool/types.h>
 13 
 14 TRACE_EVENT(page_pool_release,
 15 
 16         TP_PROTO(const struct page_pool *pool,
 17                  s32 inflight, u32 hold, u32 release),
 18 
 19         TP_ARGS(pool, inflight, hold, release),
 20 
 21         TP_STRUCT__entry(
 22                 __field(const struct page_pool *, pool)
 23                 __field(s32,    inflight)
 24                 __field(u32,    hold)
 25                 __field(u32,    release)
 26                 __field(u64,    cnt)
 27         ),
 28 
 29         TP_fast_assign(
 30                 __entry->pool           = pool;
 31                 __entry->inflight       = inflight;
 32                 __entry->hold           = hold;
 33                 __entry->release        = release;
 34                 __entry->cnt            = pool->destroy_cnt;
 35         ),
 36 
 37         TP_printk("page_pool=%p inflight=%d hold=%u release=%u cnt=%llu",
 38                 __entry->pool, __entry->inflight, __entry->hold,
 39                 __entry->release, __entry->cnt)
 40 );
 41 
 42 TRACE_EVENT(page_pool_state_release,
 43 
 44         TP_PROTO(const struct page_pool *pool,
 45                  netmem_ref netmem, u32 release),
 46 
 47         TP_ARGS(pool, netmem, release),
 48 
 49         TP_STRUCT__entry(
 50                 __field(const struct page_pool *,       pool)
 51                 __field(unsigned long,                  netmem)
 52                 __field(u32,                            release)
 53                 __field(unsigned long,                  pfn)
 54         ),
 55 
 56         TP_fast_assign(
 57                 __entry->pool           = pool;
 58                 __entry->netmem         = (__force unsigned long)netmem;
 59                 __entry->release        = release;
 60                 __entry->pfn            = netmem_to_pfn(netmem);
 61         ),
 62 
 63         TP_printk("page_pool=%p netmem=%p pfn=0x%lx release=%u",
 64                   __entry->pool, (void *)__entry->netmem,
 65                   __entry->pfn, __entry->release)
 66 );
 67 
 68 TRACE_EVENT(page_pool_state_hold,
 69 
 70         TP_PROTO(const struct page_pool *pool,
 71                  netmem_ref netmem, u32 hold),
 72 
 73         TP_ARGS(pool, netmem, hold),
 74 
 75         TP_STRUCT__entry(
 76                 __field(const struct page_pool *,       pool)
 77                 __field(unsigned long,                  netmem)
 78                 __field(u32,                            hold)
 79                 __field(unsigned long,                  pfn)
 80         ),
 81 
 82         TP_fast_assign(
 83                 __entry->pool   = pool;
 84                 __entry->netmem = (__force unsigned long)netmem;
 85                 __entry->hold   = hold;
 86                 __entry->pfn    = netmem_to_pfn(netmem);
 87         ),
 88 
 89         TP_printk("page_pool=%p netmem=%p pfn=0x%lx hold=%u",
 90                   __entry->pool, (void *)__entry->netmem,
 91                   __entry->pfn, __entry->hold)
 92 );
 93 
 94 TRACE_EVENT(page_pool_update_nid,
 95 
 96         TP_PROTO(const struct page_pool *pool, int new_nid),
 97 
 98         TP_ARGS(pool, new_nid),
 99 
100         TP_STRUCT__entry(
101                 __field(const struct page_pool *, pool)
102                 __field(int,                      pool_nid)
103                 __field(int,                      new_nid)
104         ),
105 
106         TP_fast_assign(
107                 __entry->pool           = pool;
108                 __entry->pool_nid       = pool->p.nid;
109                 __entry->new_nid        = new_nid;
110         ),
111 
112         TP_printk("page_pool=%p pool_nid=%d new_nid=%d",
113                   __entry->pool, __entry->pool_nid, __entry->new_nid)
114 );
115 
116 #endif /* _TRACE_PAGE_POOL_H */
117 
118 /* This part must be outside protection */
119 #include <trace/define_trace.h>
120 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php