[GH-ISSUE #2033] [Feature Request]: Logging LLE functions #701

Open
opened 2026-02-27 21:07:41 +03:00 by kerem · 0 comments
Owner

Originally created by @mailwl on GitHub (Jan 3, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/2033

Checklist

  • I have searched for a similar issue in this repository and did not find one.

Description

it's hard to me explain in english, i want something like this:
functions from loaded libraries executes silent, what if we log some of it before call? Something like this:

int PS4_SYSV_ABI sceNpMutexInit(ScePthreadMutex* mutex, const char* name, bool b) {
    LOG_DEBUG(Lib_NpCommon, "calling native version {} {}", name, b);
    typedef PS4_SYSV_ABI int(*sceNpMutexInit_t)(ScePthreadMutex*, const char*, bool);
    auto func = (sceNpMutexInit_t)getLleExport("libSceNpCommon", "uEwag-0YZPc");
    int rc = 0;
    if (func) {
        rc = func(mutex, name, b);
    }
    return rc;
}

instead native imported function sceNpMutexInit we use such stub to see what happens

Reason

ease debuging

Examples

No response

Originally created by @mailwl on GitHub (Jan 3, 2025). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/2033 ### Checklist - [X] I have searched for a similar issue in this repository and did not find one. ### Description it's hard to me explain in english, i want something like this: functions from loaded libraries executes silent, what if we log some of it before call? Something like this: ```cpp int PS4_SYSV_ABI sceNpMutexInit(ScePthreadMutex* mutex, const char* name, bool b) { LOG_DEBUG(Lib_NpCommon, "calling native version {} {}", name, b); typedef PS4_SYSV_ABI int(*sceNpMutexInit_t)(ScePthreadMutex*, const char*, bool); auto func = (sceNpMutexInit_t)getLleExport("libSceNpCommon", "uEwag-0YZPc"); int rc = 0; if (func) { rc = func(mutex, name, b); } return rc; } ``` instead native imported function `sceNpMutexInit` we use such stub to see what happens ### Reason ease debuging ### Examples _No response_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#701
No description provided.