Linux Perf
genelf.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GEN_ELF_ENDIAN   ELFDATA2MSB
 
#define elf_newehdr   elf64_newehdr
 
#define elf_getshdr   elf64_getshdr
 
#define Elf_Ehdr   Elf64_Ehdr
 
#define Elf_Shdr   Elf64_Shdr
 
#define Elf_Sym   Elf64_Sym
 
#define ELF_ST_TYPE(a)   ELF64_ST_TYPE(a)
 
#define ELF_ST_BIND(a)   ELF64_ST_BIND(a)
 
#define ELF_ST_VIS(a)   ELF64_ST_VISIBILITY(a)
 
#define GEN_ELF_TEXT_OFFSET   sizeof(Elf_Ehdr)
 

Functions

int jit_write_elf (int fd, uint64_t code_addr, const char *sym, const void *code, int csize, void *debug, int nr_debug_entries, void *unwinding, uint64_t unwinding_header_size, uint64_t unwinding_size)
 

Macro Definition Documentation

◆ Elf_Ehdr

#define Elf_Ehdr   Elf64_Ehdr

Definition at line 45 of file genelf.h.

◆ elf_getshdr

#define elf_getshdr   elf64_getshdr

Definition at line 44 of file genelf.h.

◆ elf_newehdr

#define elf_newehdr   elf64_newehdr

Definition at line 43 of file genelf.h.

◆ Elf_Shdr

#define Elf_Shdr   Elf64_Shdr

Definition at line 46 of file genelf.h.

◆ ELF_ST_BIND

#define ELF_ST_BIND (   a)    ELF64_ST_BIND(a)

Definition at line 49 of file genelf.h.

◆ ELF_ST_TYPE

#define ELF_ST_TYPE (   a)    ELF64_ST_TYPE(a)

Definition at line 48 of file genelf.h.

◆ ELF_ST_VIS

#define ELF_ST_VIS (   a)    ELF64_ST_VISIBILITY(a)

Definition at line 50 of file genelf.h.

◆ Elf_Sym

#define Elf_Sym   Elf64_Sym

Definition at line 47 of file genelf.h.

◆ GEN_ELF_ENDIAN

#define GEN_ELF_ENDIAN   ELFDATA2MSB

Definition at line 37 of file genelf.h.

◆ GEN_ELF_TEXT_OFFSET

#define GEN_ELF_TEXT_OFFSET   sizeof(Elf_Ehdr)

Definition at line 63 of file genelf.h.

Function Documentation

◆ jit_write_elf()

int jit_write_elf ( int  fd,
uint64_t  code_addr,
const char *  sym,
const void *  code,
int  csize,
void *  debug,
int  nr_debug_entries,
void *  unwinding,
uint64_t  unwinding_header_size,
uint64_t  unwinding_size 
)