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

Go to the source code of this file.

Classes

struct  strarray
 
struct  syscall_arg
 

Macros

#define DEFINE_STRARRAY(array)
 
#define DEFINE_STRARRAY_OFFSET(array, off)
 
#define SCA_STRARRAYS   syscall_arg__scnprintf_strarrays
 
#define SCA_FD   syscall_arg__scnprintf_fd
 
#define SCA_HEX   syscall_arg__scnprintf_hex
 
#define SCA_INT   syscall_arg__scnprintf_int
 
#define SCA_LONG   syscall_arg__scnprintf_long
 
#define SCA_PID   syscall_arg__scnprintf_pid
 
#define SCA_CLONE_FLAGS   syscall_arg__scnprintf_clone_flags
 
#define SCA_FCNTL_CMD   syscall_arg__scnprintf_fcntl_cmd
 
#define SCA_FCNTL_ARG   syscall_arg__scnprintf_fcntl_arg
 
#define SCA_FLOCK   syscall_arg__scnprintf_flock
 
#define SCA_IOCTL_CMD   syscall_arg__scnprintf_ioctl_cmd
 
#define SCA_KCMP_TYPE   syscall_arg__scnprintf_kcmp_type
 
#define SCA_KCMP_IDX   syscall_arg__scnprintf_kcmp_idx
 
#define SCA_PKEY_ALLOC_ACCESS_RIGHTS   syscall_arg__scnprintf_pkey_alloc_access_rights
 
#define SCA_OPEN_FLAGS   syscall_arg__scnprintf_open_flags
 
#define SCA_PRCTL_OPTION   syscall_arg__scnprintf_prctl_option
 
#define SCA_PRCTL_ARG2   syscall_arg__scnprintf_prctl_arg2
 
#define SCA_PRCTL_ARG3   syscall_arg__scnprintf_prctl_arg3
 
#define SCA_STATX_FLAGS   syscall_arg__scnprintf_statx_flags
 
#define SCA_STATX_MASK   syscall_arg__scnprintf_statx_mask
 

Functions

size_t strarray__scnprintf (struct strarray *sa, char *bf, size_t size, const char *intfmt, int val)
 
size_t pid__scnprintf_fd (struct trace *trace, pid_t pid, int fd, char *bf, size_t size)
 
unsigned long syscall_arg__val (struct syscall_arg *arg, u8 idx)
 
size_t syscall_arg__scnprintf_strarrays (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_fd (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_hex (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_int (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_long (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_pid (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_clone_flags (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_fcntl_cmd (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_fcntl_arg (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_flock (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_ioctl_cmd (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_kcmp_type (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_kcmp_idx (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_pkey_alloc_access_rights (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_open_flags (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_prctl_option (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_prctl_arg2 (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_prctl_arg3 (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_statx_flags (char *bf, size_t size, struct syscall_arg *arg)
 
size_t syscall_arg__scnprintf_statx_mask (char *bf, size_t size, struct syscall_arg *arg)
 
size_t open__scnprintf_flags (unsigned long flags, char *bf, size_t size)
 
void syscall_arg__set_ret_scnprintf (struct syscall_arg *arg, size_t(*ret_scnprintf)(char *bf, size_t size, struct syscall_arg *arg))
 
const char * arch_syscalls__strerrno (const char *arch, int err)
 

Macro Definition Documentation

◆ DEFINE_STRARRAY

#define DEFINE_STRARRAY (   array)
Value:
struct strarray strarray__##array = { \
.nr_entries = ARRAY_SIZE(array), \
.entries = array, \
}
Definition: beauty.h:9
#define array

Definition at line 15 of file beauty.h.

◆ DEFINE_STRARRAY_OFFSET

#define DEFINE_STRARRAY_OFFSET (   array,
  off 
)
Value:
struct strarray strarray__##array = { \
.offset = off, \
.nr_entries = ARRAY_SIZE(array), \
.entries = array, \
}
Definition: beauty.h:9
#define array

Definition at line 20 of file beauty.h.

◆ SCA_CLONE_FLAGS

#define SCA_CLONE_FLAGS   syscall_arg__scnprintf_clone_flags

Definition at line 74 of file beauty.h.

◆ SCA_FCNTL_ARG

#define SCA_FCNTL_ARG   syscall_arg__scnprintf_fcntl_arg

Definition at line 80 of file beauty.h.

◆ SCA_FCNTL_CMD

#define SCA_FCNTL_CMD   syscall_arg__scnprintf_fcntl_cmd

Definition at line 77 of file beauty.h.

◆ SCA_FD

#define SCA_FD   syscall_arg__scnprintf_fd

Definition at line 59 of file beauty.h.

◆ SCA_FLOCK

#define SCA_FLOCK   syscall_arg__scnprintf_flock

Definition at line 83 of file beauty.h.

◆ SCA_HEX

#define SCA_HEX   syscall_arg__scnprintf_hex

Definition at line 62 of file beauty.h.

◆ SCA_INT

#define SCA_INT   syscall_arg__scnprintf_int

Definition at line 65 of file beauty.h.

◆ SCA_IOCTL_CMD

#define SCA_IOCTL_CMD   syscall_arg__scnprintf_ioctl_cmd

Definition at line 86 of file beauty.h.

◆ SCA_KCMP_IDX

#define SCA_KCMP_IDX   syscall_arg__scnprintf_kcmp_idx

Definition at line 92 of file beauty.h.

◆ SCA_KCMP_TYPE

#define SCA_KCMP_TYPE   syscall_arg__scnprintf_kcmp_type

Definition at line 89 of file beauty.h.

◆ SCA_LONG

#define SCA_LONG   syscall_arg__scnprintf_long

Definition at line 68 of file beauty.h.

◆ SCA_OPEN_FLAGS

#define SCA_OPEN_FLAGS   syscall_arg__scnprintf_open_flags

Definition at line 98 of file beauty.h.

◆ SCA_PID

#define SCA_PID   syscall_arg__scnprintf_pid

Definition at line 71 of file beauty.h.

◆ SCA_PKEY_ALLOC_ACCESS_RIGHTS

#define SCA_PKEY_ALLOC_ACCESS_RIGHTS   syscall_arg__scnprintf_pkey_alloc_access_rights

Definition at line 95 of file beauty.h.

◆ SCA_PRCTL_ARG2

#define SCA_PRCTL_ARG2   syscall_arg__scnprintf_prctl_arg2

Definition at line 104 of file beauty.h.

◆ SCA_PRCTL_ARG3

#define SCA_PRCTL_ARG3   syscall_arg__scnprintf_prctl_arg3

Definition at line 107 of file beauty.h.

◆ SCA_PRCTL_OPTION

#define SCA_PRCTL_OPTION   syscall_arg__scnprintf_prctl_option

Definition at line 101 of file beauty.h.

◆ SCA_STATX_FLAGS

#define SCA_STATX_FLAGS   syscall_arg__scnprintf_statx_flags

Definition at line 110 of file beauty.h.

◆ SCA_STATX_MASK

#define SCA_STATX_MASK   syscall_arg__scnprintf_statx_mask

Definition at line 113 of file beauty.h.

◆ SCA_STRARRAYS

#define SCA_STRARRAYS   syscall_arg__scnprintf_strarrays

Definition at line 56 of file beauty.h.

Function Documentation

◆ arch_syscalls__strerrno()

const char* arch_syscalls__strerrno ( const char *  arch,
int  err 
)

◆ open__scnprintf_flags()

size_t open__scnprintf_flags ( unsigned long  flags,
char *  bf,
size_t  size 
)

Definition at line 25 of file open_flags.c.

◆ pid__scnprintf_fd()

size_t pid__scnprintf_fd ( struct trace trace,
pid_t  pid,
int  fd,
char *  bf,
size_t  size 
)

Definition at line 1004 of file builtin-trace.c.

Here is the call graph for this function:

◆ strarray__scnprintf()

size_t strarray__scnprintf ( struct strarray sa,
char *  bf,
size_t  size,
const char *  intfmt,
int  val 
)

Definition at line 290 of file builtin-trace.c.

◆ syscall_arg__scnprintf_clone_flags()

size_t syscall_arg__scnprintf_clone_flags ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 55 of file clone.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_fcntl_arg()

size_t syscall_arg__scnprintf_fcntl_arg ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 70 of file fcntl.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_fcntl_cmd()

size_t syscall_arg__scnprintf_fcntl_cmd ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 36 of file fcntl.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_fd()

size_t syscall_arg__scnprintf_fd ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 992 of file builtin-trace.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_flock()

size_t syscall_arg__scnprintf_flock ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 23 of file flock.c.

◆ syscall_arg__scnprintf_hex()

size_t syscall_arg__scnprintf_hex ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 367 of file builtin-trace.c.

◆ syscall_arg__scnprintf_int()

size_t syscall_arg__scnprintf_int ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 372 of file builtin-trace.c.

◆ syscall_arg__scnprintf_ioctl_cmd()

size_t syscall_arg__scnprintf_ioctl_cmd ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 157 of file ioctl.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_kcmp_idx()

size_t syscall_arg__scnprintf_kcmp_idx ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 17 of file kcmp.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_kcmp_type()

size_t syscall_arg__scnprintf_kcmp_type ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 36 of file kcmp.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_long()

size_t syscall_arg__scnprintf_long ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 377 of file builtin-trace.c.

◆ syscall_arg__scnprintf_open_flags()

size_t syscall_arg__scnprintf_open_flags ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 77 of file open_flags.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_pid()

size_t syscall_arg__scnprintf_pid ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 2 of file pid.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_pkey_alloc_access_rights()

size_t syscall_arg__scnprintf_pkey_alloc_access_rights ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 45 of file pkey_alloc.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_prctl_arg2()

size_t syscall_arg__scnprintf_prctl_arg2 ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 27 of file prctl.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_prctl_arg3()

size_t syscall_arg__scnprintf_prctl_arg3 ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 43 of file prctl.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_prctl_option()

size_t syscall_arg__scnprintf_prctl_option ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 53 of file prctl.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_statx_flags()

size_t syscall_arg__scnprintf_statx_flags ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 15 of file statx.c.

◆ syscall_arg__scnprintf_statx_mask()

size_t syscall_arg__scnprintf_statx_mask ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 43 of file statx.c.

◆ syscall_arg__scnprintf_strarrays()

size_t syscall_arg__scnprintf_strarrays ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 325 of file builtin-trace.c.

◆ syscall_arg__set_ret_scnprintf()

void syscall_arg__set_ret_scnprintf ( struct syscall_arg arg,
size_t(*)(char *bf, size_t size, struct syscall_arg *arg)  ret_scnprintf 
)

Definition at line 905 of file builtin-trace.c.

Here is the call graph for this function:

◆ syscall_arg__val()

unsigned long syscall_arg__val ( struct syscall_arg arg,
u8  idx 
)

Definition at line 1388 of file builtin-trace.c.

Here is the call graph for this function: