Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1342065 > unrolled thread
| Started by | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| First post | 2016-02-24 15:30 +0100 |
| Last post | 2016-02-25 02:20 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 12/12] powerpc/ftrace: Disable profiling for some files Michael Ellerman <mpe@ellerman.id.au> - 2016-02-24 15:30 +0100
Re: [PATCH 12/12] powerpc/ftrace: Disable profiling for some files Balbir Singh <bsingharora@gmail.com> - 2016-02-25 02:20 +0100
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Date | 2016-02-24 15:30 +0100 |
| Subject | [PATCH 12/12] powerpc/ftrace: Disable profiling for some files |
| Message-ID | <r5IBY-5Pl-13@gated-at.bofh.it> |
From: Torsten Duwe <duwe@lst.de>
Using -mprofile-kernel on early boot code not only confuses the
checker but is also useless, as the infrastructure is not yet in
place. Proceed like with -pg (remove it from CFLAGS), equally with
time.o, ftrace and its helper files.
* arch/powerpc/kernel/Makefile,
arch/powerpc/lib/Makefile:
- remove -mprofile-kernel from low level, boot code and
code-patching objects' CFLAGS.
Signed-off-by: Torsten Duwe <duwe@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
arch/powerpc/kernel/Makefile | 12 ++++++------
arch/powerpc/lib/Makefile | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index 794f22adf99d..44667fde7ae4 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -16,14 +16,14 @@ endif
ifdef CONFIG_FUNCTION_TRACER
# Do not trace early boot code
-CFLAGS_REMOVE_cputable.o = -pg -mno-sched-epilog
-CFLAGS_REMOVE_prom_init.o = -pg -mno-sched-epilog
-CFLAGS_REMOVE_btext.o = -pg -mno-sched-epilog
-CFLAGS_REMOVE_prom.o = -pg -mno-sched-epilog
+CFLAGS_REMOVE_cputable.o = -pg -mno-sched-epilog -mprofile-kernel
+CFLAGS_REMOVE_prom_init.o = -pg -mno-sched-epilog -mprofile-kernel
+CFLAGS_REMOVE_btext.o = -pg -mno-sched-epilog -mprofile-kernel
+CFLAGS_REMOVE_prom.o = -pg -mno-sched-epilog -mprofile-kernel
# do not trace tracer code
-CFLAGS_REMOVE_ftrace.o = -pg -mno-sched-epilog
+CFLAGS_REMOVE_ftrace.o = -pg -mno-sched-epilog -mprofile-kernel
# timers used by tracing
-CFLAGS_REMOVE_time.o = -pg -mno-sched-epilog
+CFLAGS_REMOVE_time.o = -pg -mno-sched-epilog -mprofile-kernel
endif
obj-y := cputable.o ptrace.o syscalls.o \
diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile
index a47e14277fd8..98e22b2d7bec 100644
--- a/arch/powerpc/lib/Makefile
+++ b/arch/powerpc/lib/Makefile
@@ -6,8 +6,8 @@ subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
-CFLAGS_REMOVE_code-patching.o = -pg
-CFLAGS_REMOVE_feature-fixups.o = -pg
+CFLAGS_REMOVE_code-patching.o = -pg -mprofile-kernel
+CFLAGS_REMOVE_feature-fixups.o = -pg -mprofile-kernel
obj-y += string.o alloc.o crtsavres.o ppc_ksyms.o code-patching.o \
feature-fixups.o
--
2.5.0
[toc] | [next] | [standalone]
| From | Balbir Singh <bsingharora@gmail.com> |
|---|---|
| Date | 2016-02-25 02:20 +0100 |
| Message-ID | <r5SL0-4FT-11@gated-at.bofh.it> |
| In reply to | #1342065 |
On 25/02/16 01:28, Michael Ellerman wrote: > From: Torsten Duwe <duwe@lst.de> > > Using -mprofile-kernel on early boot code not only confuses the > checker but is also useless, as the infrastructure is not yet in > place. Proceed like with -pg (remove it from CFLAGS), equally with > time.o, ftrace and its helper files. > > * arch/powerpc/kernel/Makefile, > arch/powerpc/lib/Makefile: > - remove -mprofile-kernel from low level, boot code and > code-patching objects' CFLAGS. > > Signed-off-by: Torsten Duwe <duwe@suse.de> > Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> > --- > arch/powerpc/kernel/Makefile | 12 ++++++------ > arch/powerpc/lib/Makefile | 4 ++-- > 2 files changed, 8 insertions(+), 8 deletions(-) > > diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile > index 794f22adf99d..44667fde7ae4 100644 > --- a/arch/powerpc/kernel/Makefile > +++ b/arch/powerpc/kernel/Makefile > @@ -16,14 +16,14 @@ endif > > ifdef CONFIG_FUNCTION_TRACER > # Do not trace early boot code > -CFLAGS_REMOVE_cputable.o = -pg -mno-sched-epilog > -CFLAGS_REMOVE_prom_init.o = -pg -mno-sched-epilog > -CFLAGS_REMOVE_btext.o = -pg -mno-sched-epilog > -CFLAGS_REMOVE_prom.o = -pg -mno-sched-epilog > +CFLAGS_REMOVE_cputable.o = -pg -mno-sched-epilog -mprofile-kernel > +CFLAGS_REMOVE_prom_init.o = -pg -mno-sched-epilog -mprofile-kernel > +CFLAGS_REMOVE_btext.o = -pg -mno-sched-epilog -mprofile-kernel > +CFLAGS_REMOVE_prom.o = -pg -mno-sched-epilog -mprofile-kernel > # do not trace tracer code > -CFLAGS_REMOVE_ftrace.o = -pg -mno-sched-epilog > +CFLAGS_REMOVE_ftrace.o = -pg -mno-sched-epilog -mprofile-kernel > # timers used by tracing > -CFLAGS_REMOVE_time.o = -pg -mno-sched-epilog > +CFLAGS_REMOVE_time.o = -pg -mno-sched-epilog -mprofile-kernel > endif > > obj-y := cputable.o ptrace.o syscalls.o \ > diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile > index a47e14277fd8..98e22b2d7bec 100644 > --- a/arch/powerpc/lib/Makefile > +++ b/arch/powerpc/lib/Makefile > @@ -6,8 +6,8 @@ subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror > > ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) > > -CFLAGS_REMOVE_code-patching.o = -pg > -CFLAGS_REMOVE_feature-fixups.o = -pg > +CFLAGS_REMOVE_code-patching.o = -pg -mprofile-kernel > +CFLAGS_REMOVE_feature-fixups.o = -pg -mprofile-kernel > > obj-y += string.o alloc.o crtsavres.o ppc_ksyms.o code-patching.o \ > feature-fixups.o Reviewed-by: Balbir Singh <bsingharora@gmail.com>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web