1
#ifndef _LTTNG_TRACE_LOCKDEP_H
2
#define _LTTNG_TRACE_LOCKDEP_H
4
#include <linux/lockdep.h>
5
#include <linux/tracepoint.h>
8
* lockdep tracing must be very careful with respect to reentrancy.
10
* It should not use immediate values for activation because it involves
11
* traps called when the code patching is done.
13
DECLARE_TRACE(lockdep_hardirqs_on,
14
TP_PROTO(unsigned long retaddr),
16
DECLARE_TRACE(lockdep_hardirqs_off,
17
TP_PROTO(unsigned long retaddr),
19
DECLARE_TRACE(lockdep_softirqs_on,
20
TP_PROTO(unsigned long retaddr),
22
DECLARE_TRACE(lockdep_softirqs_off,
23
TP_PROTO(unsigned long retaddr),
26
/* FIXME : some duplication with lockdep TRACE EVENTs */
27
DECLARE_TRACE(lockdep_lock_acquire,
28
TP_PROTO(unsigned long retaddr, unsigned int subclass,
29
struct lockdep_map *lock, int trylock, int read,
31
TP_ARGS(retaddr, subclass, lock, trylock, read, hardirqs_off));
32
DECLARE_TRACE(lockdep_lock_release,
33
TP_PROTO(unsigned long retaddr, struct lockdep_map *lock, int nested),
34
TP_ARGS(retaddr, lock, nested));
37
#endif /* _LTTNG_TRACE_LOCKDEP_H */