gro: Optimise length comparison in skb_gro_header
[linux-2.6] / include / trace / lockdep_event_types.h
1
2 #ifndef TRACE_FORMAT
3 # error Do not include this file directly.
4 # error Unless you know what you are doing.
5 #endif
6
7 #undef TRACE_SYSTEM
8 #define TRACE_SYSTEM lock
9
10 #ifdef CONFIG_LOCKDEP
11
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)
19         );
20
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)
25         );
26
27 #ifdef CONFIG_LOCK_STAT
28
29 TRACE_FORMAT(lock_contended,
30         TP_PROTO(struct lockdep_map *lock, unsigned long ip),
31         TP_ARGS(lock, ip),
32         TP_FMT("%s", lock->name)
33         );
34
35 TRACE_FORMAT(lock_acquired,
36         TP_PROTO(struct lockdep_map *lock, unsigned long ip),
37         TP_ARGS(lock, ip),
38         TP_FMT("%s", lock->name)
39         );
40
41 #endif
42 #endif
43
44 #undef TRACE_SYSTEM