};
#define BPF_SKEL_FUNCS(skel_name, prog_name) \
-static void *skel_name##_load(int cgroup_fd) \
+static void *prog_name##_load(int cgroup_fd) \
{ \
struct skel_name *skel; \
skel = skel_name##__open_and_load(); \
skel_name##__destroy(skel); \
return NULL; \
} \
-static void skel_name##_destroy(void *skel) \
+static void prog_name##_destroy(void *skel) \
{ \
skel_name##__destroy(skel); \
}
{
SOCK_ADDR_TEST_BIND,
"bind4: bind (stream)",
- bind4_prog_load,
- bind4_prog_destroy,
+ bind_v4_prog_load,
+ bind_v4_prog_destroy,
&user_ops,
AF_INET,
SOCK_STREAM,
SERV4_PORT,
SERV4_REWRITE_IP,
SERV4_REWRITE_PORT,
+ NULL,
},
{
SOCK_ADDR_TEST_BIND,
"bind4: bind (dgram)",
- bind4_prog_load,
- bind4_prog_destroy,
+ bind_v4_prog_load,
+ bind_v4_prog_destroy,
&user_ops,
AF_INET,
SOCK_DGRAM,
SERV4_PORT,
SERV4_REWRITE_IP,
SERV4_REWRITE_PORT,
+ NULL,
},
{
SOCK_ADDR_TEST_BIND,
"bind6: bind (stream)",
- bind6_prog_load,
- bind6_prog_destroy,
+ bind_v6_prog_load,
+ bind_v6_prog_destroy,
&user_ops,
AF_INET6,
SOCK_STREAM,
SERV6_PORT,
SERV6_REWRITE_IP,
SERV6_REWRITE_PORT,
+ NULL,
},
{
SOCK_ADDR_TEST_BIND,
"bind6: bind (dgram)",
- bind6_prog_load,
- bind6_prog_destroy,
+ bind_v6_prog_load,
+ bind_v6_prog_destroy,
&user_ops,
AF_INET6,
SOCK_DGRAM,
SERV6_PORT,
SERV6_REWRITE_IP,
SERV6_REWRITE_PORT,
+ NULL,
},
/* bind - kernel calls */
{
SOCK_ADDR_TEST_BIND,
"bind4: kernel_bind (stream)",
- bind4_prog_load,
- bind4_prog_destroy,
+ bind_v4_prog_load,
+ bind_v4_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET,
SOCK_STREAM,
{
SOCK_ADDR_TEST_BIND,
"bind4: kernel_bind (dgram)",
- bind4_prog_load,
- bind4_prog_destroy,
+ bind_v4_prog_load,
+ bind_v4_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_BIND,
"bind6: kernel_bind (stream)",
- bind6_prog_load,
- bind6_prog_destroy,
+ bind_v6_prog_load,
+ bind_v6_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET6,
SOCK_STREAM,
{
SOCK_ADDR_TEST_BIND,
"bind6: kernel_bind (dgram)",
- bind6_prog_load,
- bind6_prog_destroy,
+ bind_v6_prog_load,
+ bind_v6_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET6,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_CONNECT,
"connect4: connect (stream)",
- connect4_prog_load,
- connect4_prog_destroy,
+ connect_v4_prog_load,
+ connect_v4_prog_destroy,
&user_ops,
AF_INET,
SOCK_STREAM,
{
SOCK_ADDR_TEST_CONNECT,
"connect4: connect (dgram)",
- connect4_prog_load,
- connect4_prog_destroy,
+ connect_v4_prog_load,
+ connect_v4_prog_destroy,
&user_ops,
AF_INET,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_CONNECT,
"connect6: connect (stream)",
- connect6_prog_load,
- connect6_prog_destroy,
+ connect_v6_prog_load,
+ connect_v6_prog_destroy,
&user_ops,
AF_INET6,
SOCK_STREAM,
{
SOCK_ADDR_TEST_CONNECT,
"connect6: connect (dgram)",
- connect6_prog_load,
- connect6_prog_destroy,
+ connect_v6_prog_load,
+ connect_v6_prog_destroy,
&user_ops,
AF_INET6,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_CONNECT,
"connect4: kernel_connect (stream)",
- connect4_prog_load,
- connect4_prog_destroy,
+ connect_v4_prog_load,
+ connect_v4_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET,
SOCK_STREAM,
{
SOCK_ADDR_TEST_CONNECT,
"connect4: kernel_connect (dgram)",
- connect4_prog_load,
- connect4_prog_destroy,
+ connect_v4_prog_load,
+ connect_v4_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_CONNECT,
"connect6: kernel_connect (stream)",
- connect6_prog_load,
- connect6_prog_destroy,
+ connect_v6_prog_load,
+ connect_v6_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET6,
SOCK_STREAM,
{
SOCK_ADDR_TEST_CONNECT,
"connect6: kernel_connect (dgram)",
- connect6_prog_load,
- connect6_prog_destroy,
+ connect_v6_prog_load,
+ connect_v6_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET6,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_SENDMSG,
"sendmsg4: sendmsg (dgram)",
- sendmsg4_prog_load,
- sendmsg4_prog_destroy,
+ sendmsg_v4_prog_load,
+ sendmsg_v4_prog_destroy,
&user_ops,
AF_INET,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_SENDMSG,
"sendmsg6: sendmsg (dgram)",
- sendmsg6_prog_load,
- sendmsg6_prog_destroy,
+ sendmsg_v6_prog_load,
+ sendmsg_v6_prog_destroy,
&user_ops,
AF_INET6,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_SENDMSG,
"sendmsg4: sock_sendmsg (dgram)",
- sendmsg4_prog_load,
- sendmsg4_prog_destroy,
+ sendmsg_v4_prog_load,
+ sendmsg_v4_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_SENDMSG,
"sendmsg6: sock_sendmsg (dgram)",
- sendmsg6_prog_load,
- sendmsg6_prog_destroy,
+ sendmsg_v6_prog_load,
+ sendmsg_v6_prog_destroy,
&kern_ops_sock_sendmsg,
AF_INET6,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_SENDMSG,
"sendmsg4: kernel_sendmsg (dgram)",
- sendmsg4_prog_load,
- sendmsg4_prog_destroy,
+ sendmsg_v4_prog_load,
+ sendmsg_v4_prog_destroy,
&kern_ops_kernel_sendmsg,
AF_INET,
SOCK_DGRAM,
{
SOCK_ADDR_TEST_SENDMSG,
"sendmsg6: kernel_sendmsg (dgram)",
- sendmsg6_prog_load,
- sendmsg6_prog_destroy,
+ sendmsg_v6_prog_load,
+ sendmsg_v6_prog_destroy,
&kern_ops_kernel_sendmsg,
AF_INET6,
SOCK_DGRAM,