This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DS-5 Gator Module Customization

Note: This was originally posted on 30th November 2011 at http://forums.arm.com

Hello,
I have the default DS-5 and Streamline setup working fine using a Pandaboard. I have the gator.ko 5.7 source code and I'm trying to add some new traces to gator.ko. Using the mmaped exemple, I'm returning always the same 'int' value=300 from my function which I trace through a "printk" too. The printk shows the value is good and always equal to 300. However, going to the DS-5 Eclipse IDE, the Streamline interface shows some strange values in the range of 145 to 427 when zooming to the 1ms on the graphical Timeline view. It looks like the values displayed are not constant but around my original 300 value. Can anyone explain how this should be working to display a constant value in the IDE?
Thanks a lot,
David.
Parents
  • Note: This was originally posted on 21st February 2012 at http://forums.arm.com


    Just to make sure that I understood correctly:

    1. You did replace int freq = (int)(cpufreq_quick_get(smp_processor_id())/1000); with int freq = 350;
     
    YES. I made the exact same change to my code locally. I rebuilt the kernel module, copied it over to my board where my gatord daemon resides and then started the daemon again.


    2. The chart you see in Streamline is still not flat.
     
    The chart looks similar to what I already posted. This forum doesn't allow me to upload anymore files. Looks like a quota issue. Sorry I cannot post my new snapshot here but I will send it to you along with the data.


    3. You are using Streamline 5.8 and corresponding gator daemon and driver (I assume you've cloned the git at linaro.org?).
     
    Yes, I simply cloned the tree from git://git.linaro.org/arm/ds5/gator.git and checked out the DS5.8 tag. Then, I made my minor changes and comitted them to my gitorious tree for reference.


    Am I correct?

    If so, can you capture some short example (10 seconds max.) with minimal set of counters configured (let's say cycles counter and your cpufreq data), compress the directory with captured data and send them to me? (pawel.moll at arm.com) I'll have a look inside.

    I just sent you the captured data.


    No argument here :-)
     
    I meant I don't think the problem resides in the return value as I mentioned earlier the printk show the returned value is correct.


    No, I have a Versatile Express here, but it really (really :-) shouldn't matter. The theory is simple - what you put (the "350" constant values) into the pipe at one end (the target) should come out at the other end, unchanged (still a lot of "350"s) and then visualized by Streamline as such.
Reply
  • Note: This was originally posted on 21st February 2012 at http://forums.arm.com


    Just to make sure that I understood correctly:

    1. You did replace int freq = (int)(cpufreq_quick_get(smp_processor_id())/1000); with int freq = 350;
     
    YES. I made the exact same change to my code locally. I rebuilt the kernel module, copied it over to my board where my gatord daemon resides and then started the daemon again.


    2. The chart you see in Streamline is still not flat.
     
    The chart looks similar to what I already posted. This forum doesn't allow me to upload anymore files. Looks like a quota issue. Sorry I cannot post my new snapshot here but I will send it to you along with the data.


    3. You are using Streamline 5.8 and corresponding gator daemon and driver (I assume you've cloned the git at linaro.org?).
     
    Yes, I simply cloned the tree from git://git.linaro.org/arm/ds5/gator.git and checked out the DS5.8 tag. Then, I made my minor changes and comitted them to my gitorious tree for reference.


    Am I correct?

    If so, can you capture some short example (10 seconds max.) with minimal set of counters configured (let's say cycles counter and your cpufreq data), compress the directory with captured data and send them to me? (pawel.moll at arm.com) I'll have a look inside.

    I just sent you the captured data.


    No argument here :-)
     
    I meant I don't think the problem resides in the return value as I mentioned earlier the printk show the returned value is correct.


    No, I have a Versatile Express here, but it really (really :-) shouldn't matter. The theory is simple - what you put (the "350" constant values) into the pipe at one end (the target) should come out at the other end, unchanged (still a lot of "350"s) and then visualized by Streamline as such.
Children
No data