Function trace

I get the following error when ftrace is tryng to instrument the code for mcount.
Warning: LINUX/android/kernel/kernel/trace/ftrace.c
[<ffffffc0002076ac>] dump_backtrace+0x0/0x278
<4>[ 0.044148] [<ffffffc000207940>] show_stack+0x1c/0x28
<4>[ 0.044163] [<ffffffc000c74d38>] dump_stack+0x1c/0x28
<4>[ 0.044177] [<ffffffc00021d3bc>] warn_slowpath_common+0x7c/0xa4
<4>[ 0.044189] [<ffffffc00021d670>] warn_slowpath_null+0x34/0x44
<4>[ 0.044201] [<ffffffc0002a562c>] ftrace_bug+0x128/0x198
<4>[ 0.044213] [<ffffffc0002a5bf0>] ftrace_process_locs+0x428/0x55c
<4>[ 0.044226] [<ffffffc00140d108>] ftrace_init+0xc0/0x198
<4>[ 0.044238] [<ffffffc00140078c>] start_kernel+0x328/0x344

“ftrace faulted on writing [<ffffffc0002007b4>] run_init_process”

I am using a 3.10.49 kernel based CodeAurora MSM BSP. Build for userdebug

Does anybody know any reasons for the failure ??

More info on the memory.

[ 0.000000] cma: Found external_image__region@0, memory base 0x0000000086000000, size 8 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found modem_adsp_region@0, memory base 0x0000000086800000, size 43 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found pheripheral_region@0, memory base 0x0000000089300000, size 6 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found secure_region@0, memory base 0x0000000000000000, size 109 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found venus_qseecom_region@0, memory base 0x0000000000000000, size 18 MiB, limit 0x0000000090000000
[ 0.000000] cma: Found audio_region@0, memory base 0x0000000000000000, size 3 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found splash_region@83000000, memory base 0x0000000083000000, size 20 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: CMA: reserved 8 MiB at 0x0000000086000000 for external_image_mem
[ 0.000000] cma: CMA: reserved 43 MiB at 0x0000000086800000 for modem_adsp_mem
[ 0.000000] cma: CMA: reserved 6 MiB at 0x0000000089300000 for peripheral_mem
[ 0.000000] cma: CMA: reserved 112 MiB at 0x00000000b9000000 for secure_mem
[ 0.000000] cma: CMA: reserved 20 MiB at 0x000000008ec00000 for venus_qseecom_mem
[ 0.000000] cma: CMA: reserved 4 MiB at 0x00000000b8c00000 for audio_mem
[ 0.000000] cma: CMA: reserved 20 MiB at 0x0000000083000000 for cont_splash_mem
[ 0.000000] cma: CMA: reserved 64 MiB at 0x00000000b4c00000 for default region
[ 0.000000] PERCPU: Embedded 17 pages/cpu @ffffffc034ac9000 s40000 r8192 d21440 u69632
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 243456

0.000000] Memory: 716920K/990208K available (12321K kernel code, 1893K rwdata, 5600K rodata, 3079K init, 1843K bss, 273288K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vmalloc : 0xffffff8000000000 - 0xffffffbbffff0000 (245759 MB)
[ 0.000000] vmemmap : 0xffffffbc02000000 - 0xffffffbc03000000 ( 16 MB)
[ 0.000000] modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc040000000 ( 1024 MB)
[ 0.000000] .init : 0xffffffc001400000 - 0xffffffc001701c40 ( 3080 kB)
[ 0.000000] .text : 0xffffffc000080000 - 0xffffffc001380414 ( 19458 kB)
[ 0.000000] .data : 0xffffffc001702000 - 0xffffffc0018db5e0 ( 1894 kB)