Makefile (c3bdd5e65185f46150b3bac103b3854040487857) | Makefile (b51ce3744f115850166f3d6c292b9c8cb849ad4f) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for some libs needed in the kernel. 4# 5 6ifdef CONFIG_FUNCTION_TRACER 7ORIG_CFLAGS := $(KBUILD_CFLAGS) 8KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS)) 9endif 10 11# These files are disabled because they produce lots of non-interesting and/or 12# flaky coverage that is not a function of syscall inputs. For example, 13# rbtree can be global and individual rotations don't correlate with inputs. 14KCOV_INSTRUMENT_string.o := n 15KCOV_INSTRUMENT_rbtree.o := n 16KCOV_INSTRUMENT_list_debug.o := n 17KCOV_INSTRUMENT_debugobjects.o := n 18KCOV_INSTRUMENT_dynamic_debug.o := n 19 | 1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for some libs needed in the kernel. 4# 5 6ifdef CONFIG_FUNCTION_TRACER 7ORIG_CFLAGS := $(KBUILD_CFLAGS) 8KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS)) 9endif 10 11# These files are disabled because they produce lots of non-interesting and/or 12# flaky coverage that is not a function of syscall inputs. For example, 13# rbtree can be global and individual rotations don't correlate with inputs. 14KCOV_INSTRUMENT_string.o := n 15KCOV_INSTRUMENT_rbtree.o := n 16KCOV_INSTRUMENT_list_debug.o := n 17KCOV_INSTRUMENT_debugobjects.o := n 18KCOV_INSTRUMENT_dynamic_debug.o := n 19 |
20# Early boot use of cmdline, don't instrument it 21ifdef CONFIG_AMD_MEM_ENCRYPT 22KASAN_SANITIZE_string.o := n 23 24ifdef CONFIG_FUNCTION_TRACER 25CFLAGS_REMOVE_string.o = -pg 26endif 27 28CFLAGS_string.o := $(call cc-option, -fno-stack-protector) 29endif 30 |
|
20lib-y := ctype.o string.o vsprintf.o cmdline.o \ 21 rbtree.o radix-tree.o timerqueue.o xarray.o \ 22 idr.o int_sqrt.o extable.o \ 23 sha1.o chacha.o irq_regs.o argv_split.o \ 24 flex_proportions.o ratelimit.o show_mem.o \ 25 is_single_threaded.o plist.o decompress.o kobject_uevent.o \ 26 earlycpio.o seq_buf.o siphash.o dec_and_lock.o \ 27 nmi_backtrace.o nodemask.o win_minmax.o memcat_p.o --- 256 unchanged lines hidden --- | 31lib-y := ctype.o string.o vsprintf.o cmdline.o \ 32 rbtree.o radix-tree.o timerqueue.o xarray.o \ 33 idr.o int_sqrt.o extable.o \ 34 sha1.o chacha.o irq_regs.o argv_split.o \ 35 flex_proportions.o ratelimit.o show_mem.o \ 36 is_single_threaded.o plist.o decompress.o kobject_uevent.o \ 37 earlycpio.o seq_buf.o siphash.o dec_and_lock.o \ 38 nmi_backtrace.o nodemask.o win_minmax.o memcat_p.o --- 256 unchanged lines hidden --- |