[PR #1924] [MERGED] ajm: added stubbed statistics instance #2382

Closed
opened 2026-02-27 21:16:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1924
Author: @roamic
Created: 12/27/2024
Status: Merged
Merged: 12/29/2024
Merged by: @raphaelthegreat

Base: mainHead: stub-ajm-statistics


📝 Commits (6)

  • 6fce186 ajm: added stubbed statistics instance
  • b99fc8b fixed a typo, thanks poly
  • acae23f fixed clang-format
  • 17323ba removed unused struct
  • f7a34b3 small fixes
  • f952b3c fixed typedefs, added per codec statistics

📊 Changes

9 files changed (+231 additions, -42 deletions)

View changed files

📝 CMakeLists.txt (+2 -0)
📝 src/core/libraries/ajm/ajm.cpp (+6 -4)
📝 src/core/libraries/ajm/ajm.h (+47 -2)
📝 src/core/libraries/ajm/ajm_batch.cpp (+103 -26)
📝 src/core/libraries/ajm/ajm_batch.h (+4 -0)
📝 src/core/libraries/ajm/ajm_context.cpp (+13 -8)
📝 src/core/libraries/ajm/ajm_instance.cpp (+2 -2)
src/core/libraries/ajm/ajm_instance_statistics.cpp (+37 -0)
src/core/libraries/ajm/ajm_instance_statistics.h (+17 -0)

📄 Description

  • Added stubs for AJM Statistics Instance. It will return stubbed data on each call.
  • Added handling for inline buffers. We should just skip them when parsing the batch.
  • Demoted some asserts to error logs
  • Demoted error to trace for sceAjmMemoryRegister/sceAjmMemoryUnregister as those do not require any special handling.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1924 **Author:** [@roamic](https://github.com/roamic) **Created:** 12/27/2024 **Status:** ✅ Merged **Merged:** 12/29/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `stub-ajm-statistics` --- ### 📝 Commits (6) - [`6fce186`](https://github.com/shadps4-emu/shadPS4/commit/6fce1869b46c9ddda3e001a4c2dccb22d8165e40) ajm: added stubbed statistics instance - [`b99fc8b`](https://github.com/shadps4-emu/shadPS4/commit/b99fc8b2a6a20824aefd97fb4b8f86c3d6ab6651) fixed a typo, thanks poly - [`acae23f`](https://github.com/shadps4-emu/shadPS4/commit/acae23fc06ea49fa6d568aa743f79d69330b9e07) fixed clang-format - [`17323ba`](https://github.com/shadps4-emu/shadPS4/commit/17323ba10f61be9e2a7d096450d758f36c2c8b58) removed unused struct - [`f7a34b3`](https://github.com/shadps4-emu/shadPS4/commit/f7a34b3bc61e2e67c297aacd5cbbec7d5e8d2025) small fixes - [`f952b3c`](https://github.com/shadps4-emu/shadPS4/commit/f952b3c1b47a6e72bd7f3135eda9fee14059ff4c) fixed typedefs, added per codec statistics ### 📊 Changes **9 files changed** (+231 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+2 -0) 📝 `src/core/libraries/ajm/ajm.cpp` (+6 -4) 📝 `src/core/libraries/ajm/ajm.h` (+47 -2) 📝 `src/core/libraries/ajm/ajm_batch.cpp` (+103 -26) 📝 `src/core/libraries/ajm/ajm_batch.h` (+4 -0) 📝 `src/core/libraries/ajm/ajm_context.cpp` (+13 -8) 📝 `src/core/libraries/ajm/ajm_instance.cpp` (+2 -2) ➕ `src/core/libraries/ajm/ajm_instance_statistics.cpp` (+37 -0) ➕ `src/core/libraries/ajm/ajm_instance_statistics.h` (+17 -0) </details> ### 📄 Description * Added stubs for AJM Statistics Instance. It will return stubbed data on each call. * Added handling for inline buffers. We should just skip them when parsing the batch. * Demoted some asserts to error logs * Demoted error to trace for `sceAjmMemoryRegister`/`sceAjmMemoryUnregister` as those do not require any special handling. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:16:18 +03:00
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#2382
No description provided.