2 #define TRACE_SYSTEM bkl
4 #if !defined(_TRACE_BKL_H) || defined(TRACE_HEADER_MULTI_READ)
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
),
17 __field_ext( const char *, func
, FILTER_PTR_STRING
)
18 __field_ext( const char *, file
, FILTER_PTR_STRING
)
23 /* We want to record the lock_depth after lock is acquired */
24 __entry
->depth
= current
->lock_depth
+ 1;
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
),
42 __field(const char *, func
)
43 __field(const char *, file
)
48 __entry
->depth
= current
->lock_depth
;
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>