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

tetragon: cgroup rework preparation #343

Merged
merged 6 commits into from
Aug 23, 2022
Merged

Conversation

tixxdz
Copy link
Member

@tixxdz tixxdz commented Aug 22, 2022

This is a preparation PR to get some patches merged from #225 to easy review on it.

Only major change here is : support of raw tracepoints

@tixxdz tixxdz requested a review from a team as a code owner August 22, 2022 09:13
@tixxdz
Copy link
Member Author

tixxdz commented Aug 22, 2022

Seems some checkpatch rules will clash with clang-format ones ! anyway reports here are not related to the lines of code changed in this series...

@kkourt
Copy link
Contributor

kkourt commented Aug 22, 2022

Seems some checkpatch rules will clash with clang-format ones ! anyway reports here are not related to the lines of code changed in this series...

Can you please open an issue with the offending code so that we can tackle it at a later point in time?

@tixxdz
Copy link
Member Author

tixxdz commented Aug 22, 2022

Seems some checkpatch rules will clash with clang-format ones ! anyway reports here are not related to the lines of code changed in this series...

Can you please open an issue with the offending code so that we can tackle it at a later point in time?

Sure, please see here: #344

tixxdz added 6 commits August 22, 2022 16:05
Explicitly use '/run/' prefix instead of '/var/run' which may fail
when we operate on file systems from /proc and try to discover the
real mount point instead of the mount source.

See man page of proc  section: /proc/[pid]/mountinfo , fields 4 and 10
they can be different. Field 4 is the absolute truth.

Signed-off-by: Djalal Harouni <[email protected]>
This patch adds raw_tracepoint support which are used in following patches
to trace cgroup events.

Signed-off-by: Djalal Harouni <[email protected]>
Allow loading raw_tracepoint programs.

Signed-off-by: Djalal Harouni <[email protected]>
get_task_pid_vnr() will also be used by cgroups so let's move it
to bpf/lib/bpf_events.h

Signed-off-by: Djalal Harouni <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
@tixxdz tixxdz force-pushed the pr/tixxdz/cgroup-rework-preparation branch from 445c50f to ec4ee86 Compare August 22, 2022 14:06
@willfindlay
Copy link
Contributor

@tixxdz this CI failure is GitHub's fault, it'll be fixed in #346.

@tixxdz tixxdz requested a review from olsajiri August 22, 2022 17:55
@kkourt kkourt merged commit e1d641a into main Aug 23, 2022
@kkourt kkourt deleted the pr/tixxdz/cgroup-rework-preparation branch August 23, 2022 06:21
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.

4 participants