| View previous topic :: View next topic |
| Author |
Message |
davidgf
Joined: 31 Aug 2009 Posts: 22
|
Posted: Sat Nov 21, 2009 9:07 am Post subject: PSP Hardware Profiler |
|
|
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 |
|
 |
davidgf
Joined: 31 Aug 2009 Posts: 22
|
Posted: Sun Nov 29, 2009 9:58 am Post subject: |
|
|
Can anyone point to some app source which makes use of this at least?
Thanks again |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sun Nov 29, 2009 8:01 pm Post subject: |
|
|
| 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 |
|
 |
davidgf
Joined: 31 Aug 2009 Posts: 22
|
Posted: Tue Dec 01, 2009 5:01 am Post subject: |
|
|
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 |
|
 |
|