mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Wengang Wang](/assets/img/avatar_default.png)
About one year ago, Wengang Wang tried some first steps to add tracepoints to ocfs2. Hiss original patch is here: http://oss.oracle.com/pipermail/ocfs2-devel/2009-November/005512.html But as Steven Rostedt indicated in his article http://lwn.net/Articles/383362/, we'd better have our trace files resides in fs/ocfs2, so I rewrited the patch using the method Steven mentioned in that article. Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com> Signed-off-by: Tao Ma <boyu.mt@taobao.com>
16 lines
367 B
C
16 lines
367 B
C
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM ocfs2
|
|
|
|
#if !defined(_TRACE_OCFS2_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_OCFS2_H
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
|
|
#endif /* _TRACE_OCFS2_H */
|
|
|
|
/* This part must be outside protection */
|
|
#undef TRACE_INCLUDE_PATH
|
|
#define TRACE_INCLUDE_PATH .
|
|
#define TRACE_INCLUDE_FILE ocfs2_trace
|
|
#include <trace/define_trace.h>
|