-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf,metrics: add line/file information to
cilium-dbg bpf metrics list
Fixes #27748 Example output: ``` ~ cilium bpf metrics list REASON DIRECTION PACKETS BYTES LINE FILE Interface INGRESS 151 9368 1092 bpf_host.c Interface INGRESS 731 139248 659 bpf_overlay.c Success EGRESS 137 8212 1531 bpf_host.c Success EGRESS 9 744 1286 bpf_lxc.c Success INGRESS 11 926 86 l3.h Success INGRESS 1403 299078 231 trace.h Unsupported L3 protocol EGRESS 6 460 1466 bpf_lxc.c ``` ``` ~ cilium bpf metrics list -o json { "reason": "Success", "direction": "egress", "packets": 406587, "bytes": 78023315, "line": 40, "file": "encap.h" }, { "reason": "Unsupported L3 protocol", "direction": "egress", "packets": 167, "bytes": 12050, "line": 1466, "file": "bpf_lxc.c" } ``` Signed-off-by: Timo Beckers <timo@isovalent.com>
- Loading branch information
Showing
11 changed files
with
100 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters