Skip to content

Instantly share code, notes, and snippets.

@cbrake
Created May 24, 2012 17:59
Show Gist options
  • Save cbrake/2783142 to your computer and use it in GitHub Desktop.
Save cbrake/2783142 to your computer and use it in GitHub Desktop.
Enable oprofile in kernel
diff --git a/arch/arm/configs/svs_defconfig b/arch/arm/configs/svs_defconfig
index be51787..08cea61 100644
--- a/arch/arm/configs/svs_defconfig
+++ b/arch/arm/configs/svs_defconfig
@@ -136,7 +136,8 @@ CONFIG_PERF_EVENTS=y
CONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not set
-# CONFIG_PROFILING is not set
+CONFIG_PROFILING=y
+CONFIG_OPROFILE=m
CONFIG_HAVE_OPROFILE=y
# CONFIG_KPROBES is not set
CONFIG_HAVE_KPROBES=y
@@ -1873,6 +1874,8 @@ CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_C_RECORDMCOUNT=y
+CONFIG_RING_BUFFER=y
+CONFIG_RING_BUFFER_ALLOW_SWAP=y
CONFIG_TRACING_SUPPORT=y
# CONFIG_FTRACE is not set
# CONFIG_DMA_API_DEBUG is not set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment