mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04: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:
committed by
Arnaldo Carvalho de Melo
parent
edd4cab2d4
commit
9be6ab181b
@@ -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