top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

FTrace in Android

0 votes
60 views

I am trying to learn FTrace for Kernel Debugging in Android Platform using JBP ,Kernel 3.4.0 . I am facing a few challenges .

My question --

1) First of all if I checked the available_tracers folder and came to know that I have -

 cat available_tracers
 wakeup_rt wakeup nop

I want to use function tracer , but it is not available in available_tracers list. So how can I use function tracer.??

2) After I succeed in making current_tracer to function , How to use this ? How can I do actual debugging checking by referring trace file..

posted Jun 25, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

3 Answers

+1 vote

First you need configure function tracer in kernel.
AND you need to

echo function > current_tracer
echo 1 > /proc/sys/kernel/ftrace_enabled
echo 1 > tracing_on
echo 1 > tracing_enabled
cat trace
answer Jun 25, 2013 by anonymous
0 votes

Look at the configuration options named CONFIG_FTRACE and CONFIG_*_TRACER.

answer Jun 25, 2013 by anonymous
0 votes

As with other responses, you first need to re-compile the Kernel with support for the function tracer. If you use menuconfig then _most _of the tracing options are in the 'kernel hacking' sub-category. Most importantly in your case you want to enable the function tracer here. When built and booted you can enable the function tracer in the same way as the other tracers.
The trace is written to the 'trace' file and as mentioned by others, you can just cat this to make sure it's being written to.
Remember that FTrace writes into a small ring buffer, which means that traces can be quite short. If you want to trace for longer periods of time I would recommend looking into the trace pipe.

answer Jun 25, 2013 by anonymous
Similar Questions
+1 vote

I live in a remote location with awful reception, and a friend suggested I should get a signal booster. I can connect to LTE if I force it in my phone's Hidden Menu (LG G5) but it functions basically at the same speed as HSPA, however when I visit a big city the 4G connection kicks in on its own and at very high speeds.

I found out that my phone carrier is using Band 3 for LTE which should mean that I need a 1800 Mhz signal booster which I found on ebay, but I'd really appreciate it if someone who actually knows this stuff could take a look and say if I'm right in my choice of this signal booster.

Included are screenshots of my Phone's LTE connection details as well as the item page of the signal booster I found.
Network
Booster1
Booster2

+1 vote

I am using GsmCellLocation to get LAC and cell id for 3G network with below code :

mCid = gmsCellLocation.getCid() & 0xffff;
mLac = gmsCellLocation.getLac();

and is there any library or formula how to get/calculate the correct LAC and cell id for LTE network (4G) ?


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...