tracing: Document the event tracing system
[safe/jmp/linux-2.6] / include / trace / kmem.h
1 #ifndef _TRACE_KMEM_H
2 #define _TRACE_KMEM_H
3
4 #include <linux/tracepoint.h>
5 #include <linux/types.h>
6
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));
43
44 #endif /* _TRACE_KMEM_H */