Merge branch 'v6v7' into devel
[linux/fpc-iii.git] / include / trace / events / bkl.h
blob1af72dc2427881d203c1984081e4691d23bc0c30
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM bkl
4 #if !defined(_TRACE_BKL_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_BKL_H
7 #include <linux/tracepoint.h>
9 TRACE_EVENT(lock_kernel,
11 TP_PROTO(const char *func, const char *file, int line),
13 TP_ARGS(func, file, line),
15 TP_STRUCT__entry(
16 __field( int, depth )
17 __field_ext( const char *, func, FILTER_PTR_STRING )
18 __field_ext( const char *, file, FILTER_PTR_STRING )
19 __field( int, line )
22 TP_fast_assign(
23 /* We want to record the lock_depth after lock is acquired */
24 __entry->depth = current->lock_depth + 1;
25 __entry->func = func;
26 __entry->file = file;
27 __entry->line = line;
30 TP_printk("depth=%d file:line=%s:%d func=%s()", __entry->depth,
31 __entry->file, __entry->line, __entry->func)
34 TRACE_EVENT(unlock_kernel,
36 TP_PROTO(const char *func, const char *file, int line),
38 TP_ARGS(func, file, line),
40 TP_STRUCT__entry(
41 __field(int, depth )
42 __field(const char *, func )
43 __field(const char *, file )
44 __field(int, line )
47 TP_fast_assign(
48 __entry->depth = current->lock_depth;
49 __entry->func = func;
50 __entry->file = file;
51 __entry->line = line;
54 TP_printk("depth=%d file:line=%s:%d func=%s()", __entry->depth,
55 __entry->file, __entry->line, __entry->func)
58 #endif /* _TRACE_BKL_H */
60 /* This part must be outside protection */
61 #include <trace/define_trace.h>