diff options
Diffstat (limited to 'lib/ccan/likely/likely.h')
-rw-r--r-- | lib/ccan/likely/likely.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/ccan/likely/likely.h b/lib/ccan/likely/likely.h index 3a9c6d4640..8b72995dd4 100644 --- a/lib/ccan/likely/likely.h +++ b/lib/ccan/likely/likely.h @@ -109,6 +109,13 @@ long _likely_trace(bool cond, bool expect, * #endif * } */ -const char *likely_stats(unsigned int min_hits, unsigned int percent); +char *likely_stats(unsigned int min_hits, unsigned int percent); + +/** + * likely_stats_reset - free up memory of likely()/unlikely() branches. + * + * This can also plug memory leaks. + */ +void likely_stats_reset(void); #endif /* CCAN_LIKELY_DEBUG */ #endif /* CCAN_LIKELY_H */ |