| View previous topic :: View next topic |
| Author |
Message |
Fakeuser
Joined: 01 Sep 2007 Posts: 15
|
Posted: Mon Feb 25, 2008 2:21 pm Post subject: Question about ps2link's HOOK_THREADS |
|
|
Hi,I'm newbie here,just start using ps2link.
I notice ps2link's HOOK_THREADS option will hook kernel CreateThread/DeleteThread calls to count current active threads.I wonder why not also hook iCreateThread,iDeleteThread,ExitDeleteThread..etc calls?
Is there any other way to count new active threads since ps2link launched instead of hook system calls? |
|
| Back to top |
|
 |
Lukasz

Joined: 19 Jan 2004 Posts: 248 Location: Denmark
|
Posted: Mon Feb 25, 2008 5:39 pm Post subject: |
|
|
I actually don't know why the interrupt safe thread syscalls are not hooked, I guess no one has requested/needed them yet. Feel free to submit a patch :-)
As for counting active threads, you can atleast get the status for all created threads by trying all possible thread IDs (starting from 0 to ?) using the syscall ReferThreadStatus _________________ Lukasz.dk |
|
| Back to top |
|
 |
Fakeuser
Joined: 01 Sep 2007 Posts: 15
|
Posted: Sat Mar 01, 2008 5:51 pm Post subject: |
|
|
Thanks.
Seems ps2link will get exception if HOOK_THREADS and BUILTIN_IRXS are all enabled during booting(maybe ps2smap loading issue). |
|
| Back to top |
|
 |
|