UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
559 Views
Registered: ‎08-27-2018

gprof profiling in SDSoC Emulation for ZCU102 board

Hi,

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.

https://forums.xilinx.com/t5/SDSoC-Environment-and-reVISION/Using-gprof-profiler-in-SDSOC/td-p/769074

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_2/ug1235-sdsoc-optimization-guide.pdf

https://www.xilinx.com/html_docs/xilinx2016_2/SDK_Doc/index.html?q=/html_docs/xilinx2016_2/SDK_Doc/SDK_tasks/sdk_t_run_profiler.html

https://www.xilinx.com/html_docs/xilinx2016_2/SDK_Doc/index.html?q=/html_docs/xilinx2016_2/SDK_Doc/SDK_tasks/task_profilingtheapplication.html

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.

Thanks

0 Kudos
11 Replies
Adventurer
Adventurer
475 Views
Registered: ‎08-27-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi

I am still waiting for the reply. Any help is truly appreciated. 

Cheers

0 Kudos
Xilinx Employee
Xilinx Employee
453 Views
Registered: ‎08-20-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi @immwn 

Please have a look at the link below

https://www.xilinx.com/html_docs/xilinx2018_2/SDK_Doc/SDK_tasks/sdk_t_run_profiler.html

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Xilinx Employee
Xilinx Employee
435 Views
Registered: ‎08-20-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi @immwn 

Is above link sufficient?

or you need any further assistance.

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Adventurer
Adventurer
413 Views
Registered: ‎08-27-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi @nutang 

It did not work for me. I followed the following link to create HelloWorld application for Arm A53 of Zynq US+.

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_3/ug1209-embedded-design-tutorial.pdf

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

Selection_205.png

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.

Selection_207.png

For the step 2, "Enable profiling (-pg)" option was not there.

Selection_206.png

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?

Thanks

0 Kudos
Xilinx Employee
Xilinx Employee
406 Views
Registered: ‎08-20-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi @immwn 

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

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Adventurer
Adventurer
398 Views
Registered: ‎08-27-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi @nutang 

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?

Thanks

0 Kudos
Xilinx Employee
Xilinx Employee
396 Views
Registered: ‎08-20-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi @immwn 

I will create a video and share latest by tomorrow.

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Adventurer
Adventurer
394 Views
Registered: ‎08-27-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi @nutang 

That would be very helpful. 

Thanks a lot

0 Kudos
Highlighted
Contributor
Contributor
382 Views
Registered: ‎02-06-2019

Re: gprof profiling in SDSoC Emulation for ZCU102 board

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? 

0 Kudos
Adventurer
Adventurer
349 Views
Registered: ‎08-27-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi @nutang ,

I have been waiting for your video. Or can you please confirm if gprof profiling is not supported in A53 arm processor of ZCU102 board as @yasin.kagan mentioned?

Thanks as always

0 Kudos
Xilinx Employee
Xilinx Employee
332 Views
Registered: ‎08-20-2018

Re: gprof profiling in SDSoC Emulation for ZCU102 board

Hi @immwn 

Yes, the document is correct.

I will confirm with concerned team and let you all know.

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos