FD.io VPP  v20.05-21-gb1500e9ff
Vector Packet Processing
elf_clib.h File Reference
+ Include dependency graph for elf_clib.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  clib_elf_section_bounds_t
 
struct  clib_elf_section_t
 
struct  clib_elf_main_t
 
struct  clib_elf_symbol_t
 

Macros

#define CLIB_ELF_SECTION_DATA_ALIGN   32
 
#define CLIB_ELF_SECTION_ADD_PREFIX(n)   "clib_elf_section_" n
 
#define CLIB_ELF_SECTION(SECTION)
 
#define clib_elf_section_data_next(a, extra)
 

Functions

static void clib_elf_main_free (clib_elf_main_t *m)
 
void clib_elf_main_init (char *exec_path)
 
clib_elf_section_bounds_tclib_elf_get_section_bounds (char *name)
 
uword clib_elf_symbol_by_name (char *name, clib_elf_symbol_t *result)
 
uword clib_elf_symbol_by_address (uword address, clib_elf_symbol_t *result)
 

Variables

format_function_t format_clib_elf_symbol
 
format_function_t format_clib_elf_symbol_with_address
 

Macro Definition Documentation

◆ CLIB_ELF_SECTION

#define CLIB_ELF_SECTION (   SECTION)
Value:
__attribute__ ((used, \
section (CLIB_ELF_SECTION_ADD_PREFIX (SECTION))))
#define CLIB_ELF_SECTION_ADD_PREFIX(n)
Definition: elf_clib.h:46
#define CLIB_ELF_SECTION_DATA_ALIGN
Definition: elf_clib.h:44

Definition at line 50 of file elf_clib.h.

◆ CLIB_ELF_SECTION_ADD_PREFIX

#define CLIB_ELF_SECTION_ADD_PREFIX (   n)    "clib_elf_section_" n

Definition at line 46 of file elf_clib.h.

◆ CLIB_ELF_SECTION_DATA_ALIGN

#define CLIB_ELF_SECTION_DATA_ALIGN   32

Definition at line 44 of file elf_clib.h.

◆ clib_elf_section_data_next

#define clib_elf_section_data_next (   a,
  extra 
)
Value:
void *)
a
Definition: bitmap.h:538
static uword round_pow2(uword x, uword pow2)
Definition: clib.h:256
#define uword_to_pointer(u, type)
Definition: types.h:136
static uword pointer_to_uword(const void *p)
Definition: types.h:131
#define CLIB_ELF_SECTION_DATA_ALIGN
Definition: elf_clib.h:44

Definition at line 57 of file elf_clib.h.

Function Documentation

◆ clib_elf_get_section_bounds()

clib_elf_section_bounds_t* clib_elf_get_section_bounds ( char *  name)

Definition at line 267 of file elf_clib.c.

+ Here is the caller graph for this function:

◆ clib_elf_main_free()

static void clib_elf_main_free ( clib_elf_main_t m)
inlinestatic

Definition at line 92 of file elf_clib.h.

+ Here is the call graph for this function:

◆ clib_elf_main_init()

void clib_elf_main_init ( char *  exec_path)

Definition at line 257 of file elf_clib.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_elf_symbol_by_address()

uword clib_elf_symbol_by_address ( uword  address,
clib_elf_symbol_t result 
)

Definition at line 323 of file elf_clib.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_elf_symbol_by_name()

uword clib_elf_symbol_by_name ( char *  name,
clib_elf_symbol_t result 
)

Definition at line 317 of file elf_clib.c.

+ Here is the call graph for this function:

Variable Documentation

◆ format_clib_elf_symbol

format_function_t format_clib_elf_symbol

Definition at line 134 of file elf_clib.h.

◆ format_clib_elf_symbol_with_address

format_function_t format_clib_elf_symbol_with_address

Definition at line 134 of file elf_clib.h.