Add sceRazorCpuPushMarkerStatic stub (Razor CPU) #2023
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!2023
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2023/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Ekt0re on GitHub · 2026-10-31 14:15 UTC · original
Ekt0re:sceRazorCpuPushMarkerStatic→main· +8 −0 · 1 files · 3 commits · merged 2026-10-31 19:36 UTCAdd sceRazorCpuPushMarkerStatic stub (Razor CPU)
Description
This PR adds a stub for sceRazorCpuPushMarkerStatic, part of the Razor CPU library. Code: uZrOwuNJX-M
Related issue: https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1960
Razor CPU is the CPU profiler/analyzer in the Sony SDK. sceRazorCpuPushMarkerStatic is used to insert a marker into the code, so that a section of execution can be identified in the profiler. Games that ship with profiling hooks enabled can call it, and a missing symbol would otherwise break their execution.
Changes:
Added sceRazorCpuPushMarkerStatic(const char*) as a stub that logs the call (STUBBED called) and returns 0 (OK).
Registered the function in the InitRazorCpu_1 library definition with NID uZrOwuNJX-M.
Notes
This is a stub only: no marker is actually recorded, since the profiler has no effect on emulation.
Returning 0 signals success to the caller, so the title can proceed normally.
Testing:
AI use:
AI was used to analyze the problem and explore possible solutions.
I performed the implementation and testing manually.
@coderabbitai[bot] on GitHub · 2026-10-31 14:19 UTC · original · edited 2026-10-31 14:31 UTC
No actionable comments were generated in the recent review.
f1bc9ecb-060e-4ca9-8ea4-83a681770d17Reviewing files that changed from the base of the PR and between
6ffa6176bdand82968bb6b8.src/libs/libRazorCpu.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Walkthrough
The change adds
sceRazorCpuPushMarkerStatic, which logs calls and returns0.InitRazorCpu_1registers the function under symbol"uZrOwuNJX-M".Suggested reviewers:
nmzikChange: Feature
Merge Risk:
Minimal · up to
82968No actionable issue remains in the supplied review evidence; the change is ready for normal merge checks.
Pre-merge checks:
5
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
@coderabbitai[bot] on GitHub · 2026-10-31 14:19 UTC · original · edited 2026-10-31 14:30 UTC
On
src/libs/libRazorCpu.cppline 34 (outdated):Add a newline to the
LOGFmessage.LOGFwrites the supplied format string as the log payload. Because this message has no trailing\n, it can concatenate with the next record inkyty.txt. Add the newline to keep each marker call on its own log line. (raw.githubusercontent.com)Proposed fix
Committable suggestion
✅ Addressed in commit
82968bb@coderabbitai[bot] on GitHub · 2026-10-31 14:19 UTC · original · reviewed
Actionable comments posted: 1
f9e396ed-1bba-49e9-8c57-132483497073Reviewing files that changed from the base of the PR and between
026189166fand6ffa6176bd.src/libs/libRazorCpu.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.