Skip to content

Extract PMU profile source logic into reusable helpers - #2188

Draft
Arvean-microsoft wants to merge 2 commits into
MicrosoftDocs:docsfrom
Arvean-microsoft:patch-4
Draft

Arvean-microsoft wants to merge 2 commits into
MicrosoftDocs:docsfrom
Arvean-microsoft:patch-4

Conversation

@Arvean-microsoft

Copy link
Copy Markdown

Adds SystemPmuSourceAddInformation (259) and SystemPmuSourceRemoveInformation (260) as new SYSTEM_INFORMATION_CLASS values for NtSetSystemInformation, providing a direct interface to PMU profile source management without routing through ETW.

Adds SystemPmuSourceAddInformation (259) and SystemPmuSourceRemoveInformation (260) as new SYSTEM_INFORMATION_CLASS values for NtSetSystemInformation, providing a direct interface to PMU profile source management without routing through ETW.
@prmerger-automator

Copy link
Copy Markdown

Arvean-microsoft : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM — accurate technical correction. Approved.

@GrantMeStrength

Copy link
Copy Markdown
Contributor

Copilot /review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed ✅ — Documentation improvement looks good.

@prmerger-automator

Copy link
Copy Markdown

Arvean-microsoft : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. KB (@Karl-Bridge-Microsoft)

1 similar comment
@prmerger-automator

Copy link
Copy Markdown

Arvean-microsoft : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. KB (@Karl-Bridge-Microsoft)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new set-only classes are incorrectly documented as NtQuerySystemInformation inputs.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Documents new PMU profile-source add/remove information classes, but places set-only operations under NtQuerySystemInformation.

Changes:

  • Adds PMU class keywords and structure layouts.
  • Documents architecture-specific PMU fields.
File summaries
File Description
sdk-api-src/content/winternl/nf-winternl-ntquerysysteminformation.md Adds PMU source documentation to the query API topic.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +123 to +125
#### SystemPmuSourceAddInformation

Accepts a <b>SYSTEM_PMU_SOURCE_ADD_INFORMATION</b> structure that describes a PMU (Performance Monitoring Unit) profile source to add.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants