omapip/trace.c File Reference
#include "dhcpd.h"
#include <omapip/omapip_p.h>
#include <errno.h>
Go to the source code of this file.
Functions |
int | trace_playback () |
int | trace_record () |
isc_result_t | trace_init (void(*set_time)(TIME), const char *file, int line) |
isc_result_t | trace_begin (const char *filename, const char *file, int line) |
isc_result_t | trace_write_packet (trace_type_t *ttype, unsigned length, const char *buf, const char *file, int line) |
isc_result_t | trace_write_packet_iov (trace_type_t *ttype, int count, trace_iov_t *iov, const char *file, int line) |
void | trace_type_stash (trace_type_t *tptr) |
trace_type_t * | trace_type_register (const char *name, void *baggage, void(*have_packet)(trace_type_t *, unsigned, char *), void(*stop_tracing)(trace_type_t *), const char *file, int line) |
void | trace_stop (void) |
void | trace_index_map_input (trace_type_t *ttype, unsigned length, char *buf) |
void | trace_index_stop_tracing (trace_type_t *ttype) |
void | trace_replay_init (void) |
void | trace_file_replay (const char *filename) |
isc_result_t | trace_get_next_packet (trace_type_t **ttp, tracepacket_t *tpkt, char **buf, unsigned *buflen, unsigned *bufmax) |
isc_result_t | trace_get_packet (trace_type_t **ttp, unsigned *buflen, char **buf) |
isc_result_t | trace_get_file (trace_type_t *ttype, const char *filename, unsigned *len, char **buf) |
Variables |
void(* | trace_set_time_hook )(TIME) |
trace_type_t | trace_time_marker |
Function Documentation
isc_result_t trace_begin |
( |
const char * |
filename, |
|
|
const char * |
file, |
|
|
int |
line | |
|
) |
| | |
void trace_file_replay |
( |
const char * |
filename |
) |
|
isc_result_t trace_get_file |
( |
trace_type_t * |
ttype, |
|
|
const char * |
filename, |
|
|
unsigned * |
len, |
|
|
char ** |
buf | |
|
) |
| | |
isc_result_t trace_get_next_packet |
( |
trace_type_t ** |
ttp, |
|
|
tracepacket_t * |
tpkt, |
|
|
char ** |
buf, |
|
|
unsigned * |
buflen, |
|
|
unsigned * |
bufmax | |
|
) |
| | |
isc_result_t trace_get_packet |
( |
trace_type_t ** |
ttp, |
|
|
unsigned * |
buflen, |
|
|
char ** |
buf | |
|
) |
| | |
void trace_index_map_input |
( |
trace_type_t * |
ttype, |
|
|
unsigned |
length, |
|
|
char * |
buf | |
|
) |
| | |
isc_result_t trace_init |
( |
void(*)(TIME) |
set_time, |
|
|
const char * |
file, |
|
|
int |
line | |
|
) |
| | |
int trace_playback |
( |
void |
|
) |
|
int trace_record |
( |
void |
|
) |
|
void trace_replay_init |
( |
void |
|
) |
|
isc_result_t trace_write_packet |
( |
trace_type_t * |
ttype, |
|
|
unsigned |
length, |
|
|
const char * |
buf, |
|
|
const char * |
file, |
|
|
int |
line | |
|
) |
| | |
Variable Documentation