Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:10 Go to next message
Bhushan Ivatury is currently offline Bhushan IvaturyFriend
Messages: 9
Registered: June 2019
Junior Member
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 100 times)
  • Attachment: samples.png
    (Size: 197.94KB, Downloaded 69 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 20:12 Go to previous messageGo to next message
Jeff Johnston is currently offline Jeff JohnstonFriend
Messages: 215
Registered: July 2009
Senior Member
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 06:21 Go to previous message
Bhushan Ivatury is currently offline Bhushan IvaturyFriend
Messages: 9
Registered: June 2019
Junior Member
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: Fri Mar 29 08:26:32 GMT 2024

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

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

Back to the top