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
53 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
+2 votes

Hi, I have built an application using android programming and I want to forward & sharing image from one application to other which was loaded from a remote url.

void onShareItem(View v) {

ImageView ivImage = (ImageView) findViewById(R.id.ivResult);

Uri bmpUri = getLocalBitmapUri(ivImage);
if (bmpUri != null) {

    Intent shareIntent = new Intent();
    shareIntent.setAction(Intent.ACTION_SEND);
    shareIntent.putExtra(Intent.EXTRA_STREAM, bmpUri);
    shareIntent.setType("image/*");
+2 votes

I have been working on a project related to android app development and want to know your views on how we can integrate realm in android application.

0 votes

Hi everyone, I have been working on android application and want to know your views on creating radar view in android with example code. I am also very curious about various other programming questions and answers because I also got stuck in some android issues, that is why I am looking for some mobile development blogs where the evolving community can help me to resolve my queries.


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
...