Hi Emeric,

I checked the kernel files and found 
probe_kernel_write () throwing EPERM error 

kernel/trace/ftrace.c
|
|__ ftrace_init(void)
     |
     |_ftrace_process_locs
          |
          |_ ftrace_update_code
               |
               |_ftrace_code_disable
                  |
                  |_ ftrace_make_nop() -arch/arm/kernel/ftrace.c 
                         |
                         |_ftrace_modify_code
                                |
                                |__probe_kernel_write ()

Which Is throwing  "-EPERM"

Any idea ?
Thanks
Dhyan 

On Tuesday, August 20, 2013 5:02:26 AM UTC+5:30, m-ric wrote:
>
> Did you have a look into *ftrace_bug()* function to find out what can 
> trigger this bug?
>
> Emeric
>
>
> On Mon, Aug 19, 2013 at 9:14 AM, Dhyan <[email protected] 
> <javascript:>>wrote:
>
>> Dear All,
>>
>> I am trying to run ftrace in nexus-4.But when i enable ftrace i am 
>> getting following in dmesg
>>
>> <6>[    0.002166] ftrace: allocating 30960 entries in 91 pages
>> <4>[    0.036563] ------------[ cut here ]------------
>> <4>[    0.036593] WARNING: at kernel/trace/ftrace.c:1590 
>> ftrace_bug+0xf0/0x178()
>> <4>[    0.036654] [<c0015090>] (unwind_backtrace+0x0/0xec) from 
>> [<c08529ac>] (dump_stack+0x20/0x24)
>> <4>[    0.036685] [<c08529ac>] (dump_stack+0x20/0x24) from [<c0070db0>] 
>> (warn_slowpath_common+0x58/0x70)
>> <4>[    0.036716] [<c0070db0>] (warn_slowpath_common+0x58/0x70) from 
>> [<c0070ec0>] (warn_slowpath_null+0x2c/0x34)
>> <4>[    0.036746] [<c0070ec0>] (warn_slowpath_null+0x2c/0x34) from 
>> [<c00d34b4>] (ftrace_bug+0xf0/0x178)
>> <4>[    0.036777] [<c00d34b4>] (ftrace_bug+0xf0/0x178) from [<c0d145d8>] 
>> (ftrace_init+0x364/0x50c)
>> <4>[    0.036838] [<c0d145d8>] (ftrace_init+0x364/0x50c) from 
>> [<c0d00944>] (start_kernel+0x42c/0x498)
>> <4>[    0.036868] [<c0d00944>] (start_kernel+0x42c/0x498) from 
>> [<8020803c>] (0x8020803c)
>> <4>[    0.036899] ---[ end trace da227214a82491b7 ]---
>>
>> Can some one please help to fix this ?
>>
>> Thanks
>> Dhyan 
>>
>>
>>  -- 
>> -- 
>> unsubscribe: [email protected] <javascript:>
>> website: http://groups.google.com/group/android-kernel
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Linux Kernel Development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to