diff --git a/examples/tracingpolicy/stack_traces.yaml b/examples/tracingpolicy/stack_traces.yaml new file mode 100644 index 00000000000..ca2eb6c2d94 --- /dev/null +++ b/examples/tracingpolicy/stack_traces.yaml @@ -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