2 #define TRACE_SYSTEM kmem
4 #if !defined(_TRACE_KMEM_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/types.h>
19 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags),
22 __field(
unsigned long, call_site )
33 __entry->bytes_alloc = bytes_alloc;
37 TP_printk(
"call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s",
47 TP_PROTO(
unsigned long call_site,
const void *ptr,
48 size_t bytes_req,
size_t bytes_alloc,
gfp_t gfp_flags),
50 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags)
55 TP_PROTO(
unsigned long call_site,
const void *ptr,
56 size_t bytes_req,
size_t bytes_alloc,
gfp_t gfp_flags),
58 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags)
70 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags, node),
73 __field(
unsigned long, call_site )
85 __entry->bytes_alloc = bytes_alloc;
90 TP_printk(
"call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s node=%d",
101 TP_PROTO(
unsigned long call_site,
const void *ptr,
102 size_t bytes_req,
size_t bytes_alloc,
103 gfp_t gfp_flags,
int node),
105 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags, node)
110 TP_PROTO(
unsigned long call_site,
const void *ptr,
111 size_t bytes_req,
size_t bytes_alloc,
112 gfp_t gfp_flags,
int node),
114 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags, node)
119 TP_PROTO(
unsigned long call_site,
const void *ptr),
124 __field(
unsigned long, call_site )
129 __entry->call_site = call_site;
138 TP_PROTO(
unsigned long call_site,
const void *ptr),
145 TP_PROTO(
unsigned long call_site,
const void *ptr),
174 TP_PROTO(
struct page *page,
int cold),
188 TP_printk(
"page=%p pfn=%lu order=0 cold=%d",
196 TP_PROTO(
struct page *page,
unsigned int order,
197 gfp_t gfp_flags,
int migratetype),
199 TP_ARGS(page, order, gfp_flags, migratetype),
211 __entry->gfp_flags = gfp_flags;
212 __entry->migratetype = migratetype;
215 TP_printk(
"page=%p pfn=%lu order=%d migratetype=%d gfp_flags=%s",
225 TP_PROTO(
struct page *page,
unsigned int order,
int migratetype),
227 TP_ARGS(page, order, migratetype),
238 __entry->migratetype = migratetype;
241 TP_printk(
"page=%p pfn=%lu order=%u migratetype=%d percpu_refill=%d",
251 TP_PROTO(
struct page *page,
unsigned int order,
int migratetype),
253 TP_ARGS(page, order, migratetype)
258 TP_PROTO(
struct page *page,
unsigned int order,
int migratetype),
260 TP_ARGS(page, order, migratetype),
262 TP_printk(
"page=%p pfn=%lu order=%d migratetype=%d",
270 int alloc_order,
int fallback_order,
271 int alloc_migratetype,
int fallback_migratetype),
274 alloc_order, fallback_order,
275 alloc_migratetype, fallback_migratetype),
281 __field(
int, alloc_migratetype )
282 __field(
int, fallback_migratetype )
287 __entry->alloc_order = alloc_order;
288 __entry->fallback_order = fallback_order;
289 __entry->alloc_migratetype = alloc_migratetype;
290 __entry->fallback_migratetype = fallback_migratetype;
293 TP_printk(
"page=%p pfn=%lu alloc_order=%d fallback_order=%d pageblock_order=%d alloc_migratetype=%d fallback_migratetype=%d fragmenting=%d change_ownership=%d",