Linux Perf
bpf-script-test-relocation.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_write (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)
 
int this_is_a_global_val
 

Macro Definition Documentation

◆ BPF_ANY

#define BPF_ANY   0

Definition at line 9 of file bpf-script-test-relocation.c.

◆ BPF_FUNC_map_lookup_elem

#define BPF_FUNC_map_lookup_elem   1

Definition at line 11 of file bpf-script-test-relocation.c.

◆ BPF_FUNC_map_update_elem

#define BPF_FUNC_map_update_elem   2

Definition at line 12 of file bpf-script-test-relocation.c.

◆ BPF_MAP_TYPE_ARRAY

#define BPF_MAP_TYPE_ARRAY   2

Definition at line 10 of file bpf-script-test-relocation.c.

◆ SEC

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

Definition at line 26 of file bpf-script-test-relocation.c.

Function Documentation

◆ bpf_func__sys_write()

int bpf_func__sys_write ( void *  ctx)

Definition at line 37 of file bpf-script-test-relocation.c.

◆ SEC() [1/3]

struct bpf_map_def SEC ( "maps"  )

Definition at line 27 of file bpf-script-test-relocation.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-test-relocation.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-test-relocation.c.

◆ this_is_a_global_val

int this_is_a_global_val

Definition at line 32 of file bpf-script-test-relocation.c.