Skip to content

bugtool: detect bpftool path#1219

Merged
tixxdz merged 2 commits into
mainfrom
pr/tixxdz/bugtool-bpftool-path
Jul 12, 2023
Merged

bugtool: detect bpftool path#1219
tixxdz merged 2 commits into
mainfrom
pr/tixxdz/bugtool-bpftool-path

Conversation

@tixxdz

@tixxdz tixxdz commented Jul 12, 2023

Copy link
Copy Markdown
Member

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
Comment thread pkg/bugtool/bugtool.go Outdated
tixxdz added 2 commits July 12, 2023 16:04
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 <tixxdz@gmail.com>
Signed-off-by: Djalal Harouni <tixxdz@gmail.com>
@tixxdz
tixxdz force-pushed the pr/tixxdz/bugtool-bpftool-path branch from 0e49632 to 8667e86 Compare July 12, 2023 14:07

@kkourt kkourt left a comment

Copy link
Copy Markdown
Contributor

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
@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

2 participants