The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Typedefs | Functions | Variables
channel_test.c File Reference
#include <freeradius-devel/io/channel.h>
#include <freeradius-devel/io/control.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/talloc.h>
#include <pthread.h>
#include <sys/event.h>
+ Include dependency graph for channel_test.c:

Go to the source code of this file.

Macros

#define MAX_CONTROL_PLANE   (1024)
 
#define MAX_KEVENTS   (10)
 
#define MAX_MESSAGES   (2048)
 
#define MPRINT1   if (debug_lvl) printf
 
#define MPRINT2   if (debug_lvl > 1) printf
 

Typedefs

typedef struct request_s request_t
 

Functions

static void * channel_master (void *arg)
 
static void * channel_worker (void *arg)
 
int main (int argc, char *argv[])
 
request_trequest_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 const *request)
 
static NEVER_RETURNS void usage (void)
 

Variables

static fr_atomic_queue_taq_master
 
static fr_atomic_queue_taq_worker
 
static fr_control_tcontrol_master
 
static fr_control_tcontrol_worker
 
static int debug_lvl = 0
 
static int kq_master
 
static int kq_worker
 
static int max_control_plane = 0
 
static int max_messages = 10
 
static int max_outstanding = 1
 
static bool touch_memory = false
 

Macro Definition Documentation

◆ MAX_CONTROL_PLANE

#define MAX_CONTROL_PLANE   (1024)

Definition at line 39 of file channel_test.c.

◆ MAX_KEVENTS

#define MAX_KEVENTS   (10)

Definition at line 40 of file channel_test.c.

◆ MAX_MESSAGES

#define MAX_MESSAGES   (2048)

Definition at line 38 of file channel_test.c.

◆ MPRINT1

#define MPRINT1   if (debug_lvl) printf

Definition at line 42 of file channel_test.c.

◆ MPRINT2

#define MPRINT2   if (debug_lvl > 1) printf

Definition at line 43 of file channel_test.c.

Typedef Documentation

◆ request_t

typedef struct request_s request_t

Definition at line 52 of file channel_test.c.

Function Documentation

◆ channel_master()

static void* channel_master ( void *  arg)
static

Definition at line 80 of file channel_test.c.

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

◆ channel_worker()

static void* channel_worker ( void *  arg)
static

Definition at line 308 of file channel_test.c.

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

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 484 of file channel_test.c.

+ Here is the call graph for this function:

◆ request_alloc()

request_t * request_alloc ( UNUSED TALLOC_CTX *  ctx,
UNUSED request_init_args_t const *  args 
)

Definition at line 57 of file channel_test.c.

◆ request_verify()

void request_verify ( UNUSED char const *  file,
UNUSED int  line,
UNUSED request_t const *  request 
)

Definition at line 62 of file channel_test.c.

◆ usage()

static NEVER_RETURNS void usage ( void  )
static

Definition at line 68 of file channel_test.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ aq_master

fr_atomic_queue_t* aq_master
static

Definition at line 47 of file channel_test.c.

◆ aq_worker

fr_atomic_queue_t * aq_worker
static

Definition at line 47 of file channel_test.c.

◆ control_master

fr_control_t* control_master
static

Definition at line 48 of file channel_test.c.

◆ control_worker

fr_control_t * control_worker
static

Definition at line 48 of file channel_test.c.

◆ debug_lvl

int debug_lvl = 0
static

Definition at line 45 of file channel_test.c.

◆ kq_master

int kq_master
static

Definition at line 46 of file channel_test.c.

◆ kq_worker

int kq_worker
static

Definition at line 46 of file channel_test.c.

◆ max_control_plane

int max_control_plane = 0
static

Definition at line 50 of file channel_test.c.

◆ max_messages

int max_messages = 10
static

Definition at line 49 of file channel_test.c.

◆ max_outstanding

int max_outstanding = 1
static

Definition at line 51 of file channel_test.c.

◆ touch_memory

bool touch_memory = false
static

Definition at line 52 of file channel_test.c.