The FreeRADIUS server $Id: f3670dba8951ca10eb4948feb3dc3db9423a334f $
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations | Functions
internal.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  backtrace_call_full
 
struct  backtrace_state
 
struct  backtrace_vector
 
struct  backtrace_view
 
struct  dwarf_sections
 
struct  libbacktrace_base_address
 

Macros

#define __attribute__(x)
 
#define __sync_bool_compare_and_swap(A, B, C)   (abort(), 1)
 
#define __sync_lock_release(A)   abort()
 
#define __sync_lock_test_and_set(A, B)   (abort(), 0)
 
#define ATTRIBUTE_FALLTHROUGH
 
#define ATTRIBUTE_MALLOC
 
#define ATTRIBUTE_UNUSED   __attribute__ ((__unused__))
 
#define backtrace_atomic_load_int(p)   (abort(), 0)
 
#define backtrace_atomic_load_pointer(p)   (abort(), (void *) NULL)
 
#define backtrace_atomic_store_int(p, v)   abort()
 
#define backtrace_atomic_store_pointer(p, v)   abort()
 
#define backtrace_atomic_store_size_t(p, v)   abort()
 
#define GCC_VERSION   (__GNUC__ * 1000 + __GNUC_MINOR__)
 
#define libbacktrace_add_base(pc, base)   ((pc) + (base).m)
 
#define libbacktrace_using_fdpic()   (0)
 

Typedefs

typedef int(* fileline) (struct backtrace_state *state, uintptr_t pc, backtrace_full_callback callback, backtrace_error_callback error_callback, void *data)
 
typedef void(* syminfo) (struct backtrace_state *state, uintptr_t pc, backtrace_syminfo_callback callback, backtrace_error_callback error_callback, void *data)
 

Enumerations

enum  dwarf_section {
  DEBUG_INFO ,
  DEBUG_LINE ,
  DEBUG_ABBREV ,
  DEBUG_RANGES ,
  DEBUG_STR ,
  DEBUG_ADDR ,
  DEBUG_STR_OFFSETS ,
  DEBUG_LINE_STR ,
  DEBUG_RNGLISTS ,
  DEBUG_MAX
}
 

Functions

void * backtrace_alloc (struct backtrace_state *state, size_t size, backtrace_error_callback error_callback, void *data) ATTRIBUTE_MALLOC
 
int backtrace_close (int descriptor, backtrace_error_callback error_callback, void *data)
 
int backtrace_dwarf_add (struct backtrace_state *state, struct libbacktrace_base_address base_address, const struct dwarf_sections *dwarf_sections, int is_bigendian, struct dwarf_data *fileline_altlink, backtrace_error_callback error_callback, void *data, fileline *fileline_fn, struct dwarf_data **fileline_entry)
 
void backtrace_free (struct backtrace_state *state, void *mem, size_t size, backtrace_error_callback error_callback, void *data)
 
int backtrace_get_view (struct backtrace_state *state, int descriptor, off_t offset, uint64_t size, backtrace_error_callback error_callback, void *data, struct backtrace_view *view)
 
int backtrace_initialize (struct backtrace_state *state, const char *filename, int descriptor, backtrace_error_callback error_callback, void *data, fileline *fileline_fn)
 
int backtrace_open (const char *filename, backtrace_error_callback error_callback, void *data, int *does_not_exist)
 
void backtrace_qsort (void *base, size_t count, size_t size, int(*compar)(const void *, const void *))
 
void backtrace_release_view (struct backtrace_state *state, struct backtrace_view *view, backtrace_error_callback error_callback, void *data)
 
void backtrace_syminfo_to_full_callback (void *data, uintptr_t pc, const char *symname, uintptr_t symval, uintptr_t symsize)
 
void backtrace_syminfo_to_full_error_callback (void *, const char *, int)
 
int backtrace_uncompress_lzma (struct backtrace_state *, const unsigned char *compressed, size_t compressed_size, backtrace_error_callback, void *data, unsigned char **uncompressed, size_t *uncompressed_size)
 
int backtrace_uncompress_zdebug (struct backtrace_state *, const unsigned char *compressed, size_t compressed_size, backtrace_error_callback, void *data, unsigned char **uncompressed, size_t *uncompressed_size)
 
int backtrace_uncompress_zstd (struct backtrace_state *, const unsigned char *compressed, size_t compressed_size, backtrace_error_callback, void *data, unsigned char *uncompressed, size_t uncompressed_size)
 
void * backtrace_vector_finish (struct backtrace_state *state, struct backtrace_vector *vec, backtrace_error_callback error_callback, void *data)
 
static void backtrace_vector_free (struct backtrace_state *state, struct backtrace_vector *vec, backtrace_error_callback error_callback, void *data)
 
void * backtrace_vector_grow (struct backtrace_state *state, size_t size, backtrace_error_callback error_callback, void *data, struct backtrace_vector *vec)
 
int backtrace_vector_release (struct backtrace_state *state, struct backtrace_vector *vec, backtrace_error_callback error_callback, void *data)
 

Data Structure Documentation

◆ backtrace_call_full

struct backtrace_call_full

Definition at line 378 of file internal.h.

+ Collaboration diagram for backtrace_call_full:
Data Fields
backtrace_full_callback full_callback
void * full_data
backtrace_error_callback full_error_callback
int ret

◆ backtrace_state

struct backtrace_state

Definition at line 140 of file internal.h.

+ Collaboration diagram for backtrace_state:
Data Fields
void * fileline_data
fileline fileline_fn
int fileline_initialization_failed
const char * filename
struct backtrace_freelist_struct * freelist
void * lock
int lock_alloc
void * syminfo_data
syminfo syminfo_fn
int threaded

◆ backtrace_vector

struct backtrace_vector

Definition at line 236 of file internal.h.

Data Fields
size_t alc
void * base
size_t size

◆ backtrace_view

struct backtrace_view

Definition at line 182 of file internal.h.

Data Fields
void * base
const void * data
size_t len

◆ dwarf_sections

struct dwarf_sections

Definition at line 321 of file internal.h.

Data Fields
const unsigned char * data[DEBUG_MAX]
size_t size[DEBUG_MAX]

◆ libbacktrace_base_address

struct libbacktrace_base_address

Definition at line 356 of file internal.h.

Data Fields
uintptr_t m

Macro Definition Documentation

◆ __attribute__

Definition at line 44 of file internal.h.

◆ __sync_bool_compare_and_swap

#define __sync_bool_compare_and_swap (   A,
  B,
 
)    (abort(), 1)

Definition at line 77 of file internal.h.

◆ __sync_lock_release

#define __sync_lock_release (   A)    abort()

Definition at line 79 of file internal.h.

◆ __sync_lock_test_and_set

#define __sync_lock_test_and_set (   A,
 
)    (abort(), 0)

Definition at line 78 of file internal.h.

◆ ATTRIBUTE_FALLTHROUGH

#define ATTRIBUTE_FALLTHROUGH

Definition at line 68 of file internal.h.

◆ ATTRIBUTE_MALLOC

#define ATTRIBUTE_MALLOC

Definition at line 55 of file internal.h.

◆ ATTRIBUTE_UNUSED

#define ATTRIBUTE_UNUSED   __attribute__ ((__unused__))

Definition at line 48 of file internal.h.

◆ backtrace_atomic_load_int

#define backtrace_atomic_load_int (   p)    (abort(), 0)

Definition at line 116 of file internal.h.

◆ backtrace_atomic_load_pointer

#define backtrace_atomic_load_pointer (   p)    (abort(), (void *) NULL)

Definition at line 115 of file internal.h.

◆ backtrace_atomic_store_int

#define backtrace_atomic_store_int (   p,
 
)    abort()

Definition at line 119 of file internal.h.

◆ backtrace_atomic_store_pointer

#define backtrace_atomic_store_pointer (   p,
 
)    abort()

Definition at line 117 of file internal.h.

◆ backtrace_atomic_store_size_t

#define backtrace_atomic_store_size_t (   p,
 
)    abort()

Definition at line 118 of file internal.h.

◆ GCC_VERSION

#define GCC_VERSION   (__GNUC__ * 1000 + __GNUC_MINOR__)

Definition at line 40 of file internal.h.

◆ libbacktrace_add_base

#define libbacktrace_add_base (   pc,
  base 
)    ((pc) + (base).m)

Definition at line 361 of file internal.h.

◆ libbacktrace_using_fdpic

#define libbacktrace_using_fdpic ( )    (0)

Definition at line 354 of file internal.h.

Typedef Documentation

◆ fileline

typedef int(* fileline) (struct backtrace_state *state, uintptr_t pc, backtrace_full_callback callback, backtrace_error_callback error_callback, void *data)

Definition at line 127 of file internal.h.

◆ syminfo

typedef void(* syminfo) (struct backtrace_state *state, uintptr_t pc, backtrace_syminfo_callback callback, backtrace_error_callback error_callback, void *data)

Definition at line 134 of file internal.h.

Enumeration Type Documentation

◆ dwarf_section

Enumerator
DEBUG_INFO 
DEBUG_LINE 
DEBUG_ABBREV 
DEBUG_RANGES 
DEBUG_STR 
DEBUG_ADDR 
DEBUG_STR_OFFSETS 
DEBUG_LINE_STR 
DEBUG_RNGLISTS 
DEBUG_MAX 

Definition at line 304 of file internal.h.

Function Documentation

◆ backtrace_alloc()

void * backtrace_alloc ( struct backtrace_state state,
size_t  size,
backtrace_error_callback  error_callback,
void *  data 
)
extern

Definition at line 114 of file mmap.c.

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

◆ backtrace_close()

int backtrace_close ( int  descriptor,
backtrace_error_callback  error_callback,
void *  data 
)
extern

Definition at line 95 of file posix.c.

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

◆ backtrace_dwarf_add()

int backtrace_dwarf_add ( struct backtrace_state state,
struct libbacktrace_base_address  base_address,
const struct dwarf_sections dwarf_sections,
int  is_bigendian,
struct dwarf_data fileline_altlink,
backtrace_error_callback  error_callback,
void *  data,
fileline fileline_fn,
struct dwarf_data **  fileline_entry 
)
extern

Definition at line 4536 of file dwarf.c.

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

◆ backtrace_free()

void backtrace_free ( struct backtrace_state state,
void *  mem,
size_t  size,
backtrace_error_callback  error_callback,
void *  data 
)
extern

◆ backtrace_get_view()

int backtrace_get_view ( struct backtrace_state state,
int  descriptor,
off_t  offset,
uint64_t  size,
backtrace_error_callback  error_callback,
void *  data,
struct backtrace_view view 
)
extern

Definition at line 48 of file read.c.

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

◆ backtrace_initialize()

int backtrace_initialize ( struct backtrace_state state,
const char *  filename,
int  descriptor,
backtrace_error_callback  error_callback,
void *  data,
fileline fileline_fn 
)
extern

Definition at line 7410 of file elf.c.

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

◆ backtrace_open()

int backtrace_open ( const char *  filename,
backtrace_error_callback  error_callback,
void *  data,
int *  does_not_exist 
)
extern

Definition at line 59 of file posix.c.

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

◆ backtrace_qsort()

void backtrace_qsort ( void *  base,
size_t  count,
size_t  size,
int(*)(const void *, const void *)  compar 
)
extern

Definition at line 61 of file sort.c.

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

◆ backtrace_release_view()

void backtrace_release_view ( struct backtrace_state state,
struct backtrace_view view,
backtrace_error_callback  error_callback,
void *  data 
)
extern

Definition at line 102 of file read.c.

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

◆ backtrace_syminfo_to_full_callback()

void backtrace_syminfo_to_full_callback ( void *  data,
uintptr_t  pc,
const char *  symname,
uintptr_t  symval,
uintptr_t  symsize 
)
extern

Definition at line 421 of file fileline.c.

+ Here is the caller graph for this function:

◆ backtrace_syminfo_to_full_error_callback()

void backtrace_syminfo_to_full_error_callback ( void *  data,
const char *  msg,
int  errnum 
)
extern

Definition at line 435 of file fileline.c.

+ Here is the caller graph for this function:

◆ backtrace_uncompress_lzma()

int backtrace_uncompress_lzma ( struct backtrace_state state,
const unsigned char *  compressed,
size_t  compressed_size,
backtrace_error_callback  error_callback,
void *  data,
unsigned char **  uncompressed,
size_t uncompressed_size 
)
extern

Definition at line 6488 of file elf.c.

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

◆ backtrace_uncompress_zdebug()

int backtrace_uncompress_zdebug ( struct backtrace_state state,
const unsigned char *  compressed,
size_t  compressed_size,
backtrace_error_callback  error_callback,
void *  data,
unsigned char **  uncompressed,
size_t uncompressed_size 
)
extern

Definition at line 5146 of file elf.c.

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

◆ backtrace_uncompress_zstd()

int backtrace_uncompress_zstd ( struct backtrace_state state,
const unsigned char *  compressed,
size_t  compressed_size,
backtrace_error_callback  error_callback,
void *  data,
unsigned char *  uncompressed,
size_t  uncompressed_size 
)
extern

Definition at line 5172 of file elf.c.

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

◆ backtrace_vector_finish()

void * backtrace_vector_finish ( struct backtrace_state state,
struct backtrace_vector vec,
backtrace_error_callback  error_callback,
void *  data 
)
extern

Definition at line 121 of file alloc.c.

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

◆ backtrace_vector_free()

static void backtrace_vector_free ( struct backtrace_state state,
struct backtrace_vector vec,
backtrace_error_callback  error_callback,
void *  data 
)
inlinestatic

Definition at line 276 of file internal.h.

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

◆ backtrace_vector_grow()

void * backtrace_vector_grow ( struct backtrace_state state,
size_t  size,
backtrace_error_callback  error_callback,
void *  data,
struct backtrace_vector vec 
)
extern

Definition at line 243 of file mmap.c.

+ Here is the call graph for this function:

◆ backtrace_vector_release()

int backtrace_vector_release ( struct backtrace_state state,
struct backtrace_vector vec,
backtrace_error_callback  error_callback,
void *  data 
)
extern

Definition at line 309 of file mmap.c.

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