summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b00abed)
Like dbg_hit_on(x) but first filter out events and
only when condition 'c' is true the hit counter
is tested with 'x'.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
extern void dbg_print_hit_rate();
#define dbg_hit_on(x) { dbg_cnt0++; if (x) dbg_cnt1++; }
extern void dbg_print_hit_rate();
#define dbg_hit_on(x) { dbg_cnt0++; if (x) dbg_cnt1++; }
+#define dbg_hit_on_c(c, x) { if (c) dbg_hit_on(x) }
#endif // !defined(MISC_H_INCLUDED)
#endif // !defined(MISC_H_INCLUDED)