Linux Perf
socket_type.c File Reference
#include <sys/types.h>
#include <sys/socket.h>
Include dependency graph for socket_type.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SOCK_DCCP   6
 
#define SOCK_CLOEXEC   02000000
 
#define SOCK_NONBLOCK   00004000
 
#define SOCK_TYPE_MASK   0xf
 
#define P_SK_TYPE(n)   case SOCK_##n: printed = scnprintf(bf, size, #n); break;
 
#define P_SK_FLAG(n)
 
#define SCA_SK_TYPE   syscall_arg__scnprintf_socket_type
 

Functions

static size_t syscall_arg__scnprintf_socket_type (char *bf, size_t size, struct syscall_arg *arg)
 

Macro Definition Documentation

◆ P_SK_FLAG

#define P_SK_FLAG (   n)
Value:
if (flags & SOCK_##n) { \
printed += scnprintf(bf + printed, size - printed, "|%s", #n); \
flags &= ~SOCK_##n; \
}
size_t size
Definition: evsel.c:60
u32 flags

◆ P_SK_TYPE

#define P_SK_TYPE (   n)    case SOCK_##n: printed = scnprintf(bf, size, #n); break;

◆ SCA_SK_TYPE

#define SCA_SK_TYPE   syscall_arg__scnprintf_socket_type

Definition at line 61 of file socket_type.c.

◆ SOCK_CLOEXEC

#define SOCK_CLOEXEC   02000000

Definition at line 10 of file socket_type.c.

◆ SOCK_DCCP

#define SOCK_DCCP   6

Definition at line 6 of file socket_type.c.

◆ SOCK_NONBLOCK

#define SOCK_NONBLOCK   00004000

Definition at line 14 of file socket_type.c.

◆ SOCK_TYPE_MASK

#define SOCK_TYPE_MASK   0xf

Definition at line 18 of file socket_type.c.

Function Documentation

◆ syscall_arg__scnprintf_socket_type()

static size_t syscall_arg__scnprintf_socket_type ( char *  bf,
size_t  size,
struct syscall_arg arg 
)
static

Definition at line 21 of file socket_type.c.