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 20th February 2012 at http://forums.arm.com

    Hello again!

    I've just tried your code () with this small change (I have no cpufreq "enabled" board on my desk right now):


    diff --git a/driver/gator_events_cpufreq.c b/driver/gator_events_cpufreq.c
    index edf9797..83e5bba 100644
    --- a/driver/gator_events_cpufreq.c
    +++ b/driver/gator_events_cpufreq.c
    @@ -68,7 +68,8 @@ static void gator_events_cpufreq_stop(void)

    static int cpufreq_simulate(void)
    {
    -    int freq = (int)(cpufreq_quick_get(smp_processor_id())/1000);
    +    //int freq = (int)(cpufreq_quick_get(smp_processor_id())/1000);
    +    int freq = 350;
         //printk("cpufreq=%d MHz\n", freq);
         return freq;
    }


    and this is what I got in Streamline (5.8):



    So it looks fine for me - could you try the same (replacing the call to cpufreq with a constant?). If I was to guess I'd say that the data you get from cpufreq is not as constant as you may think ;-)

    Good luck and let me know how's it going.

    Paweł
Reply
  • Note: This was originally posted on 20th February 2012 at http://forums.arm.com

    Hello again!

    I've just tried your code () with this small change (I have no cpufreq "enabled" board on my desk right now):


    diff --git a/driver/gator_events_cpufreq.c b/driver/gator_events_cpufreq.c
    index edf9797..83e5bba 100644
    --- a/driver/gator_events_cpufreq.c
    +++ b/driver/gator_events_cpufreq.c
    @@ -68,7 +68,8 @@ static void gator_events_cpufreq_stop(void)

    static int cpufreq_simulate(void)
    {
    -    int freq = (int)(cpufreq_quick_get(smp_processor_id())/1000);
    +    //int freq = (int)(cpufreq_quick_get(smp_processor_id())/1000);
    +    int freq = 350;
         //printk("cpufreq=%d MHz\n", freq);
         return freq;
    }


    and this is what I got in Streamline (5.8):



    So it looks fine for me - could you try the same (replacing the call to cpufreq with a constant?). If I was to guess I'd say that the data you get from cpufreq is not as constant as you may think ;-)

    Good luck and let me know how's it going.

    Paweł
Children
No data