summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Calianu <adrian.calianu@enea.com>2016-05-16 15:21:32 (GMT)
committerMartin Borg <martin.borg@enea.com>2016-05-23 08:21:07 (GMT)
commit508b8f29922ab88923d83bdb21a21e8a78a526d1 (patch)
tree992b63a3017b97905b0a136528b35afc80983fe6
parent2ba75f3637401c6d2478f2ce594d3eadc38304dd (diff)
downloadmeta-enea-bsp-common-508b8f29922ab88923d83bdb21a21e8a78a526d1.tar.gz
linux/cfg: add config fragments to disable debug features
New config fragments created to: - disable debugging on target. Trying to disable any type of debugging that can affect performances on target. - disable profiling. Profiling is mainly based on hooks which should not affect the performance on target. This options allow to test if profiling does affect the performance or not. - enable PreemptRT Low Latency Desktop - disable erratum for new PowerPC revisions targets Signed-off-by: Adrian Calianu <adrian.calianu@enea.com> Signed-off-by: Martin Borg <martin.borg@enea.com>
-rw-r--r--recipes-kernel/linux/files/cfg/debug_off.cfg48
-rw-r--r--recipes-kernel/linux/files/cfg/ppc/erratum_off.cfg2
-rw-r--r--recipes-kernel/linux/files/cfg/profiling_off.cfg36
-rw-r--r--recipes-kernel/linux/files/cfg/rt_lld.cfg7
4 files changed, 93 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/cfg/debug_off.cfg b/recipes-kernel/linux/files/cfg/debug_off.cfg
new file mode 100644
index 0000000..7b4405c
--- /dev/null
+++ b/recipes-kernel/linux/files/cfg/debug_off.cfg
@@ -0,0 +1,48 @@
1CONFIG_EMBEDDED=n
2CONFIG_EXPERT=n
3CONFIG_KGDB=n
4CONFIG_HAVE_ARCH_KGDB=n
5CONFIG_KGDB_KDB=n
6CONFIG_DEBUGGER=n
7CONFIG_DEBUG_KERNEL=n
8CONFIG_PPC_ADV_DEBUG_REGS=n
9CONFIG_HAVE_DMA_API_DEBUG=n
10CONFIG_DEBUG_FS=n
11CONFIG_PM_DEBUG=n
12CONFIG_HAVE_DEBUG_KMEMLEAK=n
13CONFIG_HAVE_DEBUG_STACKOVERFLOW=n
14CONFIG_SCHED_DEBUG=n
15CONFIG_TRACE_IRQFLAGS=n
16CONFIG_STACKTRACE=n
17CONFIG_DEBUG_SHIRQ=n
18CONFIG_DETECT_SOFTLOCKUP=n
19CONFIG_LOCKUP_DETECTOR=n
20CONFIG_HARDLOCKUP_DETECTOR=n
21CONFIG_BOOTPARAM_HARDLOCKUP_ENABLED=n
22CONFIG_DETECT_HUNG_TASK=n
23CONFIG_SCHEDSTATS=n
24CONFIG_TIMER_STATS=n
25CONFIG_DEBUG_OBJECTS=n
26CONFIG_DEBUG_OBJECTS_SELFTEST=n
27CONFIG_DEBUG_OBJECTS_FREE=n
28CONFIG_DEBUG_OBJECTS_TIMERS=n
29CONFIG_DEBUG_SLAB=n
30CONFIG_DEBUG_SPINLOCK=n
31CONFIG_DEBUG_MUTEXES=n
32CONFIG_DEBUG_SPINLOCK_SLEEP=n
33CONFIG_DEBUG_BUGVERBOSE=n
34CONFIG_DEBUG_INFO=n
35CONFIG_DEBUG_VM=n
36CONFIG_DEBUG_VIRTUAL=n
37CONFIG_DEBUG_WRITECOUNT=n
38CONFIG_DEBUG_MEMORY_INIT=n
39CONFIG_DEBUG_LIST=n
40CONFIG_ARCH_WANT_FRAME_POINTERS=n
41CONFIG_FRAME_POINTER=n
42CONFIG_DEBUG_PAGEALLOC=n
43CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=n
44CONFIG_FSL_DPAA_ETH_DEBUGFS=n
45CONFIG_FSL_BMAN_DEBUGFS=n
46CONFIG_FSL_QMAN_DEBUGFS=n
47CONFIG_DEBUG_PREEMPT=n
48CONFIG_JUMP_LABEL=y
diff --git a/recipes-kernel/linux/files/cfg/ppc/erratum_off.cfg b/recipes-kernel/linux/files/cfg/ppc/erratum_off.cfg
new file mode 100644
index 0000000..2ab62f0
--- /dev/null
+++ b/recipes-kernel/linux/files/cfg/ppc/erratum_off.cfg
@@ -0,0 +1,2 @@
1CONFIG_FSL_ERRATUM_A_004801=n
2CONFIG_FSL_ERRATUM_A_005337=n
diff --git a/recipes-kernel/linux/files/cfg/profiling_off.cfg b/recipes-kernel/linux/files/cfg/profiling_off.cfg
new file mode 100644
index 0000000..174b9e4
--- /dev/null
+++ b/recipes-kernel/linux/files/cfg/profiling_off.cfg
@@ -0,0 +1,36 @@
1CONFIG_KALLSYMS=n
2CONFIG_HIGH_RES_TIMERS=n
3CONFIG_TRACEPOINTS=n
4CONFIG_FTRACE=n
5CONFIG_PERF_EVENTS=n
6CONFIG_EVENT_TRACING=n
7CONFIG_KPROBES=n
8CONFIG_KRETPROBES=n
9CONFIG_FUNCTION_TRACER=n
10CONFIG_FUNCTION_GRAPH_TRACER=n
11CONFIG_IRQSOFF_TRACER=n
12CONFIG_PREEMPT_TRACER=n
13CONFIG_SCHED_TRACER=n
14CONFIG_NOP_TRACER=n
15CONFIG_CONTEXT_SWITCH_TRACER=n
16CONFIG_GENERIC_TRACER=n
17CONFIG_TRACER_MAX_TRACE=n
18CONFIG_TRACER_SNAPSHOT=n
19CONFIG_STACK_TRACER=n
20CONFIG_EXPERT=n
21CONFIG_PROC_FS=n
22CONFIG_DEBUG_FS=n
23CONFIG_NO_HZ=n
24CONFIG_HPET_TIMER=n
25CONFIG_CPU_FREQ=n
26CONFIG_CPU_FREQ_GOV_ONDEMAND=n
27CONFIG_TIMER_STATS=n
28CONFIG_TRACING=n
29CONFIG_X86_MSR=n
30CONFIG_DEBUG_INFO=n
31CONFIG_RELAY=n
32CONFIG_MODULE_UNLOAD=n
33CONFIG_PROFILING=n
34CONFIG_OPROFILE=n
35CONFIG_PROFILE_ALL_BRANCHES=n
36CONFIG_OPROFILE_NMI_TIMER=n
diff --git a/recipes-kernel/linux/files/cfg/rt_lld.cfg b/recipes-kernel/linux/files/cfg/rt_lld.cfg
new file mode 100644
index 0000000..ec761f9
--- /dev/null
+++ b/recipes-kernel/linux/files/cfg/rt_lld.cfg
@@ -0,0 +1,7 @@
1CONFIG_PREEMPT=y
2CONFIG_HAVE_PREEMPT_LAZY=y
3CONFIG_PREEMPT__LL=y
4CONFIG_HZ_1000=y
5CONFIG_HZ=1000
6ARCH_USES_GETTIMEOFFSET=y
7CONFIG_NO_HZ_FULL=y