aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/kmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/kmem.h')
-rw-r--r--include/trace/kmem.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/trace/kmem.h b/include/trace/kmem.h
new file mode 100644
index 000000000000..24d251928182
--- /dev/null
+++ b/include/trace/kmem.h
@@ -0,0 +1,44 @@
1#ifndef _TRACE_KMEM_H
2#define _TRACE_KMEM_H
3
4#include <linux/tracepoint.h>
5#include <linux/types.h>
6
7DECLARE_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));
43
44#endif /* _TRACE_KMEM_H */