Skip to content

Conversation

@alexandraBara
Copy link
Collaborator

Collects kernel modules and filters our the "amd" regex match.
Sample runs:

 node-scraper run-plugins KernelModulePlugin
 node-scraper --gen-reference-config run-plugins KernelModulePlugin

generates reference config:

{
  "global_args": {},
  "plugins": {
    "KernelModulePlugin": {
      "analysis_args": {
        "kernel_modules": {
          "amd64_edac_mod": {
            "parameters": {
              "ecc_enable_override": "0",
              "edac_op_state": "0",
              "report_gart_errors": "0"
            }
          },
          "edac_mce_amd": {
            "parameters": {}
          },
          "kvm_amd": {
            "parameters": {
              "avic": "0",
              "dump_invalid_vmcb": "N",
              "nested": "0",
              "npt": "1",
              "nrips": "1",
              "pause_filter_count": "3000",
              "pause_filter_count_grow": "2",
              "pause_filter_count_max": "65535",
              "pause_filter_count_shrink": "0",
              "pause_filter_thresh": "128",
              "sev": "0",
              "vgif": "1",
              "vls": "1"
            }
          },
          "pinctrl_amd": {
            "parameters": {}
          }
        },
        "regex_filter": [
          "amd"
        ],
        "regex_match": true
      }
    }
  },
  "result_collators": {}

@alexandraBara
Copy link
Collaborator Author

@bargajda-amd notice how we collect all k_modules but then when we create the reference_config.json we filter out the "amd" ones, so the reference config will only contain amd modules.

In the analysis part as well, we only report on "amd" filtered configs unless otherwise specified through the analyzer_args.
The analyzer args can be

"kernel_modules": {dict with kmods, params, values}
regex_filter : [list of filters]
regex_match : True.

If kernel_modules are provided in the analysis part (aka diff) then only those modules are checked, if regex_filter/match is provided then modules are filtered by regex.

Base automatically changed from alex_diff_logs to development July 16, 2025 14:08
@alexandraBara alexandraBara merged commit 79ddee6 into development Jul 30, 2025
5 checks passed
@alexandraBara alexandraBara deleted the alex_kernel_mods branch July 30, 2025 15:06
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.

4 participants