mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Mathieu Desnoyers](/assets/img/avatar_default.png)
Impact: API *CHANGE*. Must update all tracepoint users. Add DEFINE_TRACE() to tracepoints to let them declare the tracepoint structure in a single spot for all the kernel. It helps reducing memory consumption, especially when declaring a lot of tracepoints, e.g. for kmalloc tracing. *API CHANGE WARNING*: now, DECLARE_TRACE() must be used in headers for tracepoint declarations rather than DEFINE_TRACE(). This is the sane way to do it. The name previously used was misleading. Updates scheduler instrumentation to follow this API change. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Ingo Molnar <mingo@elte.hu>
13 lines
319 B
C
13 lines
319 B
C
#ifndef _TP_SAMPLES_TRACE_H
|
|
#define _TP_SAMPLES_TRACE_H
|
|
|
|
#include <linux/proc_fs.h> /* for struct inode and struct file */
|
|
#include <linux/tracepoint.h>
|
|
|
|
DECLARE_TRACE(subsys_event,
|
|
TPPROTO(struct inode *inode, struct file *file),
|
|
TPARGS(inode, file));
|
|
DECLARE_TRACE(subsys_eventb,
|
|
TPPROTO(void),
|
|
TPARGS());
|
|
#endif
|