Go to the source code of this file.
◆ BIT_APPDATA
#define BIT_APPDATA (1<<4) |
◆ BIT_EGR_INTERFACE
#define BIT_EGR_INTERFACE (1<<2) |
◆ BIT_ING_INTERFACE
#define BIT_ING_INTERFACE (1<<1) |
◆ BIT_LOOPBACK
#define BIT_LOOPBACK (1<<5) |
◆ BIT_LOOPBACK_REPLY
#define BIT_LOOPBACK_REPLY (1<<6) |
◆ BIT_TIMESTAMP
#define BIT_TIMESTAMP (1<<3) |
◆ BIT_TTL_NODEID
#define BIT_TTL_NODEID (1<<0) |
◆ debug_ioam
#define debug_ioam debug_ioam_fn |
◆ TRACE_TYPE_APP
#define TRACE_TYPE_APP 0x11 |
◆ TRACE_TYPE_IF
#define TRACE_TYPE_IF 0x03 |
◆ TRACE_TYPE_IF_TS_APP
#define TRACE_TYPE_IF_TS_APP 0x1f |
◆ TRACE_TYPE_IF_TS_APP_LOOP
#define TRACE_TYPE_IF_TS_APP_LOOP 0x3F |
◆ TRACE_TYPE_MASK
#define TRACE_TYPE_MASK 0x7F /* Mask of all above bits */ |
◆ TRACE_TYPE_TS
#define TRACE_TYPE_TS 0x09 |
◆ TRACE_TYPE_TS_APP
#define TRACE_TYPE_TS_APP 0x19 |
◆ TSP_MICROSECONDS
#define TSP_MICROSECONDS 2 |
◆ TSP_MILLISECONDS
#define TSP_MILLISECONDS 1 |
◆ TSP_NANOSECONDS
#define TSP_NANOSECONDS 3 |
◆ TSP_SECONDS
◆ trace_profile
Usage:
On any node that participates in iOAM Trace.
Step 1: Initialize this library by calling trace_init() Step 2: Setup a trace profile that contains all the parameters needed to compute cumulative: Call these functions: trace_profile_find trace_profile_create Step 2a: On initial node enable the profile to be used: trace_profile_set_active / trace_profile_get_active will return the profile Step 4: TBD trace_validate
◆ clear_trace_profiles()
void clear_trace_profiles |
( |
void |
| ) |
|
◆ CLIB_PACKED()
typedef CLIB_PACKED |
( |
struct { u8 ioam_trace_type;u8 data_list_elts_left;u32 elts[0];} |
| ) |
|
◆ fetch_trace_data_size()
static u8 fetch_trace_data_size |
( |
u16 |
trace_type | ) |
|
|
inlinestatic |
◆ ioam_trace_get_sizeof_handler()
int ioam_trace_get_sizeof_handler |
( |
u32 * |
result | ) |
|
◆ ioam_trace_reset_bit()
static void ioam_trace_reset_bit |
( |
ioam_trace_hdr_t * |
trace_hdr, |
|
|
u8 |
trace_bit |
|
) |
| |
|
inlinestatic |
◆ ioam_trace_set_bit()
static void ioam_trace_set_bit |
( |
ioam_trace_hdr_t * |
trace_hdr, |
|
|
u8 |
trace_bit |
|
) |
| |
|
inlinestatic |
◆ ip6_trace_profile_cleanup()
int ip6_trace_profile_cleanup |
( |
void |
| ) |
|
◆ ip6_trace_profile_setup()
int ip6_trace_profile_setup |
( |
void |
| ) |
|
◆ trace_profile_create()
◆ trace_util_init()
int trace_util_init |
( |
void |
| ) |
|