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

bugtool: detect bpftool path #1219

Merged
merged 2 commits into from
Jul 12, 2023
Merged

bugtool: detect bpftool path #1219

merged 2 commits into from
Jul 12, 2023

Conversation

tixxdz
Copy link
Member

@tixxdz tixxdz commented Jul 12, 2023

This helps to detect bpftool from agent context, and also allow users to specify it as command line switch to tetra cli.

In packages deployment we set the PATH in the systemd service file including directory where our bpftool is shipped, which helps to pick it first.

@tixxdz tixxdz requested a review from a team as a code owner July 12, 2023 13:50
@tixxdz tixxdz requested review from jrfastab and kkourt July 12, 2023 13:50
pkg/bugtool/bugtool.go Outdated Show resolved Hide resolved
When saving tetragon-info.json from agent context, get $PATH and try
to locate bpftool and save its path inside tetragon-info.json.

Then on client tetra bugtool dump read again the path of bpftool
and use it.

Signed-off-by: Djalal Harouni <[email protected]>
@tixxdz tixxdz force-pushed the pr/tixxdz/bugtool-bpftool-path branch from 0e49632 to 8667e86 Compare July 12, 2023 14:07
Copy link
Contributor

@kkourt kkourt left a comment

Choose a reason for hiding this comment

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

Thanks!

@tixxdz tixxdz merged commit cc372f1 into main Jul 12, 2023
20 checks passed
@tixxdz tixxdz deleted the pr/tixxdz/bugtool-bpftool-path branch July 12, 2023 14:41
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