Skip to content

Commit 4db3ec2

Browse files
committed
tetra: Update debug progs documentation
With the new auto detect values. Signed-off-by: Jiri Olsa <[email protected]>
1 parent a7bd4b4 commit 4db3ec2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/content/en/docs/concepts/performance-stats.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ Ovh(%) Id Cnt Time Name Pin
7070
...
7171
```
7272

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

7776
```shell
7877
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/
@@ -106,8 +105,8 @@ Aliases:
106105
107106
Flags:
108107
--all Get all programs
109-
--bpf-dir string Location of bpffs tetragon directory (default "/sys/fs/bpf/tetragon")
110-
--bpf-lib string Location of Tetragon libs (btf and bpf files) (default "bpf/objs/")
108+
--bpf-dir string Location of bpffs tetragon directory (auto detect by default)
109+
--bpf-lib string Location of Tetragon libs, btf and bpf files (auto detect by default)
111110
-h, --help help for progs
112111
--no-clear Do not clear screen between rounds
113112
--once Run in one shot mode

0 commit comments

Comments
 (0)