Skip to main content



      Home
Home » Eclipse Projects » Linux Tools Project » gmon.out generated on target board is failing due to EOF Exception while visualizing in Eclipse GPRO(GPROF Viewer gmon.out error )
gmon.out generated on target board is failing due to EOF Exception while visualizing in Eclipse GPRO [message #1817782] Fri, 29 November 2019 00:10 Go to next message
Eclipse UserFriend
Hello
We are using the riscv-gnu-toolchain and used -pg to do the profiling on the remote target board . The gmon.out is produced but its not been able to visualize in the Eclipse Linuxtools GPROF viewer plugin.

The viewer throws an end of file exception while decoding the histogram.

The same gmon.out was able to generate output using gprof2dot using graphviz

Attached is the gmon.out and output from gprof2dot.

The OS on which Eclipse is installed is Ubuntu 19.x

Target is a RISCV board.

Attached is the gmon.out and samples.png

The error occurred is below.

!ENTRY org.eclipse.linuxtools.gprof 4 4 2019-11-25 18:00:55.663
!MESSAGE
!STACK 0
java.io.EOFException
at java.base/java.io.DataInputStream.readFully(DataInputStream.java:202)
at org.eclipse.linuxtools.internal.gprof.utils.LEDataInputStream.readShort(LEDataInputStream.java:40)
at org.eclipse.linuxtools.internal.gprof.parser.HistogramDecoder.decodeHistRecord(HistogramDecoder.java:183)
at org.eclipse.linuxtools.internal.gprof.parser.GmonDecoder.readGmonContent(GmonDecoder.java:195)
at org.eclipse.linuxtools.internal.gprof.parser.GmonDecoder.read(GmonDecoder.java:116)
at org.eclipse.linuxtools.internal.gprof.view.GmonView.displayGprofView(GmonView.java:252)
at org.eclipse.linuxtools.internal.gprof.action.OpenGmonAction.open(OpenGmonAction.java:52)

Any help appreciated

Bhushan
  • Attachment: gmon.zip
    (Size: 1.62KB, Downloaded 145 times)
  • Attachment: samples.png
    (Size: 197.94KB, Downloaded 113 times)
Re: gmon.out generated on target board is failing due to EOF Exception while visualizing in Eclipse [message #1817829 is a reply to message #1817782] Fri, 29 November 2019 15:12 Go to previous messageGo to next message
Eclipse UserFriend
Please open a bug at bugs.eclipse.org against Tools Linux Tools gprof. In the bug, please refer to the level of Eclipse you are using and gcc version.
Re: gmon.out generated on target board is failing due to EOF Exception while visualizing in Eclipse [message #1817833 is a reply to message #1817829] Sat, 30 November 2019 01:21 Go to previous message
Eclipse UserFriend
Thank you
Previous Topic:Linux Tools 7.1.0 is released for Eclipse 2018-12
Next Topic:Valgrind on Eclipse 4.9 Error
Goto Forum:
  


Current Time: Thu Jul 03 09:08:14 EDT 2025

Powered by FUDForum. Page generated in 0.29343 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top