Skip to content

RDKEMW-14121 : Added Mediatek Platform support in Memcapture Code Base#14

Merged
nhanasi merged 4 commits intodevelopfrom
feature/RDKEMW-14121
Mar 26, 2026
Merged

RDKEMW-14121 : Added Mediatek Platform support in Memcapture Code Base#14
nhanasi merged 4 commits intodevelopfrom
feature/RDKEMW-14121

Conversation

@nhanasi
Copy link
Copy Markdown
Contributor

@nhanasi nhanasi commented Mar 26, 2026

Reason for change: Added MEDIATEK Platform support
Test Procedure: please refer the ticket comments
Risks: Medium

Copilot AI review requested due to automatic review settings March 26, 2026 19:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds MediaTek (MEDIATEK) platform support to MemCapture so the tool can collect CMA and GPU memory metrics on MediaTek devices.

Changes:

  • Added MEDIATEK to the Platform enum and CLI --platform parsing / help text.
  • Extended MemoryMetric to recognize MediaTek CMA region naming and fragmentation parsing expectations.
  • Implemented MediaTek Mali GPU memory parsing via /sys/kernel/debug/mali0/gpu_memory.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
main.cpp Adds MEDIATEK to --platform usage text and argument parsing.
Platform.h Extends Platform enum with MEDIATEK.
MemoryMetric.h Declares MediaTek GPU memory collection method.
MemoryMetric.cpp Adds MediaTek-specific CMA mapping, feature flags, fragmentation column count, and GPU memory parsing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nhanasi nhanasi merged commit b191708 into develop Mar 26, 2026
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants