• Marco Elver's avatar
    kcsan, kbuild: Add option for barrier instrumentation only · 48c9e28e
    Marco Elver authored
    Source files that disable KCSAN via KCSAN_SANITIZE := n, remove all
    instrumentation, including explicit barrier instrumentation. With
    instrumentation for memory barriers, in few places it is required to
    enable just the explicit instrumentation for memory barriers to avoid
    false positives.
    
    Providing the Makefile variable KCSAN_INSTRUMENT_BARRIERS_obj.o or
    KCSAN_INSTRUMENT_BARRIERS (for all files) set to 'y' only enables the
    explicit barrier instrumentation.
    Signed-off-by: default avatarMarco Elver <elver@google.com>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    48c9e28e
Makefile.lib 18.3 KB