Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 2464a609ded0 ("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 <mingo@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

-40
-3
lib/842/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - 3 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 4 - 5 2 obj-$(CONFIG_842_COMPRESS) += 842_compress.o 6 3 obj-$(CONFIG_842_DECOMPRESS) += 842_decompress.o
-2
lib/crypto/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 4 - 5 3 # chacha is used by the /dev/random driver which is always builtin 6 4 obj-y += chacha.o 7 5 obj-$(CONFIG_CRYPTO_LIB_CHACHA_GENERIC) += libchacha.o
-2
lib/dim/Makefile
··· 2 2 # DIM Dynamic Interrupt Moderation library 3 3 # 4 4 5 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 6 - 7 5 obj-$(CONFIG_DIMLIB) += dim.o 8 6 9 7 dim-y := dim.o net_dim.o rdma_dim.o
-2
lib/fonts/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 # Font handling 3 3 4 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 5 - 6 4 font-objs := fonts.o 7 5 8 6 font-objs-$(CONFIG_FONT_SUN8x16) += font_sun8x16.o
-3
lib/kunit/Makefile
··· 1 - 2 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 3 - 4 1 obj-$(CONFIG_KUNIT) += kunit.o 5 2 6 3 kunit-objs += test.o \
-6
lib/livepatch/Makefile
··· 2 2 # 3 3 # Makefile for livepatch test code. 4 4 5 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 6 - 7 5 obj-$(CONFIG_TEST_LIVEPATCH) += test_klp_atomic_replace.o \ 8 6 test_klp_callbacks_demo.o \ 9 7 test_klp_callbacks_demo2.o \ ··· 12 14 test_klp_state.o \ 13 15 test_klp_state2.o \ 14 16 test_klp_state3.o 15 - 16 - # Target modules to be livepatched require CC_FLAGS_FTRACE 17 - CFLAGS_test_klp_callbacks_busy.o += $(CC_FLAGS_FTRACE) 18 - CFLAGS_test_klp_callbacks_mod.o += $(CC_FLAGS_FTRACE)
-1
lib/lz4/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 ccflags-y += -O3 3 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 4 3 5 4 obj-$(CONFIG_LZ4_COMPRESS) += lz4_compress.o 6 5 obj-$(CONFIG_LZ4HC_COMPRESS) += lz4hc_compress.o
-2
lib/lzo/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 3 - 4 2 lzo_compress-objs := lzo1x_compress.o 5 3 lzo_decompress-objs := lzo1x_decompress_safe.o 6 4
-2
lib/math/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 3 - 4 2 obj-y += div64.o gcd.o lcm.o int_pow.o int_sqrt.o reciprocal_div.o 5 3 6 4 obj-$(CONFIG_CORDIC) += cordic.o
-2
lib/mpi/Makefile
··· 3 3 # MPI multiprecision maths library (from gpg) 4 4 # 5 5 6 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 7 - 8 6 obj-$(CONFIG_MPILIB) = mpi.o 9 7 10 8 mpi-y = \
-3
lib/raid6/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - 3 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 4 - 5 2 obj-$(CONFIG_RAID6_PQ) += raid6_pq.o 6 3 7 4 raid6_pq-y += algos.o recov.o tables.o int1.o int2.o int4.o \
-2
lib/reed_solomon/Makefile
··· 3 3 # This is a modified version of reed solomon lib, 4 4 # 5 5 6 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 7 - 8 6 obj-$(CONFIG_REED_SOLOMON) += reed_solomon.o 9 7 obj-$(CONFIG_REED_SOLOMON_TEST) += test_rslib.o
-3
lib/xz/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - 3 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 4 - 5 2 obj-$(CONFIG_XZ_DEC) += xz_dec.o 6 3 xz_dec-y := xz_dec_syms.o xz_dec_stream.o xz_dec_lzma2.o 7 4 xz_dec-$(CONFIG_XZ_DEC_BCJ) += xz_dec_bcj.o
-2
lib/zlib_deflate/Makefile
··· 7 7 # decompression code. 8 8 # 9 9 10 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 11 - 12 10 obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate.o 13 11 14 12 zlib_deflate-objs := deflate.o deftree.o deflate_syms.o
-2
lib/zlib_dfltcc/Makefile
··· 6 6 # This is the code for s390 zlib hardware support. 7 7 # 8 8 9 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 10 - 11 9 obj-$(CONFIG_ZLIB_DFLTCC) += zlib_dfltcc.o 12 10 13 11 zlib_dfltcc-objs := dfltcc.o dfltcc_deflate.o dfltcc_inflate.o dfltcc_syms.o
-2
lib/zlib_inflate/Makefile
··· 14 14 # uncompression can be done without blocking on allocation). 15 15 # 16 16 17 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 18 - 19 17 obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate.o 20 18 21 19 zlib_inflate-objs := inffast.o inflate.o infutil.o \
-1
lib/zstd/Makefile
··· 3 3 obj-$(CONFIG_ZSTD_DECOMPRESS) += zstd_decompress.o 4 4 5 5 ccflags-y += -O3 6 - ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 7 6 8 7 zstd_compress-y := fse_compress.o huf_compress.o compress.o \ 9 8 entropy_common.o fse_decompress.o zstd_common.o