Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Reading MIPS traces

On 2014-12-09 09:03 AM, Simon Marchi wrote:
> On 2014-12-09 03:28 AM, Gerlando Falauto wrote:
>> Hi,
>>
>> I'm trying to use the Linux Tools Trace Viewer (i.e. Trace Compass 
>> outside of Eclipse, if I understand it correctly) to read some traces 
>> created by LTTNG on a MIPS (big endian) architecture.
>>
>> However, upon clicking on the trace file in order to show it, I get this 
>> message:
>> Exception in thread "Thread-35" java.lang.NullPointerException
>> 	at 
>> org.eclipse.linuxtools.tmf.ctf.core.CtfTraceManager.getIterator(CtfIteratorManager.java:169)
>> 	at 
>> org.eclipse.linuxtools.tmf.ctf.core.CtfIteratorManager.getIterator(CtfIteratorManager.java:74)
>> 	at 
>> org.eclipse.linuxtools.tmf.ctf.core.CtfTmfContext.getIterator(CtfTmfContext.java:200)
>> 	at 
>> org.eclipse.linuxtools.tmf.ctf.core.CtfTmfContext.setLocation(CtfTmfContext.java:83)
>> 	at 
>> org.eclipse.linuxtools.tmf.ctf.core.CtfTmfTrace.seekEvent(CtfTmfTrace.java:267)
>> 	at 
>> org.eclipse.linuxtools.tmf.core.trace.TmfTrace.seekEvent(TmfTrace.java:543)
>> 	at 
>> org.eclipse.linuxtools.tmf.ctf.core.CtfTmfTrace.initTrace(CtfTmfTrace.java:121)
>> 	at 
>> org.eclipse.linuxtools.tmf.core.trace.TmfTrace.initTrace(TmfTrace.java:207)
>> 	at 
>> org.eclipse.linuxtools.tmf.ui.project.model.TmfOpenTraceHelper.openTraceElement(TmfOpenTraceHelper.java:257)
>> 	at 
>> org.eclipse.linuxtools.tmf.ui.project.model.TmfOpenTraceHelper.openProjectElement(TmfOpenTraceHelper.java:309)
>> 	at 
>> org.eclipse.linuxtools.tmf.ui.project.model.TmfOpenTraceHelper.access$0(TmfOpenTraceHelper.java:306)
>> 	at 
>> org.eclipse.linuxtools.tmf.ui.project.model.TmfOpenTraceHelper$1.run(TmfOpenTraceHelper.java:360)
>>
>>
>> The same test run on an ARM (little endian) platform seems to work fine 
>> though. As I remember there've been endianness issues in the past, and I 
>> assume most tests are run on x86 platform (hence little endian), could 
>> it be possible that we're hitting the same issue again?
>>
>> Please find attached a test case where I could get the above error.
>>
>> If it makes any difference, the daily build I used is 
>> linuxtools-trace-viewer-1.1.0-20141203-0203-linux.gtk.x86_64.tar.gz.
>>
>> Could anyone please help me with this issue?
>>
>> Thank you!
>> Gerlando
> 
> Hi Gerlando,
> 
> Anything called "linuxtools-trace-viewer" has to be outdated, since the TraceCompass forked from the Linux Tools repository some time ago. Anything recent would be named trace-compass-*-linux.gtk.x86_64.tar.gz.
> 
> The date "20141203" in the package file name indicates that something still produces new daily builds from the old code. It's very confusing, since it makes people believe that it is up-to-date, when it isn't. Could you tell where you got that archive from?
> 
> FYI, I tested your trace with the current TraceCompass RCP, and it works fine, so I guess the problem has been fixed since the fork.
> 
> It seems like official daily builds are not available yet from the project page though (it's still being set up). Meanwhile, if you can afford it (it takes quite a bit of disk and net resources), you could build your own RCP package from the TraceCompass repo. It's a matter of cloning the repo and running:
> 
>   $ mvn clean install -Pbuild-rcp -Dmaven.test.skip=true
> 
> You will then find your build package in
> 
>   org.eclipse.tracecompass.rcp.product/target/products/trace-compass-*-linux.gtk.x86_64.tar.gz
> 
> Simon

Oh, I meant to include the git repository url (you can probably find it on the project page, but still):

git://git.eclipse.org/gitroot/tracecompass/org.eclipse.tracecompass.git

Simon


Back to the top