3 # error Do not include this file directly.
4 # error Unless you know what you are doing.
8 #define TRACE_SYSTEM lock
12 TRACE_FORMAT(lock_acquire
,
13 TP_PROTO(struct lockdep_map
*lock
, unsigned int subclass
,
14 int trylock
, int read
, int check
,
15 struct lockdep_map
*next_lock
, unsigned long ip
),
16 TP_ARGS(lock
, subclass
, trylock
, read
, check
, next_lock
, ip
),
17 TP_FMT("%s%s%s", trylock
? "try " : "",
18 read
? "read " : "", lock
->name
)
21 TRACE_FORMAT(lock_release
,
22 TP_PROTO(struct lockdep_map
*lock
, int nested
, unsigned long ip
),
23 TP_ARGS(lock
, nested
, ip
),
24 TP_FMT("%s", lock
->name
)
27 #ifdef CONFIG_LOCK_STAT
29 TRACE_FORMAT(lock_contended
,
30 TP_PROTO(struct lockdep_map
*lock
, unsigned long ip
),
32 TP_FMT("%s", lock
->name
)
35 TRACE_FORMAT(lock_acquired
,
36 TP_PROTO(struct lockdep_map
*lock
, unsigned long ip
),
38 TP_FMT("%s", lock
->name
)