GMON data upload failed

GMON data upload failed

by Sacha Aleocha Nicholas Coppey -
Number of replies: 1

Hello,

We did all the measurements for the three implementations of the operation using the logic analyzer and a performance counter without problems. However, when we try using the GNU profiler, we get a weird behaviour.

It usually runs the program until the end, and starts uploading the GMON data, but at a random percentage of the upload, it crashes.

console output

Here is the command we use to run the code:

make all && nios2-download -g --write-gmon gmon_0.out *.elf && nios2-elf-gprof *.elf gmon_0.out > report_0.txt


It sometimes works, but even then, the results are not always coherent. Either the timings are similar to our previous measurements, either the time is 0 (we even sometimes cannot find some functions we call in the report).

Thank you for your help,

Sacha

In reply to Sacha Aleocha Nicholas Coppey

Re: GMON data upload failed

by Sahand Kashani -

Hi,

This is not a scientific answer, but in past years I've always seen that the Nios IDE is flaky when it calls nios2-download and nios2-elf-gprof in the background. We "solved" the issue by running the command you put in your post from the nios command shell.

It unfortunately didn't work all the time and it used to get stuck at times. If it does get stuck, just use ctrl+c to stop the program and launch it again until it works. I don't know exactly what's going on with nios2-elf-grof under the hood, but restarting the program a few times tends to work afterwards.