forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PSP Hardware Profiler

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
davidgf



Joined: 31 Aug 2009
Posts: 22

PostPosted: Sat Nov 21, 2009 9:07 am    Post subject: PSP Hardware Profiler Reply with quote

Hi everybody!

I'm having a problem with the psp hardware profiler. If I call any of these functions:
pspDebugProfilerClear, pspDebugProfilerEnable, pspDebugProfilerDisable
The PSP crashes with some load/store exception.

I've put just a pspDebugProfilerClear which should'n give any problem (it just erases the counters) and it crashes!

Anyone knows why? Maybe I should call those functions in kernel mode or something like that?

Thanks in advance!

David
Back to top
View user's profile Send private message
davidgf



Joined: 31 Aug 2009
Posts: 22

PostPosted: Sun Nov 29, 2009 9:58 am    Post subject: Reply with quote

Can anyone point to some app source which makes use of this at least?

Thanks again
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sun Nov 29, 2009 8:01 pm    Post subject: Reply with quote

Yes those functions can only be used in kernel mode. If you are using psplink you can set user profiling mode (assuming it still works on new firmwares) by using the profmode command (use "profmode t" to set single thread mode, it will context switch the regs, or "profmode g" to set global mode). Then access the regs through sceKernelReferThreadProfiler or sceKernelReferGlobalProfiler functions respectively.
Back to top
View user's profile Send private message
davidgf



Joined: 31 Aug 2009
Posts: 22

PostPosted: Tue Dec 01, 2009 5:01 am    Post subject: Reply with quote

Can I, instead of using psplink which gives me so much pain, create a prx module like exceptionHandler one with a wrapper for those functions?
Will this work?

Thanks for everything
David
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group