Skip to content

Commit

Permalink
tracingpolicy: add a stack traces example
Browse files Browse the repository at this point in the history
Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Dec 4, 2023
1 parent 3d1a5fe commit 75d5e54
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/tracingpolicy/stack_traces.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
name: "stack-traces-example"
spec:
kprobes:
- call: kfree_skb_reason
syscall: false
args:
- index: 0
type: skb
- index: 1
type: int
label: "reason"
selectors:
- matchActions:
- action: Post
stackTrace: true

0 comments on commit 75d5e54

Please sign in to comment.