mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
c7b0d77970
Co-authored-by: Ali Almohaya <AliAlmohaya@gmail.com>
36 lines
836 B
C
36 lines
836 B
C
#ifndef KYTY_COMMON_PLATFORM_SYSDBG_H_
|
|
#define KYTY_COMMON_PLATFORM_SYSDBG_H_
|
|
|
|
#include "common/common.h"
|
|
|
|
// NOLINTNEXTLINE(readability-identifier-naming)
|
|
struct sys_dbg_stack_info_t {
|
|
#if KYTY_PLATFORM == KYTY_PLATFORM_WINDOWS
|
|
uintptr_t addr;
|
|
|
|
uintptr_t reserved_addr;
|
|
size_t reserved_size;
|
|
uintptr_t guard_addr;
|
|
size_t guard_size;
|
|
uintptr_t commited_addr;
|
|
size_t commited_size;
|
|
|
|
size_t total_size;
|
|
#elif KYTY_PLATFORM == KYTY_PLATFORM_LINUX
|
|
uintptr_t code_addr;
|
|
uintptr_t addr;
|
|
uintptr_t commited_addr;
|
|
size_t commited_size;
|
|
size_t total_size;
|
|
size_t code_size;
|
|
|
|
// Full stack reservation reported by pthread.
|
|
uintptr_t reserved_addr;
|
|
size_t reserved_size;
|
|
#endif
|
|
};
|
|
|
|
void SysStackUsage(sys_dbg_stack_info_t& s); // NOLINT(google-runtime-references)
|
|
|
|
#endif /* KYTY_COMMON_PLATFORM_SYSDBG_H_ */
|