mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 05:42:46 +01:00
libperf rc_check: Enable implicitly with sanitizers
If using leak sanitizer then implicitly enable reference count checking. Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
1 parent
edd4cab2d4
commit
9be6ab181b
1 file changed
+8
@@ -5,6 +5,14 @@
|
||||
#include <stdlib.h>
|
||||
#include <linux/zalloc.h>
|
||||
|
||||
/*
|
||||
* Enable reference count checking implicitly with leak checking, which is
|
||||
* integrated into address sanitizer.
|
||||
*/
|
||||
#if defined(LEAK_SANITIZER) || defined(ADDRESS_SANITIZER)
|
||||
#define REFCNT_CHECKING 1
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Shared reference count checking macros.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user