The FreeRADIUS server $Id: f3670dba8951ca10eb4948feb3dc3db9423a334f $
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
ztest.c File Reference
#include "config.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <zlib.h>
#include "backtrace.h"
#include "backtrace-supported.h"
#include "internal.h"
#include "testlib.h"
+ Include dependency graph for ztest.c:

Go to the source code of this file.

Data Structures

struct  zlib_test
 

Macros

#define ZLIB_CLOCK_GETTIME_ARG   CLOCK_REALTIME
 

Functions

static size_t average_time (const size_t *times, size_t trials)
 
static void error_callback_compress (void *vdata ATTRIBUTE_UNUSED, const char *msg, int errnum)
 
int main (int argc ATTRIBUTE_UNUSED, char **argv)
 
static void test_large (struct backtrace_state *state ATTRIBUTE_UNUSED)
 
static void test_samples (struct backtrace_state *state)
 

Variables

static const struct zlib_test tests []
 

Data Structure Documentation

◆ zlib_test

struct zlib_test

Definition at line 80 of file ztest.c.

Data Fields
const char * compressed
size_t compressed_len
const char * name
const char * uncompressed
size_t uncompressed_len

Macro Definition Documentation

◆ ZLIB_CLOCK_GETTIME_ARG

#define ZLIB_CLOCK_GETTIME_ARG   CLOCK_REALTIME

Definition at line 75 of file ztest.c.

Function Documentation

◆ average_time()

static size_t average_time ( const size_t times,
size_t  trials 
)
static

Definition at line 256 of file ztest.c.

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

◆ error_callback_compress()

static void error_callback_compress ( void *vdata  ATTRIBUTE_UNUSED,
const char *  msg,
int  errnum 
)
static

Definition at line 92 of file ztest.c.

+ Here is the caller graph for this function:

◆ main()

int main ( int argc  ATTRIBUTE_UNUSED,
char **  argv 
)

Definition at line 530 of file ztest.c.

+ Here is the call graph for this function:

◆ test_large()

static void test_large ( struct backtrace_state *state  ATTRIBUTE_UNUSED)
static

Definition at line 297 of file ztest.c.

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

◆ test_samples()

static void test_samples ( struct backtrace_state state)
static

Definition at line 190 of file ztest.c.

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

Variable Documentation

◆ tests

const struct zlib_test tests[]
static

Definition at line 102 of file ztest.c.