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

gadgets: Convert trace oomkill to image based gadget #2333

Merged
merged 2 commits into from
Jan 2, 2024
Merged

Conversation

eiffel-fl
Copy link
Member

@eiffel-fl eiffel-fl commented Dec 27, 2023

Hi.

This PR converts trace oomkill to image based gadget:

$ sudo -E ./ig run oomkills &                         francis/img-oom % u=
[1] 90799
INFO[0000] Experimental features enabled
RUNTIME.CONTAINERNAME          FPID             FUID             FGID             TPID             PAGES            FCOMM            TCOMM                                                           
$ docker run --name test-trace-oomkill -m 512M -it --rm busybox tail /dev/zeroo
test-trace-oomkill             90914            0                0                90914            262144           tail             tail

Best regards.

Copy link
Member

@burak-ok burak-ok left a comment

Choose a reason for hiding this comment

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

Tested it and it works as advertised. LGTM

integration/inspektor-gadget/run_trace_oomkill.go Outdated Show resolved Hide resolved
gadgets/trace_oomkill/gadget.yaml Outdated Show resolved Hide resolved
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
@eiffel-fl eiffel-fl force-pushed the francis/img-oom branch 5 times, most recently from c2579c9 to 20f4cce Compare January 2, 2024 14:49
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
@eiffel-fl eiffel-fl merged commit d4f3aa6 into main Jan 2, 2024
53 checks passed
@eiffel-fl eiffel-fl deleted the francis/img-oom branch January 2, 2024 15:29
@eiffel-fl
Copy link
Member Author

Thank you for the review!

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.

None yet

2 participants