Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label processes based on a regexp over ARGV #119

Open
hillu opened this issue Dec 5, 2022 · 0 comments
Open

Label processes based on a regexp over ARGV #119

hillu opened this issue Dec 5, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@hillu
Copy link
Collaborator

hillu commented Dec 5, 2022

I have been asked about using the proceess labeling feature based on not only the executable but on the argument list.

I currently see practical implementation problems with this: The regexp engine from the regex crate has the nice feature of providing a multi-pattern matcher. However, it can only work on fixed buffers, not on input streams that are constructed as they are fed to the matcher. So we'd have to copy every argument list before matching, resulting in (I fear) considerable CPU and memory overhead even before the matcher gets to run. I am not aware of an alternative regexp implementation that could be used instead.

This issue needs some more thinking about.

Concrete use-cases of process invocations would certainly be useful, please add them in the comments.

@hillu hillu self-assigned this Dec 5, 2022
@hillu hillu added enhancement New feature or request help wanted Extra attention is needed labels Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant