Zhaolei | 02af61b | 2009-04-10 14:26:18 +0800 | [diff] [blame^] | 1 | #ifndef _TRACE_KMEM_H |
| 2 | #define _TRACE_KMEM_H |
Eduard - Gabriel Munteanu | b9ce08c | 2008-08-10 20:14:03 +0300 | [diff] [blame] | 3 | |
Eduard - Gabriel Munteanu | ca2b84cb | 2009-03-23 15:12:24 +0200 | [diff] [blame] | 4 | #include <linux/tracepoint.h> |
Eduard - Gabriel Munteanu | b9ce08c | 2008-08-10 20:14:03 +0300 | [diff] [blame] | 5 | #include <linux/types.h> |
Eduard - Gabriel Munteanu | b9ce08c | 2008-08-10 20:14:03 +0300 | [diff] [blame] | 6 | |
Eduard - Gabriel Munteanu | ca2b84cb | 2009-03-23 15:12:24 +0200 | [diff] [blame] | 7 | DECLARE_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)); |
| 14 | DECLARE_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)); |
| 21 | DECLARE_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)); |
| 29 | DECLARE_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)); |
| 37 | DECLARE_TRACE(kfree, |
| 38 | TP_PROTO(unsigned long call_site, const void *ptr), |
| 39 | TP_ARGS(call_site, ptr)); |
| 40 | DECLARE_TRACE(kmem_cache_free, |
| 41 | TP_PROTO(unsigned long call_site, const void *ptr), |
| 42 | TP_ARGS(call_site, ptr)); |
Eduard - Gabriel Munteanu | b9ce08c | 2008-08-10 20:14:03 +0300 | [diff] [blame] | 43 | |
Zhaolei | 02af61b | 2009-04-10 14:26:18 +0800 | [diff] [blame^] | 44 | #endif /* _TRACE_KMEM_H */ |