Skip to content

Commit e946217

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: (31 commits) ftrace: fix current_tracer error return tracing: fix a build error on alpha ftrace: use a real variable for ftrace_nop in x86 tracing/ftrace: make boot tracer select the sched_switch tracer tracepoint: check if the probe has been registered asm-generic: define DIE_OOPS in asm-generic trace: fix printk warning for u64 ftrace: warning in kernel/trace/ftrace.c ftrace: fix build failure ftrace, powerpc, sparc64, x86: remove notrace from arch ftrace file ftrace: remove ftrace hash ftrace: remove mcount set ftrace: remove daemon ftrace: disable dynamic ftrace for all archs that use daemon ftrace: add ftrace warn on to disable ftrace ftrace: only have ftrace_kill atomic ftrace: use probe_kernel ftrace: comment arch ftrace code ftrace: return error on failed modified text. ftrace: dynamic ftrace process only text section ...
2 parents a186576 + 60063a6 commit e946217

50 files changed

Lines changed: 284 additions & 716 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ KBUILD_CFLAGS += -g
536536
KBUILD_AFLAGS += -gdwarf-2
537537
endif
538538

539-
ifdef CONFIG_FTRACE
539+
ifdef CONFIG_FUNCTION_TRACER
540540
KBUILD_CFLAGS += -pg
541541
endif
542542

‎arch/arm/Kconfig‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ config ARM
1616
select HAVE_ARCH_KGDB
1717
select HAVE_KPROBES if (!XIP_KERNEL)
1818
select HAVE_KRETPROBES if (HAVE_KPROBES)
19-
select HAVE_FTRACE if (!XIP_KERNEL)
20-
select HAVE_DYNAMIC_FTRACE if (HAVE_FTRACE)
19+
select HAVE_FUNCTION_TRACER if (!XIP_KERNEL)
2120
select HAVE_GENERIC_DMA_COHERENT
2221
help
2322
The ARM series is a line of low-power-consumption RISC chip designs

‎arch/arm/boot/compressed/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/BSS_START/$(ZBSSADDR)/
7070
targets := vmlinux vmlinux.lds piggy.gz piggy.o font.o font.c \
7171
head.o misc.o $(OBJS)
7272

73-
ifeq ($(CONFIG_FTRACE),y)
73+
ifeq ($(CONFIG_FUNCTION_TRACER),y)
7474
ORIG_CFLAGS := $(KBUILD_CFLAGS)
7575
KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
7676
endif

‎arch/arm/include/asm/ftrace.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _ASM_ARM_FTRACE
22
#define _ASM_ARM_FTRACE
33

4-
#ifdef CONFIG_FTRACE
4+
#ifdef CONFIG_FUNCTION_TRACER
55
#define MCOUNT_ADDR ((long)(mcount))
66
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
77

‎arch/arm/kernel/armksyms.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,6 @@ EXPORT_SYMBOL(_find_next_bit_be);
183183

184184
EXPORT_SYMBOL(copy_page);
185185

186-
#ifdef CONFIG_FTRACE
186+
#ifdef CONFIG_FUNCTION_TRACER
187187
EXPORT_SYMBOL(mcount);
188188
#endif

‎arch/arm/kernel/entry-common.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ENDPROC(ret_from_fork)
101101
#undef CALL
102102
#define CALL(x) .long x
103103

104-
#ifdef CONFIG_FTRACE
104+
#ifdef CONFIG_FUNCTION_TRACER
105105
#ifdef CONFIG_DYNAMIC_FTRACE
106106
ENTRY(mcount)
107107
stmdb sp!, {r0-r3, lr}
@@ -149,7 +149,7 @@ trace:
149149
ftrace_stub:
150150
mov pc, lr
151151

152-
#endif /* CONFIG_FTRACE */
152+
#endif /* CONFIG_FUNCTION_TRACER */
153153

154154
/*=============================================================================
155155
* SWI handler

‎arch/arm/kernel/ftrace.c‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,6 @@ int ftrace_update_ftrace_func(ftrace_func_t func)
9595
return ret;
9696
}
9797

98-
int ftrace_mcount_set(unsigned long *data)
99-
{
100-
unsigned long pc, old;
101-
unsigned long *addr = data;
102-
unsigned char *new;
103-
104-
pc = (unsigned long)&mcount_call;
105-
memcpy(&old, &mcount_call, MCOUNT_INSN_SIZE);
106-
new = ftrace_call_replace(pc, *addr);
107-
*addr = ftrace_modify_code(pc, (unsigned char *)&old, new);
108-
return 0;
109-
}
110-
11198
/* run from kstop_machine */
11299
int __init ftrace_dyn_arch_init(void *data)
113100
{

‎arch/powerpc/Kconfig‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ config ARCH_NO_VIRT_TO_BUS
108108
config PPC
109109
bool
110110
default y
111-
select HAVE_DYNAMIC_FTRACE
112-
select HAVE_FTRACE
111+
select HAVE_FUNCTION_TRACER
113112
select ARCH_WANT_OPTIONAL_GPIOLIB
114113
select HAVE_IDE
115114
select HAVE_IOREMAP_PROT

‎arch/powerpc/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ KBUILD_CFLAGS += -mcpu=powerpc
122122
endif
123123

124124
# Work around a gcc code-gen bug with -fno-omit-frame-pointer.
125-
ifeq ($(CONFIG_FTRACE),y)
125+
ifeq ($(CONFIG_FUNCTION_TRACER),y)
126126
KBUILD_CFLAGS += -mno-sched-epilog
127127
endif
128128

‎arch/powerpc/include/asm/ftrace.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _ASM_POWERPC_FTRACE
22
#define _ASM_POWERPC_FTRACE
33

4-
#ifdef CONFIG_FTRACE
4+
#ifdef CONFIG_FUNCTION_TRACER
55
#define MCOUNT_ADDR ((long)(_mcount))
66
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
77

0 commit comments

Comments
 (0)