Skip to content

Commit

Permalink
tetra: Update debug progs documentation
Browse files Browse the repository at this point in the history
With the new auto detect values.

Signed-off-by: Jiri Olsa <[email protected]>
  • Loading branch information
olsajiri committed Dec 20, 2024
1 parent 6d5f842 commit de2b126
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/content/en/docs/concepts/performance-stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ Ovh(%) Id Cnt Time Name Pin
...
```

Above commands should run properly on top of the tetragon sources.
At the moment to run it properly under Kubernetes you need to specify extra
directory flags:
The bpffs mount and iterator object path are auto detected by default, but
it's possible to override them with --bpf-lib and and --bpf-lib options, like:

```shell
kubectl exec -ti -n kube-system tetragon-66rk4 -c tetragon -- tetra debug progs --bpf-dir /run/cilium/bpffs/tetragon/ --all --bpf-lib /var/lib/tetragon/
Expand Down Expand Up @@ -106,8 +105,8 @@ Aliases:
Flags:
--all Get all programs
--bpf-dir string Location of bpffs tetragon directory (default "/sys/fs/bpf/tetragon")
--bpf-lib string Location of Tetragon libs (btf and bpf files) (default "bpf/objs/")
--bpf-dir string Location of bpffs tetragon directory (auto detect by default)
--bpf-lib string Location of Tetragon libs, btf and bpf files (auto detect by default)
-h, --help help for progs
--no-clear Do not clear screen between rounds
--once Run in one shot mode
Expand Down

0 comments on commit de2b126

Please sign in to comment.