Asterisk - The Open Source Telephony Project
18.5.0
|
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"
Go to the source code of this file.
Macros | |
#define | DELAYED_SAME_EXPIRE 300 /* ms */ |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
AST_TEST_DEFINE (sched_test_order) | |
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 | 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 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_info * | ast_module_info = &__mod_info |
static struct ast_cli_entry | cli_sched [] |
static int | order_check |
static int | order_check_failed |
ast_sched performance test module
Definition in file test_sched.c.
#define DELAYED_SAME_EXPIRE 300 /* ms */ |
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 357 of file test_sched.c.
|
static |
Definition at line 357 of file test_sched.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 357 of file test_sched.c.
AST_TEST_DEFINE | ( | sched_test_order | ) |
Definition at line 107 of file test_sched.c.
References ast_sched_add(), ast_sched_context_create(), ast_sched_context_destroy(), ast_sched_del(), ast_sched_runq(), ast_sched_wait(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, DELAYED_SAME_EXPIRE, sip_to_pjsip::info(), NULL, order_check, order_check_failed, sched_cb(), sched_order_1_cb(), sched_order_2_cb(), sched_order_3_cb(), sched_order_4_cb(), sched_order_5_cb(), sched_order_6_cb(), sched_order_7_cb(), sched_order_8_cb(), TEST_EXECUTE, and TEST_INIT.
|
static |
Definition at line 265 of file test_sched.c.
References ast_cli_args::argc, ast_cli_entry::args, ast_cli_args::argv, ast_cli(), ast_free, ast_malloc, ast_random(), ast_sched_add(), ast_sched_context_create(), ast_sched_context_destroy(), ast_sched_del(), ast_tvdiff_us(), ast_tvnow(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_cli_args::fd, NULL, sched_cb(), and ast_cli_entry::usage.
|
static |
Definition at line 350 of file test_sched.c.
References ARRAY_LEN, ast_cli_register_multiple, AST_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
|
static |
Definition at line 41 of file test_sched.c.
Referenced by AST_TEST_DEFINE(), and handle_cli_sched_bench().
|
static |
Definition at line 59 of file test_sched.c.
References sched_order_check().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 65 of file test_sched.c.
References sched_order_check().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 71 of file test_sched.c.
References sched_order_check().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 77 of file test_sched.c.
References sched_order_check().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 83 of file test_sched.c.
References sched_order_check().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 89 of file test_sched.c.
References sched_order_check().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 95 of file test_sched.c.
References sched_order_check().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 101 of file test_sched.c.
References sched_order_check().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 49 of file test_sched.c.
References ast_test_status_update, order_check, and order_check_failed.
Referenced by sched_order_1_cb(), sched_order_2_cb(), sched_order_3_cb(), sched_order_4_cb(), sched_order_5_cb(), sched_order_6_cb(), sched_order_7_cb(), and sched_order_8_cb().
|
static |
Definition at line 343 of file test_sched.c.
References ARRAY_LEN, ast_cli_unregister_multiple(), and AST_TEST_UNREGISTER.
|
static |
Definition at line 357 of file test_sched.c.
|
static |
Definition at line 357 of file test_sched.c.
|
static |
Definition at line 339 of file test_sched.c.
|
static |
Definition at line 46 of file test_sched.c.
Referenced by AST_TEST_DEFINE(), and sched_order_check().
|
static |
Definition at line 47 of file test_sched.c.
Referenced by AST_TEST_DEFINE(), and sched_order_check().