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 

Question about ps2link's HOOK_THREADS

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



Joined: 01 Sep 2007
Posts: 15

PostPosted: Mon Feb 25, 2008 2:21 pm    Post subject: Question about ps2link's HOOK_THREADS Reply with quote

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
View user's profile Send private message
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Mon Feb 25, 2008 5:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Fakeuser



Joined: 01 Sep 2007
Posts: 15

PostPosted: Sat Mar 01, 2008 5:51 pm    Post subject: Reply with quote

Thanks.

Seems ps2link will get exception if HOOK_THREADS and BUILTIN_IRXS are all enabled during booting(maybe ps2smap loading issue).
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 -> PS2 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