Rev 2183 | Rev 3578 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2183 | Rev 2462 | ||
---|---|---|---|
Line 110... | Line 110... | ||
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 %d\n", \ |
114 | "cpu%d: function=%s, line=%d\n", \ |
114 | "cpu%d: function=%s, line=%d\n", \ |
115 | #pname, (value), CPU->id, __FUNCTION__, __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) |
120 | #endif |
120 | #endif |