kern: implement port debug
This commit is contained in:
@@ -42,6 +42,10 @@ namespace ams::kern {
|
||||
|
||||
constexpr const KPort *GetParent() const { return this->parent; }
|
||||
|
||||
ALWAYS_INLINE s32 GetNumSessions() const { return this->num_sessions; }
|
||||
ALWAYS_INLINE s32 GetPeakSessions() const { return this->peak_sessions; }
|
||||
ALWAYS_INLINE s32 GetMaxSessions() const { return this->max_sessions; }
|
||||
|
||||
bool IsLight() const;
|
||||
|
||||
/* Overridden virtual functions. */
|
||||
|
||||
@@ -31,4 +31,7 @@ namespace ams::kern::KDumpObject {
|
||||
void DumpProcess();
|
||||
void DumpProcess(u64 process_id);
|
||||
|
||||
void DumpPort();
|
||||
void DumpPort(u64 process_id);
|
||||
|
||||
}
|
||||
|
||||
@@ -71,6 +71,8 @@ namespace ams::kern {
|
||||
KServerSession &GetServerSession() { return this->server; }
|
||||
const KClientSession &GetClientSession() const { return this->client; }
|
||||
const KServerSession &GetServerSession() const { return this->server; }
|
||||
|
||||
const KClientPort *GetParent() const { return this->port; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user