linux/include/asm-generic/bitops
Daniel Axtens 81d2c6f819 kasan: support instrumented bitops combined with generic bitops
Currently bitops-instrumented.h assumes that the architecture provides
atomic, non-atomic and locking bitops (e.g. both set_bit and __set_bit).
This is true on x86 and s390, but is not always true: there is a
generic bitops/non-atomic.h header that provides generic non-atomic
operations, and also a generic bitops/lock.h for locking operations.

powerpc uses the generic non-atomic version, so it does not have it's
own e.g. __set_bit that could be renamed arch___set_bit.

Split up bitops-instrumented.h to mirror the atomic/non-atomic/lock
split. This allows arches to only include the headers where they
have arch-specific versions to rename. Update x86 and s390.

(The generic operations are automatically instrumented because they're
written in C, not asm.)

Suggested-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Acked-by: Marco Elver <elver@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190820024941.12640-1-dja@axtens.net
2019-11-07 13:15:39 +11:00
..
__ffs.h
__fls.h
arch_hweight.h
atomic.h locking/atomics, asm-generic/bitops/atomic.h: Rewrite using atomic_*() APIs 2018-06-21 12:52:11 +02:00
builtin-__ffs.h
builtin-__fls.h
builtin-ffs.h
builtin-fls.h fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
const_hweight.h
ext2-atomic-setbit.h
ext2-atomic.h
ffs.h
ffz.h
find.h
fls.h fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
fls64.h
hweight.h
instrumented-atomic.h kasan: support instrumented bitops combined with generic bitops 2019-11-07 13:15:39 +11:00
instrumented-lock.h kasan: support instrumented bitops combined with generic bitops 2019-11-07 13:15:39 +11:00
instrumented-non-atomic.h kasan: support instrumented bitops combined with generic bitops 2019-11-07 13:15:39 +11:00
le.h
lock.h locking/atomics, asm-generic/bitops/lock.h: Rewrite using atomic_fetch_*() 2018-06-21 12:52:12 +02:00
non-atomic.h
sched.h