Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Network Socket Tracing APIs

Network Socket Tracing APIs . More...

Macros

#define sys_port_trace_socket_init(socket, family, type, proto)
 Trace init of network sockets.
 
#define sys_port_trace_socket_close_enter(socket)
 Trace close of network sockets.
 
#define sys_port_trace_socket_close_exit(socket, ret)
 Trace network socket close attempt.
 
#define sys_port_trace_socket_shutdown_enter(socket, how)
 Trace shutdown of network sockets.
 
#define sys_port_trace_socket_shutdown_exit(socket, ret)
 Trace network socket shutdown attempt.
 
#define sys_port_trace_socket_bind_enter(socket, addr, addrlen)
 Trace bind of network sockets.
 
#define sys_port_trace_socket_bind_exit(socket, ret)
 Trace network socket bind attempt.
 
#define sys_port_trace_socket_connect_enter(socket, addr, addrlen)
 Trace connect of network sockets.
 
#define sys_port_trace_socket_connect_exit(socket, ret)
 Trace network socket connect attempt.
 
#define sys_port_trace_socket_listen_enter(socket, backlog)
 Trace listen of network sockets.
 
#define sys_port_trace_socket_listen_exit(socket, ret)
 Trace network socket listen attempt.
 
#define sys_port_trace_socket_accept_enter(socket)
 Trace accept of network sockets.
 
#define sys_port_trace_socket_accept_exit(socket, addr, addrlen, ret)
 Trace network socket accept attempt.
 
#define sys_port_trace_socket_sendto_enter(socket, len, flags, dest_addr, addrlen)
 Trace sendto of network sockets.
 
#define sys_port_trace_socket_sendto_exit(socket, ret)
 Trace network socket sendto attempt.
 
#define sys_port_trace_socket_sendmsg_enter(socket, msg, flags)
 Trace sendmsg of network sockets.
 
#define sys_port_trace_socket_sendmsg_exit(socket, ret)
 Trace network socket sendmsg attempt.
 
#define sys_port_trace_socket_recvfrom_enter(socket, max_len, flags, addr, addrlen)
 Trace recvfrom of network sockets.
 
#define sys_port_trace_socket_recvfrom_exit(socket, src_addr, addrlen, ret)
 Trace network socket recvfrom attempt.
 
#define sys_port_trace_socket_recvmsg_enter(socket, msg, flags)
 Trace recvmsg of network sockets.
 
#define sys_port_trace_socket_recvmsg_exit(socket, msg, ret)
 Trace network socket recvmsg attempt.
 
#define sys_port_trace_socket_fcntl_enter(socket, cmd, flags)
 Trace fcntl of network sockets.
 
#define sys_port_trace_socket_fcntl_exit(socket, ret)
 Trace network socket fcntl attempt.
 
#define sys_port_trace_socket_ioctl_enter(socket, req)
 Trace ioctl of network sockets.
 
#define sys_port_trace_socket_ioctl_exit(socket, ret)
 Trace network socket ioctl attempt.
 
#define sys_port_trace_socket_poll_enter(fds, nfds, timeout)
 Trace polling of network sockets.
 
#define sys_port_trace_socket_poll_exit(fds, nfds, ret)
 Trace network socket poll attempt.
 
#define sys_port_trace_socket_getsockopt_enter(socket, level, optname)
 Trace getsockopt of network sockets.
 
#define sys_port_trace_socket_getsockopt_exit(socket, level, optname, optval, optlen, ret)
 Trace network socket getsockopt attempt.
 
#define sys_port_trace_socket_setsockopt_enter(socket, level, optname, optval, optlen)
 Trace setsockopt of network sockets.
 
#define sys_port_trace_socket_setsockopt_exit(socket, ret)
 Trace network socket setsockopt attempt.
 
#define sys_port_trace_socket_getpeername_enter(socket)
 Trace getpeername of network sockets.
 
#define sys_port_trace_socket_getpeername_exit(socket, addr, addrlen, ret)
 Trace network socket getpeername attempt.
 
#define sys_port_trace_socket_getsockname_enter(socket)
 Trace getsockname of network sockets.
 
#define sys_port_trace_socket_getsockname_exit(socket, addr, addrlen, ret)
 Trace network socket getsockname attempt.
 
#define sys_port_trace_socket_socketpair_enter(family, type, proto, sv)
 Trace socketpair enter call.
 
#define sys_port_trace_socket_socketpair_exit(socket_A, socket_B, ret)
 Trace network socketpair open attempt.
 

Detailed Description

Network Socket Tracing APIs .

Macro Definition Documentation

◆ sys_port_trace_socket_accept_enter

#define sys_port_trace_socket_accept_enter ( socket)

#include <zephyr/tracing/tracing.h>

Trace accept of network sockets.

Parameters
socketSocket object

◆ sys_port_trace_socket_accept_exit

#define sys_port_trace_socket_accept_exit ( socket,
addr,
addrlen,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket accept attempt.

Parameters
socketSocket object
addrPeer network address
addrlenNetwork address length
retReturn value

◆ sys_port_trace_socket_bind_enter

#define sys_port_trace_socket_bind_enter ( socket,
addr,
addrlen )

#include <zephyr/tracing/tracing.h>

Trace bind of network sockets.

Parameters
socketSocket object
addrNetwork address to bind
addrlenAddress length

◆ sys_port_trace_socket_bind_exit

#define sys_port_trace_socket_bind_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket bind attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_close_enter

#define sys_port_trace_socket_close_enter ( socket)

#include <zephyr/tracing/tracing.h>

Trace close of network sockets.

Parameters
socketSocket object

◆ sys_port_trace_socket_close_exit

#define sys_port_trace_socket_close_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket close attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_connect_enter

#define sys_port_trace_socket_connect_enter ( socket,
addr,
addrlen )

#include <zephyr/tracing/tracing.h>

Trace connect of network sockets.

Parameters
socketSocket object
addrNetwork address to bind
addrlenAddress length

◆ sys_port_trace_socket_connect_exit

#define sys_port_trace_socket_connect_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket connect attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_fcntl_enter

#define sys_port_trace_socket_fcntl_enter ( socket,
cmd,
flags )

#include <zephyr/tracing/tracing.h>

Trace fcntl of network sockets.

Parameters
socketSocket object
cmdCommand to set for this socket
flagsFlags for this receive operation

◆ sys_port_trace_socket_fcntl_exit

#define sys_port_trace_socket_fcntl_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket fcntl attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_getpeername_enter

#define sys_port_trace_socket_getpeername_enter ( socket)

#include <zephyr/tracing/tracing.h>

Trace getpeername of network sockets.

Parameters
socketSocket object

◆ sys_port_trace_socket_getpeername_exit

#define sys_port_trace_socket_getpeername_exit ( socket,
addr,
addrlen,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket getpeername attempt.

Parameters
socketSocket object
addrPeer socket network address
addrlenLength of the network address
retReturn value

◆ sys_port_trace_socket_getsockname_enter

#define sys_port_trace_socket_getsockname_enter ( socket)

#include <zephyr/tracing/tracing.h>

Trace getsockname of network sockets.

Parameters
socketSocket object

◆ sys_port_trace_socket_getsockname_exit

#define sys_port_trace_socket_getsockname_exit ( socket,
addr,
addrlen,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket getsockname attempt.

Parameters
socketSocket object
addrLocal socket network address
addrlenLength of the network address
retReturn value

◆ sys_port_trace_socket_getsockopt_enter

#define sys_port_trace_socket_getsockopt_enter ( socket,
level,
optname )

#include <zephyr/tracing/tracing.h>

Trace getsockopt of network sockets.

Parameters
socketSocket object
levelOption level
optnameOption name

◆ sys_port_trace_socket_getsockopt_exit

#define sys_port_trace_socket_getsockopt_exit ( socket,
level,
optname,
optval,
optlen,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket getsockopt attempt.

Parameters
socketSocket object
levelOption level
optnameOption name
optvalOption value
optlenOption value length
retReturn value

◆ sys_port_trace_socket_init

#define sys_port_trace_socket_init ( socket,
family,
type,
proto )

#include <zephyr/tracing/tracing.h>

Trace init of network sockets.

Parameters
socketNetwork socket is returned
familySocket address family
typeSocket type
protoSocket protocol

◆ sys_port_trace_socket_ioctl_enter

#define sys_port_trace_socket_ioctl_enter ( socket,
req )

#include <zephyr/tracing/tracing.h>

Trace ioctl of network sockets.

Parameters
socketSocket object
reqRequest to set for this socket

◆ sys_port_trace_socket_ioctl_exit

#define sys_port_trace_socket_ioctl_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket ioctl attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_listen_enter

#define sys_port_trace_socket_listen_enter ( socket,
backlog )

#include <zephyr/tracing/tracing.h>

Trace listen of network sockets.

Parameters
socketSocket object
backlogSocket backlog length

◆ sys_port_trace_socket_listen_exit

#define sys_port_trace_socket_listen_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket listen attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_poll_enter

#define sys_port_trace_socket_poll_enter ( fds,
nfds,
timeout )

#include <zephyr/tracing/tracing.h>

Trace polling of network sockets.

Parameters
fdsSet of socket object
nfdsNumber of socket objects in the set
timeoutTimeout for the poll operation

◆ sys_port_trace_socket_poll_exit

#define sys_port_trace_socket_poll_exit ( fds,
nfds,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket poll attempt.

Parameters
fdsSet of socket object
nfdsNumber of socket objects in the set
retReturn value

◆ sys_port_trace_socket_recvfrom_enter

#define sys_port_trace_socket_recvfrom_enter ( socket,
max_len,
flags,
addr,
addrlen )

#include <zephyr/tracing/tracing.h>

Trace recvfrom of network sockets.

Parameters
socketSocket object
max_lenMaximum length of the data we can receive
flagsFlags for this receive operation
addrRemote network address
addrlenNetwork address length

◆ sys_port_trace_socket_recvfrom_exit

#define sys_port_trace_socket_recvfrom_exit ( socket,
src_addr,
addrlen,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket recvfrom attempt.

Parameters
socketSocket object
src_addrPeer network address that send the data
addrlenLength of the network address
retReturn value

◆ sys_port_trace_socket_recvmsg_enter

#define sys_port_trace_socket_recvmsg_enter ( socket,
msg,
flags )

#include <zephyr/tracing/tracing.h>

Trace recvmsg of network sockets.

Parameters
socketSocket object
msgMessage buffer to receive
flagsFlags for this receive operation

◆ sys_port_trace_socket_recvmsg_exit

#define sys_port_trace_socket_recvmsg_exit ( socket,
msg,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket recvmsg attempt.

Parameters
socketSocket object
msgMessage buffer received
retReturn value

◆ sys_port_trace_socket_sendmsg_enter

#define sys_port_trace_socket_sendmsg_enter ( socket,
msg,
flags )

#include <zephyr/tracing/tracing.h>

Trace sendmsg of network sockets.

Parameters
socketSocket object
msgData to send
flagsFlags for this send operation

◆ sys_port_trace_socket_sendmsg_exit

#define sys_port_trace_socket_sendmsg_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket sendmsg attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_sendto_enter

#define sys_port_trace_socket_sendto_enter ( socket,
len,
flags,
dest_addr,
addrlen )

#include <zephyr/tracing/tracing.h>

Trace sendto of network sockets.

Parameters
socketSocket object
lenLength of the data to send
flagsFlags for this send operation
dest_addrDestination network address
addrlenNetwork address length

◆ sys_port_trace_socket_sendto_exit

#define sys_port_trace_socket_sendto_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket sendto attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_setsockopt_enter

#define sys_port_trace_socket_setsockopt_enter ( socket,
level,
optname,
optval,
optlen )

#include <zephyr/tracing/tracing.h>

Trace setsockopt of network sockets.

Parameters
socketSocket object
levelOption level
optnameOption name
optvalOption value
optlenOption value length

◆ sys_port_trace_socket_setsockopt_exit

#define sys_port_trace_socket_setsockopt_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket setsockopt attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_shutdown_enter

#define sys_port_trace_socket_shutdown_enter ( socket,
how )

#include <zephyr/tracing/tracing.h>

Trace shutdown of network sockets.

Parameters
socketSocket object
howSocket shutdown type

◆ sys_port_trace_socket_shutdown_exit

#define sys_port_trace_socket_shutdown_exit ( socket,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socket shutdown attempt.

Parameters
socketSocket object
retReturn value

◆ sys_port_trace_socket_socketpair_enter

#define sys_port_trace_socket_socketpair_enter ( family,
type,
proto,
sv )

#include <zephyr/tracing/tracing.h>

Trace socketpair enter call.

Parameters
familyNetwork address family
typeSocket type
protoSocket protocol
svSocketpair buffer

◆ sys_port_trace_socket_socketpair_exit

#define sys_port_trace_socket_socketpair_exit ( socket_A,
socket_B,
ret )

#include <zephyr/tracing/tracing.h>

Trace network socketpair open attempt.

Parameters
socket_ASocketpair first socket object
socket_BSocketpair second socket object
retReturn value