[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.linuxtools] Re: OProfile on openSUSE 11.1

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




Hmm odd.. the code for getting the session names simply reads the samples directory (/var/lib/oprofile/samples), and loops through the struct dirent*s for dir names. To match the events to the samples it builds up some info from the sample files on disk and matches event names to session names.


I would say that perhaps the files aren't readable but there's a stat which should catch it, and otherwise I don't see where it would fail.. I'll admit I'm not too familiar with this part of the code, it was written by the previous maintainer of the plugin.

If you're willing to debug through opxml.. :) some breakpoints would be:

opxml.cc:412 (jump into get_sessions, also check if opinfo info has appropriate data)
opxml.cc:426 (jump into session::get_events() and see what session events are inserted, if any)


and related code paths


Thanks,

Kent