Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Logging LLE functions #2033

Open
1 task done
mailwl opened this issue Jan 3, 2025 · 0 comments
Open
1 task done

[Feature Request]: Logging LLE functions #2033

mailwl opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@mailwl
Copy link
Contributor

mailwl commented Jan 3, 2025

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

@polybiusproxy polybiusproxy added the enhancement New feature or request label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants