The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
stats.h File Reference

Structures and functions for statistics. More...

#include <freeradius-devel/server/request.h>
+ Include dependency graph for stats.h:

Go to the source code of this file.

Data Structures

struct  fr_stats_t
 

Macros

#define FR_STATS_INC(_x, _y)   radius_ ## _x ## _stats._y++;if (listener) listener->stats._y++;if (client) client->_x._y++;
 
#define FR_STATS_TYPE_INC(_x)   _x++
 

Functions

void fr_stats_bins (fr_stats_t *stats, fr_time_t start, fr_time_t end)
 Sort latency times into bins.
 
void request_stats_final (request_t *request)
 

Variables

fr_stats_t radius_acct_stats
 
fr_stats_t radius_auth_stats
 

Detailed Description

Structures and functions for statistics.

Id
219a43bc46f6ca87c462201f4712361bfa57708b

Definition in file stats.h.


Data Structure Documentation

◆ fr_stats_t

struct fr_stats_t

Definition at line 34 of file stats.h.

Data Fields
uint64_t elapsed[8]
time_t last_packet
uint64_t total_access_accepts
uint64_t total_access_challenges
uint64_t total_access_rejects
uint64_t total_bad_authenticators
uint64_t total_dup_requests
uint64_t total_invalid_requests
uint64_t total_malformed_requests
uint64_t total_no_records
uint64_t total_packets_dropped
uint64_t total_requests
uint64_t total_responses
uint64_t total_timeouts
uint64_t total_unknown_types

Macro Definition Documentation

◆ FR_STATS_INC

#define FR_STATS_INC (   _x,
  _y 
)    radius_ ## _x ## _stats._y++;if (listener) listener->stats._y++;if (client) client->_x._y++;

Definition at line 58 of file stats.h.

◆ FR_STATS_TYPE_INC

#define FR_STATS_TYPE_INC (   _x)    _x++

Definition at line 59 of file stats.h.

Function Documentation

◆ fr_stats_bins()

void fr_stats_bins ( fr_stats_t stats,
fr_time_t  start,
fr_time_t  end 
)

Sort latency times into bins.

This solves the problem of attempting to keep min/max/avg latencies, whilst not knowing what the polling frequency will be.

Parameters
[out]statsHolding monotonically increasing stats bins.
[in]startof the request.
[in]endof the request.

Definition at line 155 of file stats.c.

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

◆ request_stats_final()

void request_stats_final ( request_t request)

Definition at line 45 of file stats.c.

+ Here is the call graph for this function:

Variable Documentation

◆ radius_acct_stats

fr_stats_t radius_acct_stats
extern

Definition at line 43 of file stats.c.

◆ radius_auth_stats

fr_stats_t radius_auth_stats
extern

Definition at line 42 of file stats.c.