ARM DS-5 Streamline

From OMAPpedia

Jump to: navigation, search


[edit] Introduction

DS-5 is a tool available from ARM which provides an Eclipse user interface for debugging and perform profiling analysis. The profiling tool is provided as an extention via the Streamline Eclipse plugin. In this document, I will try to describe how to prepare an OMAP4 environment and also point to the documentation on how to install the tool. Moreover, as I went through adding more features to the tool, I'll go through the steps on how to add my extention too.

[edit] Prepare an OMAP4 board

The best is use an OMAP4 Pandaboard and install the latest available software to you. It can be either a TI Internal Ubuntu release or just the latest Ubuntu software. All the information can be found here: In the following section, you can also find information on how to install a Linaro image for Pandaboard, which is also Ubuntu based. This information is contained in David Stubbs' blog.

Once you have a Pandaboard up and running you can go ahead.

[edit] DS-5 installation and setup

First, on your Ubuntu Desktop PC, you will need to install DS-5 software tool.

All the steps are very well described in David Stubbs' blog:

[edit] Adding a new feature to ARM Streamline

As an exercise, I decided to go through the gator kernel module source code and see if I could add an interesting feature. I found one that was missing for me: the CPU frequency. Actually, it would be an interesting value to display in the UI as on OMAP4 boards we support different frequency levels depending on the system load. Following the ARM recommendations (, I took the mmaped.c sample code and made my proper event tracking cpufreq.c. All the source code is available here:

Files that have been changed compared to original Linaro source code DS5 v5.8:;a=summary

Note that DS5 version 5.8 has an issue with displaying constant values. The issue is acknowledged by ARM engineers and a fix should come in versions after 5.9 release. See community support thread here:

[edit] Other useful features

Streamline annotate is an interesting feature too in the sense that it doesn't require much programming and changes. Basically in your target source code, you'll just need to open a character device and write to it. On the PC side, it will handle all the hard part for you and display the information in a friendly manner. All the details and exemples are available here:
Personal tools