Skip to content

Commit 2e4b2c5

Browse files
XileForceDhineshCool
authored andcommitted
disable some tracers
(cherry picked from commit 17ac90849e4cfed0d6c8788f4a0981187fe7c8c7) (cherry picked from commit e3c5143eaa6443b4c718227b48f16225cc21282b)
1 parent 5698429 commit 2e4b2c5

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

arch/arm/Kconfig.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ config FRAME_POINTER
5555
config OLD_MCOUNT
5656
bool
5757
depends on FUNCTION_TRACER && FRAME_POINTER
58-
default y
58+
default n
5959

6060
config DEBUG_USER
6161
bool "Verbose user fault messages"

kernel/trace/Kconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ config FUNCTION_TRACER
165165
select KALLSYMS
166166
select GENERIC_TRACER
167167
select CONTEXT_SWITCH_TRACER
168+
default n
168169
help
169170
Enable the kernel to trace every kernel function. This is done
170171
by using a compiler feature to insert a small, 5-byte No-Operation
@@ -181,6 +182,7 @@ config FUNCTION_GRAPH_TRACER
181182
depends on !X86_32 || !CC_OPTIMIZE_FOR_SIZE
182183
depends on ROP_PROTECTION_NONE
183184
default y
185+
default n
184186
help
185187
Enable the kernel to trace a function at both its return
186188
and its entry.
@@ -429,6 +431,7 @@ config STACK_TRACER
429431
select FUNCTION_TRACER
430432
select STACKTRACE
431433
select KALLSYMS
434+
default n
432435
help
433436
This special tracer records the maximum stack footprint of the
434437
kernel and displays it in /sys/kernel/debug/tracing/stack_trace.
@@ -522,7 +525,7 @@ config DYNAMIC_FTRACE
522525
bool "enable/disable function tracing dynamically"
523526
depends on FUNCTION_TRACER
524527
depends on HAVE_DYNAMIC_FTRACE
525-
default y
528+
default n
526529
help
527530
This option will modify all the calls to function tracing
528531
dynamically (will patch them out of the binary image and

kernel/trace/Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11

22
# Do not instrument the tracer itself:
33

4-
ifdef CONFIG_FUNCTION_TRACER
5-
ORIG_CFLAGS := $(KBUILD_CFLAGS)
6-
KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
4+
#ifdef CONFIG_FUNCTION_TRACER
5+
#ORIG_CFLAGS := $(KBUILD_CFLAGS)
6+
#KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
77

8-
ifdef CONFIG_FTRACE_SELFTEST
8+
#ifdef CONFIG_FTRACE_SELFTEST
99
# selftest needs instrumentation
10-
CFLAGS_trace_selftest_dynamic.o = $(CC_FLAGS_FTRACE)
11-
obj-y += trace_selftest_dynamic.o
12-
endif
13-
endif
10+
#CFLAGS_trace_selftest_dynamic.o = $(CC_FLAGS_FTRACE)
11+
#obj-y += trace_selftest_dynamic.o
12+
#endif
13+
#endif
1414

1515
# If unlikely tracing is enabled, do not trace these files
1616
ifdef CONFIG_TRACING_BRANCHES

0 commit comments

Comments
 (0)