wavelength 1.0.0
Loading...
Searching...
No Matches
snprofil.h File Reference

Go to the source code of this file.

Classes

struct  ProfileBuffer
 The profiling buffer. More...
struct  ProfileBufferInfo
 Reply to every request. More...

Functions

int start (int argc, char **argv)
 Module entry.

Variables

constexpr unsigned int kSnProfilRpcServer = 0x12345677
 The SNProfil module serves a profiling buffer to the EE through a SIF RPC server.
constexpr int kProfileHeaderSize = 0x80
 Size of ProfileBuffer::header.
constexpr int kProfileSamplesSize = 0x8000
 Size of ProfileBuffer::samples.

Function Documentation

◆ start()

int start ( int argc,
char ** argv )

Module entry.

Start the thread that runs the RPC server.

Parameters
argcArgument count.
argvArguments.
Returns
#RESIDENT_END, or #NO_RESIDENT_END when the thread cannot be created.
Ghidra address:
NTSC-U/C: 0x00000000

Variable Documentation

◆ kSnProfilRpcServer

unsigned int kSnProfilRpcServer = 0x12345677
constexpr

The SNProfil module serves a profiling buffer to the EE through a SIF RPC server.

Every request receives a ProfileBufferInfo that locates ProfBuffer in IOP memory. SIF RPC server identifier of the module.

◆ kProfileHeaderSize

int kProfileHeaderSize = 0x80
constexpr

◆ kProfileSamplesSize

int kProfileSamplesSize = 0x8000
constexpr