Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Subv07/01/2019
- Anybody feels like working on an IPC debugger for citra? It should help out a lot with debugging LLE module interactions
- B3N3007/02/2019
- can you define what it should do (maybe write some stories). So we can just write small changes one at at time till the debugger is fully functional?
- Subv07/02/2019
- it should basically be a Qt widget that logs every single IPC request and its respective reply
- selecting a request should tell me:
- - The Process that initiated it
- - The thread that initiated it
- - The target session
- - Whether it's a request or a reply
- - Whether the target is HLE or not
- - The command header
- - The response code if a reply (Or maybe we simply dump the whole IPC packet from the buffer according to the header?)
- It should also highlight those requests that didn't return RESULT_SUCCESS
- it should highlight unhandled requests if the target is HLE
- (in the future maybe let us place breakpoints so that we can break on a specific request being made, but that's way more ambitious and not something i'd consider 'easy')
- B3N3007/02/2019
- my idea was if we split it down into small simple task that can get added a single PR it's way easier to get it done and you probably get more devs to work on it
- All in all what you want doesn't sound difficult but it involves ui so I'm out :stuck_out_tongue:
- Subv07/02/2019
- the only sane split i can see here is separating the core implementation ( a "recorder"-like feature) from the presentation logic in Qt (a subscriber model)
- something similar to how the PICA recorders work
- B3N3007/02/2019
- you could still spilt it into HLE/LLE request/response parts
- Subv07/02/2019
- the core emits "events" with the required information, and the frontend subscribes to those events to present them in the UI
- @B3N30 eh, i'm not sure about that
- the core part isn't even hard to do, just hook SendSyncRequest / ReplyAndReceive for LLE, and SendSyncRequest / SendSyncRequest for HLE
- i would do it myself but my laptop is broken
- B3N3007/02/2019
- like I said I can do the core part but not the ui
- BreadFish6407/03/2019
- sigh
- How frequent are IPC requests? Like multiple per second?
- wwylele / 白疾風07/03/2019
- I'd bet 100 per second
- B3N3007/03/2019
- i think we need to specify some filter for that debugger
- BreadFish6407/03/2019
- Yeah
- B3N3007/03/2019
- usually the ones you are interested in aren't that frequent
- BreadFish6407/03/2019
- Well I'm away from home for 6 more days
- I could try to throw something together when I'm back
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement