[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.linuxtools] Re: OProfile on openSUSE 11.1
|
Hi Kent,
>> Kent, I don't see anything in the OProfile view too. The consolehelper
>> issue had been "workarounded" (just copied it) and I've run
>> "opcontrol --init" as root myself, the kernel module is loaded. "opxml
>> info" does spit out some XML, but still it does not show anything in the
>> view. Refresh view does not help. Any further hints [where to put a
>> breakpoint]?
>>
>> Thanks,
>
> Hmm, are there any exceptions logged to the console? Unless the plugin
> can't find a contributing opxml fragment, or that plugin can't find the
> opxml binary (both cases should pop up an errorDialog) I can't see why it
> wouldn't parse the xml properly.
>
> If you're willing to debug it,
> org.eclipse.linuxtools.oprofile.ui.view->OprofileView.java:99-120 would be
> a good area. Uncomment the sys.out.println at line 105 and if the results
> are being parsed correctly, it'll print out the parsed data. After that,
> follow if UiRoot is parsed correctly (line 109), perhaps delving into the
> UiModelRoot class.
OpModelRoot#refreshModel() is calling Oprofile.getEvents(). The getEvents()
call returns an empty array, therefor (I guess) nothing is shown. Some where
down, "opxml sessions" is executed. This is returning an empty list too, but
(I guess) it shouldn't?
...
x86_64> ./opxml sessions
<?xml version="1.0" encoding="UTF-8"?>
<sessions>
</sessions>
...
Thanks,
Uwe Stieber, Wind River