Skip to content

Commit b16838c

Browse files
committed
kbuild: trace functions in subdirectories of lib/
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) exists here in sub-directories of lib/ to keep the behavior of commit 2464a60 ("ftrace: do not trace library functions"). Since that commit, not only the objects in lib/ but also the ones in the sub-directories are excluded from ftrace (although the commit description did not explicitly mention this). However, most of library functions in sub-directories are not so hot. Re-add them to ftrace. Going forward, only the objects right under lib/ will be excluded. Cc: Ingo Molnar <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Steven Rostedt (VMware) <[email protected]>
1 parent 15d5761 commit b16838c

File tree

17 files changed

+0
-40
lines changed

17 files changed

+0
-40
lines changed

lib/842/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
3-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
4-
52
obj-$(CONFIG_842_COMPRESS) += 842_compress.o
63
obj-$(CONFIG_842_DECOMPRESS) += 842_decompress.o

lib/crypto/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
4-
53
# chacha is used by the /dev/random driver which is always builtin
64
obj-y += chacha.o
75
obj-$(CONFIG_CRYPTO_LIB_CHACHA_GENERIC) += libchacha.o

lib/dim/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# DIM Dynamic Interrupt Moderation library
33
#
44

5-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
6-
75
obj-$(CONFIG_DIMLIB) += dim.o
86

97
dim-y := dim.o net_dim.o rdma_dim.o

lib/fonts/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22
# Font handling
33

4-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
5-
64
font-objs := fonts.o
75

86
font-objs-$(CONFIG_FONT_SUN8x16) += font_sun8x16.o

lib/kunit/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
3-
41
obj-$(CONFIG_KUNIT) += kunit.o
52

63
kunit-objs += test.o \

lib/livepatch/Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#
33
# Makefile for livepatch test code.
44

5-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
6-
75
obj-$(CONFIG_TEST_LIVEPATCH) += test_klp_atomic_replace.o \
86
test_klp_callbacks_demo.o \
97
test_klp_callbacks_demo2.o \
@@ -14,7 +12,3 @@ obj-$(CONFIG_TEST_LIVEPATCH) += test_klp_atomic_replace.o \
1412
test_klp_state.o \
1513
test_klp_state2.o \
1614
test_klp_state3.o
17-
18-
# Target modules to be livepatched require CC_FLAGS_FTRACE
19-
CFLAGS_test_klp_callbacks_busy.o += $(CC_FLAGS_FTRACE)
20-
CFLAGS_test_klp_callbacks_mod.o += $(CC_FLAGS_FTRACE)

lib/lz4/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
ccflags-y += -O3
3-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
43

54
obj-$(CONFIG_LZ4_COMPRESS) += lz4_compress.o
65
obj-$(CONFIG_LZ4HC_COMPRESS) += lz4hc_compress.o

lib/lzo/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
3-
42
lzo_compress-objs := lzo1x_compress.o
53
lzo_decompress-objs := lzo1x_decompress_safe.o
64

lib/math/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
3-
42
obj-y += div64.o gcd.o lcm.o int_pow.o int_sqrt.o reciprocal_div.o
53

64
obj-$(CONFIG_CORDIC) += cordic.o

lib/mpi/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# MPI multiprecision maths library (from gpg)
44
#
55

6-
ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
7-
86
obj-$(CONFIG_MPILIB) = mpi.o
97

108
mpi-y = \

0 commit comments

Comments
 (0)