mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
02af61bb50
Impact: refactor code for future changes Current kmemtrace.h is used both as header file of kmemtrace and kmem's tracepoints definition. Tracepoints' definition file may be used by other code, and should only have definition of tracepoint. We can separate include/trace/kmemtrace.h into 2 files: include/linux/kmemtrace.h: header file for kmemtrace include/trace/kmem.h: definition of kmem tracepoints Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Acked-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> Acked-by: Pekka Enberg <penberg@cs.helsinki.fi> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <49DEE68A.5040902@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
26 lines
378 B
C
26 lines
378 B
C
/*
|
|
* Copyright (C) 2008 Eduard - Gabriel Munteanu
|
|
*
|
|
* This file is released under GPL version 2.
|
|
*/
|
|
|
|
#ifndef _LINUX_KMEMTRACE_H
|
|
#define _LINUX_KMEMTRACE_H
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#include <trace/kmem.h>
|
|
|
|
#ifdef CONFIG_KMEMTRACE
|
|
extern void kmemtrace_init(void);
|
|
#else
|
|
static inline void kmemtrace_init(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
#endif /* _LINUX_KMEMTRACE_H */
|
|
|