X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=lib%2FMakefile;h=2c62a9c06fbe5adf638ec304dda3d13546fdb036;hb=89a93f2f4834f8c126e8d9dd6b368d0b9e21ec3d;hp=237a8298f8cb7bbeee31105b25602f099950a977;hpb=fe9233fb6914a0eb20166c967e3020f7f0fba2c9;p=linux-2.6-block.git diff --git a/lib/Makefile b/lib/Makefile index 237a8298f8cb..2c62a9c06fbe 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -8,6 +8,15 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \ sha1.o irq_regs.o reciprocal_div.o argv_split.o \ proportions.o prio_heap.o ratelimit.o +ifdef CONFIG_FTRACE +# Do not profile string.o, since it may be used in early boot or vdso +CFLAGS_REMOVE_string.o = -pg +# Also do not profile any debug utilities +CFLAGS_REMOVE_spinlock_debug.o = -pg +CFLAGS_REMOVE_list_debug.o = -pg +CFLAGS_REMOVE_debugobjects.o = -pg +endif + lib-$(CONFIG_MMU) += ioremap.o lib-$(CONFIG_SMP) += cpumask.o