Quick Links
DS-5: memory profiling in eclipse for a C program
#1
Posted 19 December 2011 - 10:25 AM
can anyone explain how to find number of cycles count for a C program in eclipse for "ARM- CORTEX - A8 RTSM pre-configured to boot ARM Embedded Linux configuration",in DS-5
#2
Posted 20 December 2011 - 05:14 AM
In that task, first thing is downloading linux kernel source code. I done that part.
Later, cheat sheet asked to
1. Navigate to the root source directory of the linux kernel.
2. Invoke the following command in your shell: 'make ARCH=arm CROSS_COMPILE=${CROSS_TOOLS}/bin/arm-none-linux-gnueabi- <platform_defconfig>'. Replace <platform_defconfig> in the command with one of the configuration files located in the /arch/arm/configs directory appropriate for your platform or with a configuration file provided by a vendor. provided by a vendor.
This is the part where I stuck.
In the point1, navigation is asked to done. Navigation in Telnet or Navigation in DS-5 cmd??
I am working in windows machine, ds-5 with ARM CORTEX-A8 RTSM per-configured to boot embedded Linux rtsm.
I tried in ds-5 cmd, with no success.
When I tried in Telnet, I couldn't navigate further.
So, it will be very needful if you explain it elaborately step-by-step ..how to work with Arm streamline for windows machine under Linux RTSM.
From the cheatsheet, I am not able to understand clearly.
Please, help me out on this.
#3
Posted 20 December 2011 - 09:22 AM
manju1438, on 19 December 2011 - 10:25 AM, said:
can anyone explain how to find number of cycles count for a C program in eclipse for "ARM- CORTEX - A8 RTSM pre-configured to boot ARM Embedded Linux configuration",in DS-5
The RTSM shows an instruction count at the top of it's LCD window, but it does not try to keep track of cycles and does not have PMU counters. Counting the cycles would slow it down too much.
You could consider getting one of the many cheap Linux boards: BeagleBoard, PandaBoard, Snowball, Overo, Origen (to name a few that are supported by Linaro). Then you could use tools like Streamline to analyse performance, although it still won't be easy to get the number cycles for a single application?
#4
Posted 20 December 2011 - 09:40 AM
manjunatha, on 20 December 2011 - 05:14 AM, said:
This question doesn't really belong in this thread -- it would be better to start a new thread. But I'll reply here in case it helps someone that runs across it.
I'm afraid you're up against some large problems.
1. You won't be able to rebuild the kernel on a Windows host. (Theoretically, you could use the RTSM as a build host, but you would have to install tools and sources and would run out of memory, disk and patience.)
2. Streamline isn't going to work well, if at all on the RTSM because the RTSM doesn't support the PMU counters Streamline wants to use and doesn't do networking.
Turing to your questions:
By "navigate" they mean change directory "cd" on the host. In the RTSM Linux distribution .zip file is a readme.html that describes how to use a Linux host to rebuild the kernel and the image that the RTSM uses.
If you have further questions about this, please start a new thread.














