Skip to content

pmdaresctrl: build as DSO PMDA for local.conf, make unconditional#2646

Closed
natoscott wants to merge 1 commit into
performancecopilot:mainfrom
natoscott:pmdaresctrl
Closed

pmdaresctrl: build as DSO PMDA for local.conf, make unconditional#2646
natoscott wants to merge 1 commit into
performancecopilot:mainfrom
natoscott:pmdaresctrl

Conversation

@natoscott

Copy link
Copy Markdown
Member

The resctrl PMDA has no external library dependencies and can be loaded as a DSO via local.conf, matching the pattern used by kvm, btrfs, cifs, jbd2 and other kernel agents.

Created a standalone root_resctrl PMNS file for pmnsmerge, add LOCALCONF_LINE and HELPTARGETS to the build, install root_resctrl to the PMNS directories, and set pmns_source in the Install script. Also add missing resctrl entries to QA common.filter functions.

This PMDA is unconditionally built and included now resolving the issue where it was unintentionally excluded from valid platforms.

The resctrl PMDA has no external library dependencies and can be
loaded as a DSO via local.conf, matching the pattern used by kvm,
btrfs, cifs, jbd2 and other kernel agents.

Created a standalone root_resctrl PMNS file for pmnsmerge, add
LOCALCONF_LINE and HELPTARGETS to the build, install root_resctrl
to the PMNS directories, and set pmns_source in the Install script.
Also add missing resctrl entries to QA common.filter functions.

This PMDA is unconditionally built and included now resolving the
issue where it was unintentionally excluded from valid platforms.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • The resctrl PMDA is now included as part of the main package by default.
    • Debian installs the resctrl PMDA files and related PMNS entries automatically.
  • Bug Fixes

    • Removed conditional architecture-based handling that could omit resctrl support.
    • Updated packaging transitions so older standalone resctrl packages upgrade cleanly.
  • Chores

    • Refreshed QA filtering and build/install metadata to match the new packaging layout.

Walkthrough

This PR moves the resctrl PMDA from a standalone RPM/Debian subpackage into the main pcp package. It removes configure-time PMDA_RESCTRL detection, RPM subpackage definitions with Obsoletes/Provides metadata for transition, updates Debian install manifests, and reworks the resctrl PMDA's build/install/PMNS to use a new root_resctrl namespace file with generated help output.

Changes

resctrl PMDA integration into main pcp package

Layer / File(s) Summary
Remove configure-time PMDA_RESCTRL detection
configure.ac, configure, src/include/builddefs.in, build/rpm/GNUmakefile
Deletes the arch-based PMDA_RESCTRL enablement check and AC_SUBST, removes the PMDA_RESCTRL builddefs variable, and drops its sed substitution in the RPM spec generation.
Fold resctrl into pcp.spec.in packaging
build/rpm/pcp.spec.in
Adds Obsoletes/Provides metadata for pcp-pmda-resctrl and removes the conditional subpackage, file selection, preun scriptlet, and %files stanza.
Fold resctrl into redhat.spec packaging
build/rpm/redhat.spec
Removes the disable_resctrl toggle and standalone pmda-resctrl subpackage/scriptlet/files/package-list entries, adding transition Obsoletes/Provides metadata instead.
Debian packaging installs resctrl in base packages
debian/fixcontrol, debian/libpcp4.install, debian/pcp-conf.install
Removes the PMDA_RESCTRL branch from fixcontrol and adds manifest entries to install pmda_resctrl.so, help files, and root_resctrl/PMNS artifacts into base packages.
resctrl PMDA build/install/PMNS rework
src/pmdas/resctrl/GNUmakefile, src/pmdas/resctrl/Install, src/pmdas/resctrl/root, src/pmdas/resctrl/root_resctrl, src/pmdas/resctrl/.gitignore
Switches build gating to Linux-only, adds help generation and a new root_resctrl-based install layout; Install and root now reference root_resctrl; a new root_resctrl file defines resctrl.llc metrics.
QA filter updates for resctrl
qa/common.filter
Adds culling rules for pmdaresctrl instances and the resctrl PMNS top-level node.

Possibly related PRs

  • performancecopilot/pcp#2636: Both PRs modify install manifests to ship PMDA help files (help.dir/help.pag) alongside shared libraries.

Suggested reviewers: tallpsmith

Poem

A rabbit hopped through spec files deep,
Found resctrl a subpackage no more to keep,
Now folded into pcp's warm burrow,
With Obsoletes lines to smooth tomorrow,
Help files bundled, root_resctrl grows,
Thump-thump goes my heart, as the build flow flows! 🐇📦

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: making pmdaresctrl build as a DSO PMDA and enabling it unconditionally.
Description check ✅ Passed The description matches the changeset, covering the DSO/local.conf packaging, root_resctrl PMNS file, and QA filter updates.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@debian/libpcp4.install`:
- Around line 21-23: The resctrl systemd unit is not currently claimed by the
Debian install manifests, so it will be omitted from the package. Update the
install manifest that owns the resctrl PMDA assets, using the existing
debian/libpcp4.install and debian/pcp-conf.install entries as the place to add
sys-fs-resctrl.mount so it gets shipped with the resctrl-related files.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Repository UI (inherited), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: d573c9e3-d07a-446c-819a-c03dc3b37412

📥 Commits

Reviewing files that changed from the base of the PR and between 5475cc6 and 268a47a.

📒 Files selected for processing (15)
  • build/rpm/GNUmakefile
  • build/rpm/pcp.spec.in
  • build/rpm/redhat.spec
  • configure
  • configure.ac
  • debian/fixcontrol
  • debian/libpcp4.install
  • debian/pcp-conf.install
  • qa/common.filter
  • src/include/builddefs.in
  • src/pmdas/resctrl/.gitignore
  • src/pmdas/resctrl/GNUmakefile
  • src/pmdas/resctrl/Install
  • src/pmdas/resctrl/root
  • src/pmdas/resctrl/root_resctrl
💤 Files with no reviewable changes (4)
  • src/include/builddefs.in
  • build/rpm/GNUmakefile
  • configure.ac
  • configure

Comment thread debian/libpcp4.install
@natoscott

Copy link
Copy Markdown
Member Author

I've found a neater way to tackle this, closing.

@natoscott natoscott closed this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant