26 RCSIDH(load_h,
"$Id: cc63fe7a225dee4170919ef0e7ce27efb35c383a $")
28 #include <freeradius-devel/util/event.h>
29 #include <freeradius-devel/util/talloc.h>
static int const char char buffer[256]
fr_dcursor_eval_t void const * uctx
Stores all information relating to an event list.
fr_load_callback_t callback
int sent
total packets sent
fr_time_t last_send
last packet we sent
fr_time_delta_t rtt
smoothed round trip time
int received
total packets received (should be == sent)
int(* fr_load_callback_t)(fr_time_t now, void *uctx)
int skipped
we skipped sending this number of packets
bool blocked
whether or not we're blocked
fr_time_t end
when the test started
int pps_accepted
Accepted PPS for the last second.
uint32_t start_pps
start PPS
int pps
current offered packets/s
int fr_load_generator_start(fr_load_t *l)
Start the load generator.
fr_load_t * fr_load_generator_create(TALLOC_CTX *ctx, fr_event_list_t *el, fr_load_config_t *config, fr_load_callback_t callback, void *uctx))
int fr_load_generator_stop(fr_load_t *l)
Stop the load generation through the simple expedient of deleting the timer associated with it.
fr_load_reply_t
Whether or not the application should continue.
@ FR_LOAD_DONE
the load generator is done
@ FR_LOAD_CONTINUE
continue sending packets.
uint32_t parallel
how many packets in parallel to send
fr_time_delta_t duration
duration of each step
int backlog
current backlog
uint32_t step
how much to increase each load test by
int max_backlog
maximum backlog we saw during the test
size_t fr_load_generator_stats_sprint(fr_load_t *l, fr_time_t now, char *buffer, size_t buflen)
Print load generator statistics in CVS format.
fr_time_delta_t rttvar
RTT variation.
uint32_t max_pps
max PPS, 0 for "no limit".
fr_load_reply_t fr_load_generator_have_reply(fr_load_t *l, fr_time_t request_time)
Tell the load generator that we have a reply to a packet we sent.
uint32_t milliseconds
how many milliseconds of backlog to top out at
fr_load_stats_t const * fr_load_generator_stats(fr_load_t const *l)
Load generation configuration.
static const conf_parser_t config[]
A time delta, a difference in time measured in nanoseconds.
static fr_event_list_t * el