Thread list and info: it works fine.
Code: Select all
void Thread_List()
{
SceUID thid[100];
int thcount;
sceKernelGetThreadmanIdList(SCE_KERNEL_TMID_Thread, thid, 100, &thcount);
char s[64];
sprintf(s, "(%d)", thcount);
SceKernelThreadInfo thinfo;
int i;
for(i = 0; i < thcount; i++)
{
memset(&thinfo, 0, sizeof(SceKernelThreadInfo));
thinfo.size = sizeof(SceKernelThreadInfo);
sceKernelReferThreadStatus(thid[i], &thinfo);
printf("Thread : %s ",thinfo.name);
printf("\n");
}
}
Code: Select all
void module_List()
{
SceUID modid[100];
int modcount;
sceKernelGetModuleIdList(modid, 100, &modcount);
char s[64];
sprintf(s, "(%d)", modcount);
SceKernelModuleInfo minfo;
int i;
for(i = 0; i < modcount; i++)
{
memset(&minfo, 0, sizeof(SceKernelModuleInfo));
minfo.size = sizeof(SceKernelModuleInfo);
sceKernelQueryModuleInfo(modid[i], &minfo);
printf("Module : %s ", minfo.name);
printf("\n");
}
}
Any help please? Thanks in advance
Code: Select all
void check_RAM()
{
int i;
PspSysmemPartitionInfo pinfo;
for(i = 0; i < 6; i++)
{
memset(&pinfo, 0, sizeof(pinfo));
pinfo.size = sizeof(pinfo);
sceKernelQueryMemoryPartitionInfo(i + 1, &pinfo);
// sprintf( "%u 0x%08x 0x%08x 0x%08x 0x%08x 0x%x", i + 1, pinfo.memsize, pinfo.startaddr, sceKernelPartitionTotalFreeMemSize (i + 1), sceKernelPartitionMaxFreeMemSize (i + 1), pinfo.attr);
// printf( "%u 0x%08x 0x%08x 0x%08x 0x%08x 0x%x", i + 1, pinfo.memsize, pinfo.startaddr, sceKernelPartitionTotalFreeMemSize (i + 1), sceKernelPartitionMaxFreeMemSize (i + 1), pinfo.attr);
}
}