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

Add support to exclude valid processes from dump processCache #2949

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

tpapagian
Copy link
Member

Description

When running ./tetra dump processcache we can get all processes in the user-space process cache. Out of these, we can use --skip-zero-refcnt to exclude processes with refCnt equals to 0. These are processes that will be removed from the processCache soon.

Out of these processes with refCnt not equal to 0, most of them are nornal running processes that also exist in the execve_map.

This patch adds another command line option
--exclude-execve-map-processes that excludes processes that exist in the execve_map.

The remaining processes (if any) have possibly an error in the reference counting.

Add --exclude-execve-map-processes in tetra dump processcache command.

When running ./tetra dump processcache we can get all processes in the
user-space process cache. Out of these, we can use --skip-zero-refcnt to
exclude processes with refCnt equals to 0. These are processes that will
be removed from the processCache soon.

Out of these processes with refCnt not equal to 0, most of them are
nornal running processes that also exist in the execve_map.

This patch adds another command line option
--exclude-execve-map-processes that excludes processes that exist in the
execve_map.

The remaining processes (if any) have possibly an error in the reference
counting.

Signed-off-by: Anastasios Papagiannis <tasos.papagiannnis@gmail.com>
@tpapagian tpapagian added the release-note/misc This PR makes changes that have no direct user impact. label Sep 24, 2024
@tpapagian tpapagian requested a review from a team as a code owner September 24, 2024 08:07
Copy link

netlify bot commented Sep 24, 2024

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 1bc732b
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/66f27345ba8db70008c691e9
😎 Deploy Preview https://deploy-preview-2949--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@mtardy mtardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! :) Thanks

@tpapagian tpapagian merged commit 7e4b379 into main Sep 24, 2024
51 checks passed
@tpapagian tpapagian deleted the pr/apapag/exclude-execve-dump branch September 24, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants