SceSysLibTrace: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
== Module ==
== Module ==


=== Known NIDs ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! Name !! World !! Privilege !! NID
! Version !! World !! Privilege
|-
|-
| 3.65 || SceSysLibTrace || Non-secure || Kernel || 0xC333D512
| 0.940-3.65 || Non-secure || Kernel
|}
|}


Line 17: Line 16:
! Version !! Name !! World !! Visibility !! NID
! Version !! Name !! World !! Visibility !! NID
|-
|-
| 0.990-3.65 || [[SceSysLibTrace#SceSyslibtraceForKernel|SceSyslibtraceForKernel]] || Non-secure || Kernel || 0x9D33EE8D
| 0.940-0.990 || [[SceSysLibTrace#SceSyslibtrace|SceSyslibtrace]] || Non-secure || User || 0x696ED3DB
|-
|-
| 0.990 || [[SceSysLibTrace#SceSyslibtrace|SceSyslibtrace]] || Non-secure || User || 0x696ED3DB
| 0.940-3.65 || [[SceSysLibTrace#SceSyslibtraceForKernel|SceSyslibtraceForKernel]] || Non-secure || Kernel || 0x9D33EE8D
|-
|-
| 0.990-3.65 || [[SceSysLibTrace#SceNidsymtblForDriver|SceNidsymtblForDriver]] || Non-secure || Kernel || 0x3F9BEA99
| 0.940-3.65 || [[SceSysLibTrace#SceNidsymtblForDriver|SceNidsymtblForDriver]] || Non-secure || Kernel || 0x3F9BEA99
|}
|}


== SceSyslibtraceForKernel ==
== SceSyslibtraceForKernel ==
=== sceSyslibtraceSetTargetSyscallLibForKernel ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.931-0.940 || 0xAB6A0C53
|}
=== sceSyslibtraceClearTargetSyscallLibForKernel ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.931-0.940 || 0x7E843A85
|}
=== sceSyslibtraceStartSyscallTraceForKernel ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.931-0.940 || 0x5DEF9EDF
|}
=== sceSyslibtraceStopSyscallTraceForKernel ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.931-0.940 || 0xDD47649F
|}
=== sceSyslibtraceCallbackRegisterLibsForKernel ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.931-0.940 || 0x1EDA3691
|}
=== sceSyslibtraceCallbackDeregisterLibsForKernel ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.931-0.940 || 0xEA56BE7C
|}
=== sceSyslibtraceCreateSyscallTraceForKernel ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.940 || 0xF9CB8BA9
|}
This is a guessed name.
=== sceSyslibtraceDestroySyscallTraceForKernel ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.940 || 0xBD326721
|}
This is a guessed name.


To check:
To check:
          sceSyslibtraceCallbackRegisterLibs: 0x1EDA3691
          sceSyslibtraceStartSyscallTrace: 0x5DEF9EDF
           SceSyslibtraceForKernel_7CC73CDA: 0x7CC73CDA
           SceSyslibtraceForKernel_7CC73CDA: 0x7CC73CDA
          sceSyslibtraceClearTargetSyscallLib: 0x7E843A85
          sceSyslibtraceSetTargetSyscallLib: 0xAB6A0C53
          destroy_syscall_trace: 0xBD326721
          sceSyslibtraceStopSyscallTrace: 0xDD47649F
          sceSyslibtraceCallbackDeregisterLibs: 0xEA56BE7C
          create_syscall_trace: 0xF9CB8BA9
Known names from 0.931:
    sceSyslibtraceCallbackRegisterLibs
    sceSyslibtraceCallbackDeregisterLibs
    sceSyslibtraceClearTargetSyscallLib
    sceSyslibtraceStopSyscallTrace
    sceSyslibtraceStartSyscallTrace
    sceSyslibtraceSetTargetSyscallLib


== SceSyslibtrace ==
== SceSyslibtrace ==
Line 111: Line 161:
! Version !! NID
! Version !! NID
|-
|-
| 0.990-3.65 || 0x138A9106
| 0.940-3.65 || 0x138A9106
|}
|}


<source lang="C">
<source lang="C">
// Return the number of functions in the buffer
// Returns the number of functions in the buffer
// functions_table_addr is a pointer overwritten by a pointer to SceSysLibTrace nid_symbol_table
// functions_table_addr is a pointer overwritten by a pointer to SceSysLibTrace nid_symbol_table
SceUInt32 get_nid_symbol_table(const void **nid_symbol_table_addr);
SceUInt32 get_nid_symbol_table(const void **nid_symbol_table_addr);
Line 124: Line 174:
|-
|-
! Version !! NID
! Version !! NID
|-
| 0.931-0.940 || not present
|-
|-
| 3.60-3.65 || 0x985E2935
| 3.60-3.65 || 0x985E2935

Revision as of 21:28, 15 September 2022

Module

Version World Privilege
0.940-3.65 Non-secure Kernel

Libraries

Known NIDs

Version Name World Visibility NID
0.940-0.990 SceSyslibtrace Non-secure User 0x696ED3DB
0.940-3.65 SceSyslibtraceForKernel Non-secure Kernel 0x9D33EE8D
0.940-3.65 SceNidsymtblForDriver Non-secure Kernel 0x3F9BEA99

SceSyslibtraceForKernel

sceSyslibtraceSetTargetSyscallLibForKernel

Version NID
0.931-0.940 0xAB6A0C53

sceSyslibtraceClearTargetSyscallLibForKernel

Version NID
0.931-0.940 0x7E843A85

sceSyslibtraceStartSyscallTraceForKernel

Version NID
0.931-0.940 0x5DEF9EDF

sceSyslibtraceStopSyscallTraceForKernel

Version NID
0.931-0.940 0xDD47649F

sceSyslibtraceCallbackRegisterLibsForKernel

Version NID
0.931-0.940 0x1EDA3691

sceSyslibtraceCallbackDeregisterLibsForKernel

Version NID
0.931-0.940 0xEA56BE7C

sceSyslibtraceCreateSyscallTraceForKernel

Version NID
0.940 0xF9CB8BA9

This is a guessed name.

sceSyslibtraceDestroySyscallTraceForKernel

Version NID
0.940 0xBD326721

This is a guessed name.

To check:

         SceSyslibtraceForKernel_7CC73CDA: 0x7CC73CDA

SceSyslibtrace

_sceSyslibtraceClearInfo

Version NID
0.940-0.990 0xA92D1FD0

_sceSyslibtraceClearTargetLib

Version NID
0.940-0.990 0xC3A9F28D

_sceSyslibtraceKttyWrite

Version NID
0.940-0.990 0xE4458A16

_sceSyslibtraceRegisterInfo

Version NID
0.940-0.990 0x96B1409F

_sceSyslibtraceSetTargetLib

Version NID
0.940-0.990 0x303152C8

_sceSyslibtraceStartTrace

Version NID
0.940-0.990 0x61A80614

_sceSyslibtraceStopTrace

Version NID
0.940-0.990 0x1D534834

SceNidsymtblForDriver

get_nid_symbol_table

Version NID
0.940-3.65 0x138A9106
// Returns the number of functions in the buffer
// functions_table_addr is a pointer overwritten by a pointer to SceSysLibTrace nid_symbol_table
SceUInt32 get_nid_symbol_table(const void **nid_symbol_table_addr);

sceNidsymtblGetFunctionNameByNIDForDriver

Version NID
0.931-0.940 not present
3.60-3.65 0x985E2935

This is a guessed name.

This function is registered using SceSysmem#sceKernelSysrootSetGetFunctionNameByNIDFuncForKernel.

int sceNidsymtblGetFunctionNameByNIDForDriver(SceNID funcnid, const char **name);