Asterisk - The Open Source Telephony Project  21.4.1
Data Structures | Macros | Functions | Variables
test_sched.c File Reference

ast_sched performance test module More...

#include "asterisk.h"
#include <inttypes.h>
#include "asterisk/module.h"
#include "asterisk/utils.h"
#include "asterisk/sched.h"
#include "asterisk/test.h"
#include "asterisk/cli.h"
#include "asterisk/astobj2.h"

Go to the source code of this file.

Data Structures

struct  test_obj
 

Macros

#define DELAYED_SAME_EXPIRE   300 /* ms */
 

Functions

static void __reg_module (void)
 
static void __unreg_module (void)
 
struct ast_moduleAST_MODULE_SELF_SYM (void)
 
 AST_TEST_DEFINE (sched_test_order)
 
 AST_TEST_DEFINE (sched_test_freebird)
 
static char * handle_cli_sched_bench (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
static int load_module (void)
 
static int lockingcb (const void *data)
 
static int sched_cb (const void *data)
 
static int sched_order_1_cb (const void *data)
 
static int sched_order_2_cb (const void *data)
 
static int sched_order_3_cb (const void *data)
 
static int sched_order_4_cb (const void *data)
 
static int sched_order_5_cb (const void *data)
 
static int sched_order_6_cb (const void *data)
 
static int sched_order_7_cb (const void *data)
 
static int sched_order_8_cb (const void *data)
 
static void sched_order_check (struct ast_test *test, int order)
 
static void test_obj_cleanup (void *data)
 
static int unload_module (void)
 

Variables

static struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "ast_sched performance test module" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, }
 
static const struct ast_module_infoast_module_info = &__mod_info
 
static struct ast_cli_entry cli_sched []
 
static int order_check
 
static int order_check_failed
 

Detailed Description

ast_sched performance test module

Author
Russell Bryant russe.nosp@m.ll@d.nosp@m.igium.nosp@m..com

Definition in file test_sched.c.

Variable Documentation

struct ast_cli_entry cli_sched[]
static
Initial value:
= {
{ .handler = handle_cli_sched_bench , .summary = "Benchmark ast_sched add/del performance" ,},
}

Definition at line 466 of file test_sched.c.