Skip to content

opensnoop: fix --cgroupmap with kfunc#2826

Merged
yonghong-song merged 1 commit intoiovisor:masterfrom
inspektor-gadget:alban/opensnoop-fix-cgroups
Mar 20, 2020
Merged

opensnoop: fix --cgroupmap with kfunc#2826
yonghong-song merged 1 commit intoiovisor:masterfrom
inspektor-gadget:alban/opensnoop-fix-cgroups

Conversation

@alban
Copy link
Copy Markdown
Contributor

@alban alban commented Mar 19, 2020

Commit c347fe6 ("Support kfunc in opensnoop.py") introduces an
alternative probe on do_sys_open() with kfuncs instead of kprobes. This
new implementation is used if the kernel supports it. But it removed the
--cgroupmap filter added in commit b2aa29f ("tools: cgroup
filtering in execsnoop/opensnoop").

This patch adds the --cgroupmap filter in the kfunc implementation.


Note: I didn't test it yet; I will need to get a newer kernel first, see #2726 (comment).

/cc @olsajiri

Commit c347fe6 ("Support kfunc in opensnoop.py") introduces an
alternative probe on do_sys_open() with kfuncs instead of kprobes. This
new implementation is used if the kernel supports it. But it removed the
--cgroupmap filter added in commit b2aa29f ("tools: cgroup
filtering in execsnoop/opensnoop").

This patch adds the --cgroupmap filter in the kfunc implementation.
@yonghong-song
Copy link
Copy Markdown
Collaborator

[buildbot, test this please]

@yonghong-song yonghong-song merged commit 510fc74 into iovisor:master Mar 20, 2020
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.

2 participants