04-17-2019 12:58 AM
I know how to use TCF profiling in Emulation mode in SDSoC for ZCU102 board. I want to use gprof profiling. I have seen the following posts and documents but none of them clearly mention how to use gprof in SDSoC Emulation.
I have tried by putting -pg flags in SDSCC and SDS++ compiler settings and selecting "Enable profiling". But after starting Emulation mode, in Debug perspective, I do not know how to start gprof profiling (as we do by clicking "Start" of TCF profiling). I have spent significant amount of time to sort it out.
I would truly appreciate if you please help me by providing step-by-step instruction of using gprof profiling in SDSoC Emulation for ZCU102 board.
05-09-2019 02:46 AM
Please have a look at the link below
05-12-2019 12:31 PM
Is above link sufficient?
or you need any further assistance.
05-14-2019 09:58 PM
It did not work for me. I followed the following link to create HelloWorld application for Arm A53 of Zynq US+.
Then followed the link you shared to profile it. I know it is useless to profile a HelloWorld application. I am doing it for learning purpose. But it was not successful. I did not get the "Profile Option", so could not do steps 7-9 of https://www.xilinx.com/html_docs/xilinx2018_2/SDK_Doc/SDK_tasks/sdk_t_run_profiler.html
I am not sure what I should do for "Setting Up the Hardware for Profiling" for ZCU102 board.
When I do the step 1 of "Setting Up the Software for Profiling" it shows the following error.
For the step 2, "Enable profiling (-pg)" option was not there.
Using -pg flag in Miscellaneous also did not work.
How can I "Modify the software application code to enable interrupts"?
Can you please give me step-by-step instructions of using gprof in SDK or SDSoC?
05-15-2019 02:11 AM
In case of SDK, you can try same procedure with Dhrystone example.
hello world example gets executed fast.
gprof requires an application which can run for long time
05-15-2019 04:58 AM
As you can see the hello world application is not the issue. I cannot find profiling options in SDK 2018.3. Also i am not sure how i can prepare Zynq US+ zcu102 for gprof profiling.
Can you please share the steps of doing it?
05-15-2019 05:00 AM
I will create a video and share latest by tomorrow.
05-15-2019 05:18 AM
I'm currently trying to the same thing, but ı found that link: https://www.xilinx.com/html_docs/xilinx2018_3/SDK_Doc/SDK_concepts/sdk_c_over_profile.html
which says "gprof is currently supported only for Cortex A9 & Microblaze processors" zcu102 has a53 cores in the PS side as ı know.
I'm using zcu104 which also has a53 cores.
How did you solve your problem?
05-16-2019 04:24 PM
05-17-2019 02:00 AM
Yes, the document is correct.
I will confirm with concerned team and let you all know.