mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
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 <mcostalba@gmail.com>
This commit is contained in:
parent
b00abed181
commit
8d76de820f
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue