github.com/castai/kvisor@v1.7.1-0.20240516114728-b3572a2607b5/tools/hack/tetragon-tcp-connect.yaml (about)

     1  apiVersion: cilium.io/v1alpha1
     2  kind: TracingPolicy
     3  metadata:
     4    name: "connect"
     5  spec:
     6    kprobes:
     7      - call: "tcp_connect"
     8        syscall: false
     9        args:
    10          - index: 0
    11            type: "sock"
    12      - call: "tcp_close"
    13        syscall: false
    14        args:
    15          - index: 0
    16            type: "sock"
    17  #    - call: "tcp_sendmsg"
    18  #      syscall: false
    19  #      args:
    20  #        - index: 0
    21  #          type: "sock"
    22  #        - index: 2
    23  #          type: int