From 8d76de820f3dfb85f0767772cd0e19b1ec9d4808 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 27 Sep 2008 11:12:23 +0100 Subject: [PATCH 1/1] Add dbg_hit_on_c(c, x) tool 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 --- src/misc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/misc.h b/src/misc.h index 506422b2..29fc8f03 100644 --- a/src/misc.h +++ b/src/misc.h @@ -64,5 +64,6 @@ extern long 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) -- 2.39.2