The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include <freeradius-devel/io/message.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/hash.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/talloc.h>
#include <string.h>
#include <sys/time.h>
Go to the source code of this file.
Data Structures | |
struct | fr_test_t |
Macros | |
#define | ALLOC_SIZE (8) |
#define | ARRAY_SIZE (4 * ALLOC_SIZE) |
#define | MPRINT1 if (debug_lvl) printf |
#define | MPRINT2 if (debug_lvl > 1) printf |
#define | MY_ARRAY_SIZE (16 * ARRAY_SIZE) |
Typedefs | |
typedef struct request_s | request_t |
Functions | |
static void | alloc_blocks (fr_message_set_t *ms, uint32_t *seed, UNUSED int *start, int *end) |
static void | free_blocks (UNUSED fr_message_set_t *ms, UNUSED uint32_t *seed, int *start, int *end) |
int | main (int argc, char *argv[]) |
request_t * | request_alloc (UNUSED TALLOC_CTX *ctx, UNUSED request_init_args_t const *args) |
void | request_verify (UNUSED char const *file, UNUSED int line, UNUSED request_t *request) |
static NEVER_RETURNS void | usage (void) |
Variables | |
static size_t | allocation_mask = 0x3ff |
static size_t | array [MY_ARRAY_SIZE] |
static int | debug_lvl = 0 |
static fr_test_t * | messages [MY_ARRAY_SIZE] |
static int | my_alloc_size = ALLOC_SIZE |
static size_t | reserve_size = 2048 |
static char const * | seed_string = "foo" |
static size_t | seed_string_len = 3 |
static bool | touch_memory = false |
static size_t | used = 0 |
struct fr_test_t |
Definition at line 45 of file message_set_test.c.
Data Fields | ||
---|---|---|
int | bar | |
int | foo | |
fr_message_t | m |
#define ALLOC_SIZE (8) |
Definition at line 41 of file message_set_test.c.
#define ARRAY_SIZE (4 * ALLOC_SIZE) |
Definition at line 42 of file message_set_test.c.
Definition at line 38 of file message_set_test.c.
Definition at line 39 of file message_set_test.c.
#define MY_ARRAY_SIZE (16 * ARRAY_SIZE) |
Definition at line 43 of file message_set_test.c.
Definition at line 63 of file message_set_test.c.
|
static |
Definition at line 82 of file message_set_test.c.
|
static |
Definition at line 137 of file message_set_test.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
request_t* request_alloc | ( | UNUSED TALLOC_CTX * | ctx, |
UNUSED request_init_args_t const * | args | ||
) |
Definition at line 70 of file message_set_test.c.
Definition at line 75 of file message_set_test.c.
|
static |
|
static |
Definition at line 63 of file message_set_test.c.
|
static |
Definition at line 52 of file message_set_test.c.
|
static |
Definition at line 56 of file message_set_test.c.
|
static |
Definition at line 53 of file message_set_test.c.
|
static |
Definition at line 54 of file message_set_test.c.
|
static |
Definition at line 62 of file message_set_test.c.
|
static |
Definition at line 59 of file message_set_test.c.
|
static |
Definition at line 60 of file message_set_test.c.
Definition at line 57 of file message_set_test.c.
|
static |
Definition at line 51 of file message_set_test.c.