Skip to content

Improve how we suppress hits #53

@devdanzin

Description

@devdanzin

Currently fusil only supports adding the names of modules, classes, instances, methods and functions to hardcoded suppression lists, as a way of avoiding troublesome calls and repeated, uninteresting hits. It's also possible to pass module names to include as suppression in the command line:

input_options.add_option(
"--blacklist",
help='Module blacklist separated by commas (eg. "_lsprof,_json")',
type="str",
default="",
)

We should make it possible to ignore hits based on regex matching on the stdout contents. That way, we can filter out hits that mention source code lines and abort/segfault messages (that's what I manually do to deduplicate hits).

The regexes could be passed on the command line (accepting the same option multiple times) or read from a suppression file. The reason for suppressing a hit should be recorded in the logs.

This improvement is a prime candidate for supporting inclusions of regexes by plugins (#52).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions