Skip to content

Conversation

@harp-intel
Copy link
Contributor

This pull request improves the robustness of the logic for extracting the number of PMU counters from kernel messages in ARM systems. The main change is updating the regular expression to correctly handle both older and newer message formats.

Metrics extraction improvement:

  • Updated the regular expression in getNumGPCountersARM (in cmd/metrics/metadata.go) to match both simple and extended formats of the PMU driver message, ensuring compatibility with messages like "5 counters available" and "6 (0,8000001f) counters available".

@harp-intel harp-intel linked an issue Oct 30, 2025 that may be closed by this pull request
@harp-intel harp-intel requested a review from Copilot October 30, 2025 00:11
Copy link
Contributor

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

This PR fixes the regular expression used to parse PMU driver messages in ARM systems to extract the number of available performance counters. The fix ensures compatibility with both simple and extended message formats found in different kernel versions.

  • Updated regex pattern to handle both "N counters available" and "N (hex_values) counters available" formats
  • Added documentation examples showing both supported message formats

@harp-intel harp-intel merged commit c0aaefd into main Oct 30, 2025
5 checks passed
@harp-intel harp-intel deleted the armdmesg branch October 30, 2025 13:33
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.

perfspect metrics failing on EC2 Graviton

2 participants