Rev 2462 | Rev 3578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2462 | Rev 3068 | ||
---|---|---|---|
Line 108... | Line 108... | ||
108 | #define DEADLOCK_THRESHOLD 100000000 |
108 | #define DEADLOCK_THRESHOLD 100000000 |
109 | #define DEADLOCK_PROBE_INIT(pname) count_t pname = 0 |
109 | #define DEADLOCK_PROBE_INIT(pname) count_t pname = 0 |
110 | #define DEADLOCK_PROBE(pname, value) \ |
110 | #define DEADLOCK_PROBE(pname, value) \ |
111 | if ((pname)++ > (value)) { \ |
111 | if ((pname)++ > (value)) { \ |
112 | (pname) = 0; \ |
112 | (pname) = 0; \ |
113 | printf("Deadlock probe %s: exceeded threshold %d\n", \ |
113 | printf("Deadlock probe %s: exceeded threshold %u\n", \ |
114 | "cpu%d: function=%s, line=%d\n", \ |
114 | "cpu%u: function=%s, line=%u\n", \ |
115 | #pname, (value), CPU->id, __func__, __LINE__); \ |
115 | #pname, (value), CPU->id, __func__, __LINE__); \ |
116 | } |
116 | } |
117 | #else |
117 | #else |
118 | #define DEADLOCK_PROBE_INIT(pname) |
118 | #define DEADLOCK_PROBE_INIT(pname) |
119 | #define DEADLOCK_PROBE(pname, value) |
119 | #define DEADLOCK_PROBE(pname, value) |