sscargal / pmemchk

MIT License
0 stars 1 forks source link

[pmemchk] Implement module inclusion/exclusion using (-m) #127

Open sscargal opened 2 years ago

sscargal commented 2 years ago

In the help/usage message we have

   -m <module1, module2, ..., moduleN>
      Specify which Analyzer modules to include or exclude

This is yet to be fully implemented as documented, specifically for the exclude case:

./pmemcheck -m !optane
-bash: !optane: event not found

This works

./pmemchk -m optane

Refer to Exclude Certain Paths With the find Command and How to explicitly exclude directory from find command’s search for examples using find.

Comma-separated may also include spaces so we also need to handle multiple arguments to (-m). See Example-3: Using option with multiple arguments

Additionally, if the user specifies a include/exclude list that has zero results, this should be returned as an error and pmemchk should exit without processing.

sscargal commented 2 years ago

Duplicate of #67