libperf rc_check: Enable implicitly with sanitizers
authorIan Rogers <irogers@google.com>
Thu, 20 Apr 2023 17:18:12 +0000 (10:18 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 20 Apr 2023 18:12:02 +0000 (15:12 -0300)
commit9be6ab181b7b8d6114e225ae3c7c01bb6380cf8a
tree1fa5c9879925d1aa485aa71a7960983040170926
parentedd4cab2d492daa5e45bd45e44084a2b9880f224
libperf rc_check: Enable implicitly with sanitizers

If using leak sanitizer then implicitly enable reference count checking.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230420171812.561603-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/include/internal/rc_check.h