Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
ftrace: do not trace library functions
ftrace: do not trace scheduler functions
ftrace: fix lockup with MAXSMP
ftrace: fix merge buglet

+7 -13
+1 -2
arch/x86/kernel/Makefile
··· 8 9 ifdef CONFIG_FTRACE 10 # Do not profile debug utilities 11 - CFLAGS_REMOVE_tsc_64.o = -pg 12 - CFLAGS_REMOVE_tsc_32.o = -pg 13 CFLAGS_REMOVE_rtc.o = -pg 14 endif 15
··· 8 9 ifdef CONFIG_FTRACE 10 # Do not profile debug utilities 11 + CFLAGS_REMOVE_tsc.o = -pg 12 CFLAGS_REMOVE_rtc.o = -pg 13 endif 14
+1 -2
kernel/Makefile
··· 11 hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \ 12 notifier.o ksysfs.o pm_qos_params.o sched_clock.o 13 14 - CFLAGS_REMOVE_sched.o = -mno-spe 15 - 16 ifdef CONFIG_FTRACE 17 # Do not trace debug files and internal ftrace files 18 CFLAGS_REMOVE_lockdep.o = -pg ··· 19 CFLAGS_REMOVE_rtmutex-debug.o = -pg 20 CFLAGS_REMOVE_cgroup-debug.o = -pg 21 CFLAGS_REMOVE_sched_clock.o = -pg 22 endif 23 24 obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o
··· 11 hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \ 12 notifier.o ksysfs.o pm_qos_params.o sched_clock.o 13 14 ifdef CONFIG_FTRACE 15 # Do not trace debug files and internal ftrace files 16 CFLAGS_REMOVE_lockdep.o = -pg ··· 21 CFLAGS_REMOVE_rtmutex-debug.o = -pg 22 CFLAGS_REMOVE_cgroup-debug.o = -pg 23 CFLAGS_REMOVE_sched_clock.o = -pg 24 + CFLAGS_REMOVE_sched.o = -mno-spe -pg 25 endif 26 27 obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o
+5 -9
lib/Makefile
··· 2 # Makefile for some libs needed in the kernel. 3 # 4 5 lib-y := ctype.o string.o vsprintf.o cmdline.o \ 6 rbtree.o radix-tree.o dump_stack.o \ 7 idr.o int_sqrt.o extable.o prio_tree.o \ 8 sha1.o irq_regs.o reciprocal_div.o argv_split.o \ 9 proportions.o prio_heap.o ratelimit.o 10 - 11 - ifdef CONFIG_FTRACE 12 - # Do not profile string.o, since it may be used in early boot or vdso 13 - CFLAGS_REMOVE_string.o = -pg 14 - # Also do not profile any debug utilities 15 - CFLAGS_REMOVE_spinlock_debug.o = -pg 16 - CFLAGS_REMOVE_list_debug.o = -pg 17 - CFLAGS_REMOVE_debugobjects.o = -pg 18 - endif 19 20 lib-$(CONFIG_MMU) += ioremap.o 21 lib-$(CONFIG_SMP) += cpumask.o
··· 2 # Makefile for some libs needed in the kernel. 3 # 4 5 + ifdef CONFIG_FTRACE 6 + ORIG_CFLAGS := $(KBUILD_CFLAGS) 7 + KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) 8 + endif 9 + 10 lib-y := ctype.o string.o vsprintf.o cmdline.o \ 11 rbtree.o radix-tree.o dump_stack.o \ 12 idr.o int_sqrt.o extable.o prio_tree.o \ 13 sha1.o irq_regs.o reciprocal_div.o argv_split.o \ 14 proportions.o prio_heap.o ratelimit.o 15 16 lib-$(CONFIG_MMU) += ioremap.o 17 lib-$(CONFIG_SMP) += cpumask.o