github.com/cilium/cilium@v1.16.2/bpf/include/bpf/helpers_sock.h (about)

     1  /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
     2  /* Copyright Authors of Cilium */
     3  
     4  #pragma once
     5  
     6  #include <linux/bpf.h>
     7  
     8  #include "helpers.h"
     9  
    10  /* Only used helpers in Cilium go below. */
    11  
    12  /* Events for user space */
    13  static int BPF_FUNC_REMAP(sock_event_output, struct bpf_sock_addr *sock, void *map,
    14  			  __u64 index, const void *data, __u32 size) =
    15  			 (void *)BPF_FUNC_perf_event_output;