Skip to content

Commit bdec6ca

Browse files
committed
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
2 parents 2f73cca + 2464a60 commit bdec6ca

3 files changed

Lines changed: 7 additions & 13 deletions

File tree

‎arch/x86/kernel/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE)
88

99
ifdef CONFIG_FTRACE
1010
# Do not profile debug utilities
11-
CFLAGS_REMOVE_tsc_64.o = -pg
12-
CFLAGS_REMOVE_tsc_32.o = -pg
11+
CFLAGS_REMOVE_tsc.o = -pg
1312
CFLAGS_REMOVE_rtc.o = -pg
1413
endif
1514

‎kernel/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
1111
hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \
1212
notifier.o ksysfs.o pm_qos_params.o sched_clock.o
1313

14-
CFLAGS_REMOVE_sched.o = -mno-spe
15-
1614
ifdef CONFIG_FTRACE
1715
# Do not trace debug files and internal ftrace files
1816
CFLAGS_REMOVE_lockdep.o = -pg
@@ -21,6 +19,7 @@ CFLAGS_REMOVE_mutex-debug.o = -pg
2119
CFLAGS_REMOVE_rtmutex-debug.o = -pg
2220
CFLAGS_REMOVE_cgroup-debug.o = -pg
2321
CFLAGS_REMOVE_sched_clock.o = -pg
22+
CFLAGS_REMOVE_sched.o = -mno-spe -pg
2423
endif
2524

2625
obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o

‎lib/Makefile‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,17 @@
22
# Makefile for some libs needed in the kernel.
33
#
44

5+
ifdef CONFIG_FTRACE
6+
ORIG_CFLAGS := $(KBUILD_CFLAGS)
7+
KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS))
8+
endif
9+
510
lib-y := ctype.o string.o vsprintf.o cmdline.o \
611
rbtree.o radix-tree.o dump_stack.o \
712
idr.o int_sqrt.o extable.o prio_tree.o \
813
sha1.o irq_regs.o reciprocal_div.o argv_split.o \
914
proportions.o prio_heap.o ratelimit.o
1015

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-
2016
lib-$(CONFIG_MMU) += ioremap.o
2117
lib-$(CONFIG_SMP) += cpumask.o
2218

0 commit comments

Comments
 (0)