blob: 24d251928182c38949f1efb484baebaf94e7937b [file] [log] [blame]
Zhaolei02af61b2009-04-10 14:26:18 +08001#ifndef _TRACE_KMEM_H
2#define _TRACE_KMEM_H
Eduard - Gabriel Munteanub9ce08c2008-08-10 20:14:03 +03003
Eduard - Gabriel Munteanuca2b84cb2009-03-23 15:12:24 +02004#include <linux/tracepoint.h>
Eduard - Gabriel Munteanub9ce08c2008-08-10 20:14:03 +03005#include <linux/types.h>
Eduard - Gabriel Munteanub9ce08c2008-08-10 20:14:03 +03006
Eduard - Gabriel Munteanuca2b84cb2009-03-23 15:12:24 +02007DECLARE_TRACE(kmalloc,
8 TP_PROTO(unsigned long call_site,
9 const void *ptr,
10 size_t bytes_req,
11 size_t bytes_alloc,
12 gfp_t gfp_flags),
13 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags));
14DECLARE_TRACE(kmem_cache_alloc,
15 TP_PROTO(unsigned long call_site,
16 const void *ptr,
17 size_t bytes_req,
18 size_t bytes_alloc,
19 gfp_t gfp_flags),
20 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags));
21DECLARE_TRACE(kmalloc_node,
22 TP_PROTO(unsigned long call_site,
23 const void *ptr,
24 size_t bytes_req,
25 size_t bytes_alloc,
26 gfp_t gfp_flags,
27 int node),
28 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags, node));
29DECLARE_TRACE(kmem_cache_alloc_node,
30 TP_PROTO(unsigned long call_site,
31 const void *ptr,
32 size_t bytes_req,
33 size_t bytes_alloc,
34 gfp_t gfp_flags,
35 int node),
36 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags, node));
37DECLARE_TRACE(kfree,
38 TP_PROTO(unsigned long call_site, const void *ptr),
39 TP_ARGS(call_site, ptr));
40DECLARE_TRACE(kmem_cache_free,
41 TP_PROTO(unsigned long call_site, const void *ptr),
42 TP_ARGS(call_site, ptr));
Eduard - Gabriel Munteanub9ce08c2008-08-10 20:14:03 +030043
Zhaolei02af61b2009-04-10 14:26:18 +080044#endif /* _TRACE_KMEM_H */