vitasdk
Documentation of the vitasdk
|
Exports for Kernel.
Include the header file in your project:
Link the library to the executable:
Functions | |
VITASDK_BUILD_ASSERT_EQ (0x18, SceKernelDebugInfo) | |
int | ksceKernelDebugPutchar (int character) |
int | ksceKernelPrintf (const char *fmt,...) |
Print log. More... | |
int | ksceKernelPrintfLevel (SceUInt32 level, const char *fmt,...) |
Kernel Printf. More... | |
int | ksceKernelPrintfLevelWithInfo (SceUInt32 level, SceUInt32 flags, const SceKernelDebugInfo *dbginfo, const char *fmt,...) |
Kernel Printf Level with Info. More... | |
int | ksceKernelPrintfWithInfo (SceUInt32 flags, const SceKernelDebugInfo *dbginfo, const char *fmt,...) |
Kernel Printf with Info. More... | |
int | ksceKernelVprintf (const char *fmt, va_list arg) |
Kernel Vprintf. More... | |
int | ksceKernelVprintfLevel (SceUInt32 level, const char *fmt, va_list arg) |
Kernel Vprintf Level. More... | |
__attribute__ ((__noreturn__)) void ksceKernelPanic(const SceKernelDebugInfo *dbginfo | |
Kernel Panic. More... | |
const void const char void | ksceKernelAssert (SceBool condition, const SceKernelDebugInfo *dbginfo, const void *lr) |
Assertion. More... | |
void | ksceKernelAssertLevel (SceUInt32 level, SceBool condition, const SceKernelDebugInfo *dbginfo, const void *lr) |
Printf Assertion Level. More... | |
void | ksceKernelPrintfAssertLevel (SceUInt32 level, SceBool condition, const SceKernelDebugInfo *dbginfo, const void *lr, const char *fmt,...) |
Printf Assertion Level. More... | |
int | ksceKernelRegisterKprintfHandler (int(*handler)(int unk, const char *format, va_list args), void *argp) |
int | ksceKernelRegisterDebugPutcharHandler (int(*handler)(void *argp, char c), void *argp) |
void * | ksceKernelGetDebugPutcharHandler (void) |
int | ksceKernelEnableCrashDump (SceBool enable) |
Set CrashDump enable. More... | |
int | ksceKernelGetAssertLevel (void) |
Get current minimum assertion level. More... | |
SceUInt32 | ksceKernelSetAssertLevel (SceUInt32 level) |
Get current assert level. More... | |
struct SceKernelDebugEventLog1 | __attribute__ ((packed)) SceKernelDebugEventLog1 |
VITASDK_BUILD_ASSERT_EQ (0x1C, SceKernelDebugEventLog1) | |
VITASDK_BUILD_ASSERT_EQ (4, SceKernelDebugEventLog2) | |
VITASDK_BUILD_ASSERT_EQ (0x54, SceKernelDebugEventLog3) | |
VITASDK_BUILD_ASSERT_EQ (0x54+0x40, SceKernelDebugEventLog) | |
int | ksceEventLogGetInfo (void *buf, SceSize buf_size, SceSize *read_blocks) |
Get event log info. More... | |
int | ksceKernelGetTtyInfo (char *buf, SceSize buf_size) |
Get tty log info. More... | |
Typedefs | |
typedef SceKernelDebugInfo | SceKernelDebugMessageContext |
struct SceKernelDebugInfo |
Data Fields | ||
---|---|---|
union SceKernelDebugInfo | __attribute__ | |
const char * | func | |
SceUInt32 | line | |
const char * | file |
struct SceKernelDebugEventLog1 |
Data Fields | ||
---|---|---|
int | data_0x40 | |
SceUID | pid | |
int | budget_type | |
int | data_0x4C | 0xA |
char | titleid[0xC] |
struct SceKernelDebugEventLog3 |
struct SceKernelDebugEventLog |
Data Fields | ||
---|---|---|
SceSize | size | struct size(variable size) |
int | data_0x04 | 0xA, maybe titleid size |
char | titleid[0xC] | Title id of the process where the event occurred. |
int | flags | Event flags. |
SceUID | ppid | Parent process id. |
SceUID | data_0x1C | Thread id? |
int | rsvd[4] | |
SceUInt64 | time | Time of the event occurred. |
int | data_0x38 | |
SceSize | item_size | Event data size. |
union SceKernelDebugEventLog | __unnamed__ |
union SceKernelDebugInfo.__attribute__ |
Data Fields | ||
---|---|---|
__attribute__ | __unnamed__ | |
__attribute__ | __unnamed__ |
struct SceKernelDebugInfo.__attribute__.__unnamed18__ |
struct SceKernelDebugInfo.__attribute__.__unnamed20__ |
union SceKernelDebugEventLog.__unnamed22__ |
Data Fields | ||
---|---|---|
SceKernelDebugEventLog1 | type1 | |
SceKernelDebugEventLog2 | type2 | |
SceKernelDebugEventLog3 | type3 |
#define __PSP2FILEHASH__ (0) |
#define __PSP2FILE__ __FILE__ |
#define SCE_KERNEL_PANIC | ( | ) |
#define SCE_KERNEL_PRINTF_PANIC | ( | __fmt__, | |
... | |||
) |
#define SCE_KERNEL_ASSERT | ( | __cond__ | ) |
#define SCE_KERNEL_ASSERT_LEVEL | ( | __level__, | |
__cond__ | |||
) |
#define SCE_KERNEL_PRINTF_LEVEL | ( | __level__, | |
__fmt__, | |||
... | |||
) |
#define ksceDebugPrintf ksceKernelPrintf |
#define ksceDebugPrintf2 ksceKernelPrintfWithInfo |
#define ksceDebugPrintKernelPanic ksceKernelPanic |
#define ksceDebugPrintfKernelPanic ksceKernelVprintfPanic |
#define ksceDebugPrintKernelAssertion ksceKernelAssert |
#define ksceDebugPrintfKernelAssertion ksceKernelPrintfAssertLevel |
#define ksceKernelGetMinimumAssertionLevel ksceKernelGetAssertLevel |
#define ksceDebugPutchar ksceKernelDebugPutchar |
#define ksceDebugSetHandlers ksceKernelRegisterKprintfHandler |
#define ksceDebugRegisterPutcharHandler ksceKernelRegisterDebugPutcharHandler |
#define ksceDebugGetPutcharHandler ksceKernelGetDebugPutcharHandler |
#define ksceDebugDisableInfoDump ksceKernelEnableCrashDump |
#define ksceKernelSetMinimumAssertionLevel ksceKernelSetAssertLevel |
enum SceKernelDebugLevel |
enum SceKernelAssertLevel |
VITASDK_BUILD_ASSERT_EQ | ( | 0x18 | , |
SceKernelDebugInfo | |||
) |
int ksceKernelDebugPutchar | ( | int | character | ) |
int ksceKernelPrintf | ( | const char * | fmt, |
... | |||
) |
Print log.
[in] | fmt | - print fmt |
int ksceKernelPrintfLevel | ( | SceUInt32 | level, |
const char * | fmt, | ||
... | |||
) |
Kernel Printf.
[in] | level | - The printf level. see::SceKernelDebugLevel |
[in] | fmt | - The text format |
int ksceKernelPrintfLevelWithInfo | ( | SceUInt32 | level, |
SceUInt32 | flags, | ||
const SceKernelDebugInfo * | dbginfo, | ||
const char * | fmt, | ||
... | |||
) |
Kernel Printf Level with Info.
[in] | level | - The printf level. see::SceKernelDebugLevel |
[in] | flags | - The debug info flags |
[in] | dbginfo | - The debug info |
[in] | fmt | - The text format |
int ksceKernelPrintfWithInfo | ( | SceUInt32 | flags, |
const SceKernelDebugInfo * | dbginfo, | ||
const char * | fmt, | ||
... | |||
) |
Kernel Printf with Info.
[in] | flags | - ctx print flags, see:SceKernelDebugPrintFlags |
[in] | dbginfo | - debug info |
[in] | fmt | - print fmt |
int ksceKernelVprintf | ( | const char * | fmt, |
va_list | arg | ||
) |
Kernel Vprintf.
[in] | fmt | - The text format |
[in] | arg | - The fmt list |
int ksceKernelVprintfLevel | ( | SceUInt32 | level, |
const char * | fmt, | ||
va_list | arg | ||
) |
Kernel Vprintf Level.
[in] | level | - The printf level. see::SceKernelDebugLevel |
[in] | fmt | - The text format |
[in] | arg | - The fmt list |
__attribute__ | ( | (__noreturn__) | ) | const |
Kernel Panic.
Kernel Printf Panic.
[in] | dbginfo | - The debug info |
[in] | lr | - The link register |
[in] | dbginfo | - The debug info |
[in] | lr | - The link register |
[in] | fmt | - The text format |
const void const char void ksceKernelAssert | ( | SceBool | condition, |
const SceKernelDebugInfo * | dbginfo, | ||
const void * | lr | ||
) |
Assertion.
The condition SCE_FALSE to stopped CPU core.
[in] | condition | - The condition |
[in] | dbginfo | - The debug info |
[in] | lr | - The link register |
void ksceKernelAssertLevel | ( | SceUInt32 | level, |
SceBool | condition, | ||
const SceKernelDebugInfo * | dbginfo, | ||
const void * | lr | ||
) |
Printf Assertion Level.
The condition SCE_FALSE to stopped CPU core.
[in] | level | - The print level. see:SceKernelAssertLevel |
[in] | condition | - The condition |
[in] | dbginfo | - The debug info |
[in] | lr | - The link register |
void ksceKernelPrintfAssertLevel | ( | SceUInt32 | level, |
SceBool | condition, | ||
const SceKernelDebugInfo * | dbginfo, | ||
const void * | lr, | ||
const char * | fmt, | ||
... | |||
) |
Printf Assertion Level.
The condition SCE_FALSE to stopped CPU core.
[in] | level | - The print level. see:SceKernelAssertLevel |
[in] | condition | - The condition |
[in] | dbginfo | - The debug info |
[in] | lr | - The link register |
[in] | fmt | - The text fmt |
int ksceKernelRegisterKprintfHandler | ( | int(*)(int unk, const char *format, va_list args) | handler, |
void * | argp | ||
) |
int ksceKernelRegisterDebugPutcharHandler | ( | int(*)(void *argp, char c) | handler, |
void * | argp | ||
) |
void* ksceKernelGetDebugPutcharHandler | ( | void | ) |
int ksceKernelEnableCrashDump | ( | SceBool | enable | ) |
Set CrashDump enable.
[in] | enable | - pass SCE_TRUE to do reboot on kernel panic or kernel assert failed. |
int ksceKernelGetAssertLevel | ( | void | ) |
Get current minimum assertion level.
Get current assert level.
[in] | level | - new assert level |
struct SceKernelDebugEventLog1 __attribute__ | ( | (packed) | ) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x1C | , |
SceKernelDebugEventLog1 | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
SceKernelDebugEventLog2 | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x54 | , |
SceKernelDebugEventLog3 | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x54+ | 0x40, |
SceKernelDebugEventLog | |||
) |
Get event log info.
[out] | buf | - The SceKernelDebugEventLog buffer list |
[in] | buf_size | - The buf size |
[out] | read_blocks | - The read event log number |
int ksceKernelGetTtyInfo | ( | char * | buf, |
SceSize | buf_size | ||
) |
Get tty log info.
[out] | buf | - The tty log buffer |
[in] | buf_size | - The buf size |