From 75d5e54085a593aa8786f32980421fe932a4a558 Mon Sep 17 00:00:00 2001 From: Mahe Tardy Date: Mon, 4 Dec 2023 15:50:31 +0000 Subject: [PATCH] tracingpolicy: add a stack traces example Signed-off-by: Mahe Tardy --- examples/tracingpolicy/stack_traces.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/tracingpolicy/stack_traces.yaml 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