From 4c1dd1763d56372f03e32ef3ad7eb90454051b03 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Wed, 18 Dec 2024 19:19:58 +0000 Subject: [PATCH] tetra: Update debug progs documentation With the new auto detect values. Signed-off-by: Jiri Olsa --- docs/content/en/docs/concepts/performance-stats.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/content/en/docs/concepts/performance-stats.md b/docs/content/en/docs/concepts/performance-stats.md index c13bf3f0463..1e03893d591 100644 --- a/docs/content/en/docs/concepts/performance-stats.md +++ b/docs/content/en/docs/concepts/performance-stats.md @@ -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/ @@ -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