2009-04-10 00:26:18 -06:00
|
|
|
#ifndef _TRACE_KMEM_H
|
|
|
|
#define _TRACE_KMEM_H
|
2008-08-10 11:14:03 -06:00
|
|
|
|
2009-03-23 07:12:24 -06:00
|
|
|
#include <linux/tracepoint.h>
|
2008-08-10 11:14:03 -06:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2009-03-23 07:12:24 -06:00
|
|
|
DECLARE_TRACE(kmalloc,
|
|
|
|
TP_PROTO(unsigned long call_site,
|
|
|
|
const void *ptr,
|
|
|
|
size_t bytes_req,
|
|
|
|
size_t bytes_alloc,
|
|
|
|
gfp_t gfp_flags),
|
|
|
|
TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags));
|
|
|
|
DECLARE_TRACE(kmem_cache_alloc,
|
|
|
|
TP_PROTO(unsigned long call_site,
|
|
|
|
const void *ptr,
|
|
|
|
size_t bytes_req,
|
|
|
|
size_t bytes_alloc,
|
|
|
|
gfp_t gfp_flags),
|
|
|
|
TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags));
|
|
|
|
DECLARE_TRACE(kmalloc_node,
|
|
|
|
TP_PROTO(unsigned long call_site,
|
|
|
|
const void *ptr,
|
|
|
|
size_t bytes_req,
|
|
|
|
size_t bytes_alloc,
|
|
|
|
gfp_t gfp_flags,
|
|
|
|
int node),
|
|
|
|
TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags, node));
|
|
|
|
DECLARE_TRACE(kmem_cache_alloc_node,
|
|
|
|
TP_PROTO(unsigned long call_site,
|
|
|
|
const void *ptr,
|
|
|
|
size_t bytes_req,
|
|
|
|
size_t bytes_alloc,
|
|
|
|
gfp_t gfp_flags,
|
|
|
|
int node),
|
|
|
|
TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags, node));
|
|
|
|
DECLARE_TRACE(kfree,
|
|
|
|
TP_PROTO(unsigned long call_site, const void *ptr),
|
|
|
|
TP_ARGS(call_site, ptr));
|
|
|
|
DECLARE_TRACE(kmem_cache_free,
|
|
|
|
TP_PROTO(unsigned long call_site, const void *ptr),
|
|
|
|
TP_ARGS(call_site, ptr));
|
2008-08-10 11:14:03 -06:00
|
|
|
|
2009-04-10 00:26:18 -06:00
|
|
|
#endif /* _TRACE_KMEM_H */
|