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

/sys/fs/bpf hierarchy reflecting sensors/programs/etc. #408

Open
kkourt opened this issue Sep 15, 2022 · 0 comments
Open

/sys/fs/bpf hierarchy reflecting sensors/programs/etc. #408

kkourt opened this issue Sep 15, 2022 · 0 comments
Assignees

Comments

@kkourt
Copy link
Contributor

kkourt commented Sep 15, 2022

tetragon bpf fs hierarchy

kkourt added a commit that referenced this issue Sep 15, 2022
This is meant to be used by sensors to create paths for their objects
under /sys/fs/bpf. Ideally, we would want a directory hierarchy under
each sensor, as described in #408.

This is currently not easy to do, however. Instead, use a function that
adds "-" instead of "/", leading to a flat hiearachy that has unique
names. This function can be changed to filepath.Join once everything is
in place.

The purpose of the function is to document the above intention.

Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
@kkourt kkourt self-assigned this Sep 15, 2022
kkourt added a commit that referenced this issue Sep 15, 2022
This is meant to be used by sensors to create paths for their objects
under /sys/fs/bpf. Ideally, we would want a directory hierarchy under
each sensor, as described in #408.

This is currently not easy to do, however. Instead, use a function that
adds "-" instead of "/", leading to a flat hierarchy that has unique
names. This function can be changed to filepath.Join once everything is
in place.

The purpose of the function is to document the above intention.

Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
kkourt added a commit that referenced this issue Sep 16, 2022
This is meant to be used by sensors to create paths for their objects
under /sys/fs/bpf. Ideally, we would want a directory hierarchy under
each sensor, as described in #408.

This is currently not easy to do, however. Instead, use a function that
adds "-" instead of "/", leading to a flat hierarchy that has unique
names. This function can be changed to filepath.Join once everything is
in place.

The purpose of the function is to document the above intention.

Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
@kkourt kkourt changed the title /sys/fs/bpf hierracy reflecting sensors/programs/etc. /sys/fs/bpf hierarchy reflecting sensors/programs/etc. Sep 30, 2022
@olsajiri olsajiri self-assigned this Feb 13, 2024
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

No branches or pull requests

2 participants