Xen Test Framework
Functions | Variables
extable.c File Reference

Exception table support. More...

#include <xtf/lib.h>
#include <xtf/extable.h>
+ Include dependency graph for extable.c:

Go to the source code of this file.

Functions

const struct extable_entrysearch_extable (unsigned long addr)
 Search the exception table to find the entry associated with a specific faulting address. More...
 
static int compare_extable_entry (const void *_l, const void *_r)
 
static void swap_extable_entry (void *_l, void *_r)
 
void sort_extable (void)
 Sort the exception table. More...
 

Variables

struct extable_entry __start_ex_table []
 
struct extable_entry __stop_ex_table []
 

Detailed Description

Exception table support.

Definition in file extable.c.

Function Documentation

◆ search_extable()

const struct extable_entry* search_extable ( unsigned long  addr)

Search the exception table to find the entry associated with a specific faulting address.

Parameters
addrFaulting address.
Returns
Appropriate extable_entry, or NULL if no entry.

Definition at line 11 of file extable.c.

+ Here is the caller graph for this function:

◆ compare_extable_entry()

static int compare_extable_entry ( const void *  _l,
const void *  _r 
)
static

Definition at line 31 of file extable.c.

+ Here is the caller graph for this function:

◆ swap_extable_entry()

static void swap_extable_entry ( void *  _l,
void *  _r 
)
static

Definition at line 43 of file extable.c.

+ Here is the caller graph for this function:

◆ sort_extable()

void sort_extable ( void  )

Sort the exception table.

Required to be called once on boot to make searching efficient.

Definition at line 52 of file extable.c.

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

Variable Documentation

◆ __start_ex_table

struct extable_entry __start_ex_table[]

◆ __stop_ex_table

struct extable_entry __stop_ex_table[]