Linux Perf
bpf-script-example.c File Reference

Go to the source code of this file.

Classes

struct  bpf_map_def
 

Macros

#define BPF_ANY   0
 
#define BPF_MAP_TYPE_ARRAY   2
 
#define BPF_FUNC_map_lookup_elem   1
 
#define BPF_FUNC_map_update_elem   2
 
#define SEC(NAME)   __attribute__((section(NAME), used))
 

Functions

struct bpf_map_def SEC ("maps")
 
int bpf_func__SyS_epoll_pwait (void *ctx)
 
char _license [] SEC ("license")
 
int _version SEC ("version")
 

Variables

static void *(* bpf_map_lookup_elem )(void *map, void *key)
 
static void *(* bpf_map_update_elem )(void *map, void *key, void *value, int flags)
 

Macro Definition Documentation

◆ BPF_ANY

#define BPF_ANY   0

Definition at line 9 of file bpf-script-example.c.

◆ BPF_FUNC_map_lookup_elem

#define BPF_FUNC_map_lookup_elem   1

Definition at line 11 of file bpf-script-example.c.

◆ BPF_FUNC_map_update_elem

#define BPF_FUNC_map_update_elem   2

Definition at line 12 of file bpf-script-example.c.

◆ BPF_MAP_TYPE_ARRAY

#define BPF_MAP_TYPE_ARRAY   2

Definition at line 10 of file bpf-script-example.c.

◆ SEC

#define SEC (   NAME)    __attribute__((section(NAME), used))

Definition at line 26 of file bpf-script-example.c.

Function Documentation

◆ bpf_func__SyS_epoll_pwait()

int bpf_func__SyS_epoll_pwait ( void *  ctx)

Definition at line 35 of file bpf-script-example.c.

◆ SEC() [1/3]

struct bpf_map_def SEC ( "maps"  )

Definition at line 27 of file bpf-script-example.c.

◆ SEC() [2/3]

char _license [] SEC ( "license"  )

◆ SEC() [3/3]

int _version SEC ( "version"  )

Variable Documentation

◆ bpf_map_lookup_elem

void*(* bpf_map_lookup_elem) (void *map, void *key)
static
Initial value:
=
#define BPF_FUNC_map_lookup_elem

Definition at line 14 of file bpf-script-example.c.

◆ bpf_map_update_elem

void*(* bpf_map_update_elem) (void *map, void *key, void *value, int flags)
static
Initial value:
=
#define BPF_FUNC_map_update_elem

Definition at line 16 of file bpf-script-example.c.