Record core definitions. More...
#include "libts.h"
#include "P_RecFile.h"
#include "P_RecCore.h"
#include "P_RecUtils.h"
#include "P_RecTree.h"
#include "I_Layout.h"
Go to the source code of this file.
Functions | |
static RecRecord * | register_record (RecT rec_type, const char *name, RecDataT data_type, RecData data_default, RecPersistT persist_type) |
static int | link_int (const char *, RecDataT, RecData data, void *cookie) |
static int | link_int32 (const char *, RecDataT, RecData data, void *cookie) |
static int | link_uint32 (const char *, RecDataT, RecData data, void *cookie) |
static int | link_float (const char *, RecDataT, RecData data, void *cookie) |
static int | link_counter (const char *, RecDataT, RecData data, void *cookie) |
static int | link_byte (const char *, RecDataT, RecData data, void *cookie) |
static int | link_string_alloc (const char *, RecDataT, RecData data, void *cookie) |
int | RecCoreInit (RecModeT mode_type, Diags *_diags) |
int | RecLinkConfigInt (const char *name, RecInt *rec_int) |
int | RecLinkConfigInt32 (const char *name, int32_t *p_int32) |
int | RecLinkConfigUInt32 (const char *name, uint32_t *p_uint32) |
int | RecLinkConfigFloat (const char *name, RecFloat *rec_float) |
int | RecLinkConfigCounter (const char *name, RecCounter *rec_counter) |
int | RecLinkConfigString (const char *name, RecString *rec_string) |
int | RecLinkConfigByte (const char *name, RecByte *rec_byte) |
int | RecLinkConfigBool (const char *name, RecBool *rec_bool) |
int | RecRegisterConfigUpdateCb (const char *name, RecConfigUpdateCb update_cb, void *cookie) |
int | RecGetRecordInt (const char *name, RecInt *rec_int, bool lock) |
int | RecGetRecordFloat (const char *name, RecFloat *rec_float, bool lock) |
int | RecGetRecordString (const char *name, char *buf, int buf_len, bool lock) |
int | RecGetRecordString_Xmalloc (const char *name, RecString *rec_string, bool lock) |
int | RecGetRecordCounter (const char *name, RecCounter *rec_counter, bool lock) |
int | RecGetRecordByte (const char *name, RecByte *rec_byte, bool lock) |
int | RecGetRecordBool (const char *name, RecBool *rec_bool, bool lock) |
int | RecGetRecordType (const char *name, RecT *rec_type, bool lock) |
int | RecGetRecordDataType (const char *name, RecDataT *data_type, bool lock) |
int | RecGetRecordPersistenceType (const char *name, RecPersistT *persist_type, bool lock) |
int | RecGetRecordOrderAndId (const char *name, int *order, int *id, bool lock) |
int | RecGetRecordUpdateType (const char *name, RecUpdateT *update_type, bool lock) |
int | RecGetRecordCheckType (const char *name, RecCheckT *check_type, bool lock) |
int | RecGetRecordCheckExpr (const char *name, char **check_expr, bool lock) |
int | RecGetRecordDefaultDataString_Xmalloc (char *name, char **buf, bool lock) |
int | RecGetRecordAccessType (const char *name, RecAccessT *access, bool lock) |
int | RecSetRecordAccessType (const char *name, RecAccessT access, bool lock) |
RecRecord * | RecRegisterStat (RecT rec_type, const char *name, RecDataT data_type, RecData data_default, RecPersistT persist_type) |
RecRecord * | RecRegisterConfig (RecT rec_type, const char *name, RecDataT data_type, RecData data_default, RecUpdateT update_type, RecCheckT check_type, const char *check_expr, RecAccessT access_type) |
int | RecGetRecord_Xmalloc (const char *name, RecDataT data_type, RecData *data, bool lock) |
RecRecord * | RecForceInsert (RecRecord *record) |
static void | debug_record_callback (RecT, void *, int registered, const char *name, int data_type, RecData *datum) |
void | RecDumpRecords (RecT rec_type, RecDumpEntryCb callback, void *edata) |
void | RecDumpRecordsHt (RecT rec_type) |
void | RecGetRecordTree (char *subtree) |
void | RecGetRecordList (char *var, char ***buffer, int *count) |
int | RecGetRecordPrefix_Xmalloc (char *prefix, char **buf, int *buf_len) |
RecInt | REC_ConfigReadInteger (const char *name) |
char * | REC_ConfigReadString (const char *name) |
RecFloat | REC_ConfigReadFloat (const char *name) |
RecCounter | REC_ConfigReadCounter (const char *name) |
RecInt | REC_readInteger (const char *name, bool *found, bool lock) |
RecFloat | REC_readFloat (char *name, bool *found, bool lock) |
RecCounter | REC_readCounter (char *name, bool *found, bool lock) |
RecString | REC_readString (const char *name, bool *found, bool lock) |
char * | RecConfigReadRuntimeDir () |
char * | RecConfigReadLogDir () |
char * | RecConfigReadBinDir () |
char * | RecConfigReadSnapshotDir () |
char * | RecConfigReadConfigPath (const char *file_variable, const char *default_value) |
char * | RecConfigReadPrefixPath (const char *file_variable, const char *default_value) |
char * | RecConfigReadPersistentStatsPath () |
void | RecSignalWarning (int sig, const char *fmt,...) |
Variables | |
static bool | g_initialized = false |
RecRecord * | g_records = NULL |
InkHashTable * | g_records_ht = NULL |
ink_rwlock | g_records_rwlock |
int | g_num_records = 0 |
RecTree * | g_records_tree = NULL |
Record core definitions.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file RecCore.cc.
static void debug_record_callback | ( | RecT | , | |
void * | , | |||
int | registered, | |||
const char * | name, | |||
int | data_type, | |||
RecData * | datum | |||
) | [static] |
Definition at line 880 of file RecCore.cc.
References DL_Note, RecData::rec_counter, RecData::rec_float, RecData::rec_int, RecData::rec_string, RECD_COUNTER, RECD_FLOAT, RECD_INT, RECD_STRING, and RecDebug().
Referenced by RecDumpRecordsHt().
Definition at line 119 of file RecCore.cc.
References RecData::rec_int.
Referenced by RecLinkConfigBool(), and RecLinkConfigByte().
Definition at line 109 of file RecCore.cc.
References RecData::rec_counter.
Referenced by RecLinkConfigCounter().
Definition at line 102 of file RecCore.cc.
References RecData::rec_float.
Referenced by RecLinkConfigFloat().
Definition at line 80 of file RecCore.cc.
References RecData::rec_int.
Referenced by RecLinkConfigInt().
Definition at line 88 of file RecCore.cc.
References REC_ERR_OKAY, and RecData::rec_int.
Referenced by RecLinkConfigInt32().
Definition at line 132 of file RecCore.cc.
References ats_free(), ats_strdup, and RecData::rec_string.
Referenced by RecLinkConfigString().
Definition at line 95 of file RecCore.cc.
References REC_ERR_OKAY, and RecData::rec_int.
Referenced by RecLinkConfigUInt32().
RecCounter REC_ConfigReadCounter | ( | const char * | name | ) |
Definition at line 1035 of file RecCore.cc.
References RecGetRecordCounter().
RecFloat REC_ConfigReadFloat | ( | const char * | name | ) |
Definition at line 1027 of file RecCore.cc.
References RecGetRecordFloat().
RecInt REC_ConfigReadInteger | ( | const char * | name | ) |
Definition at line 1011 of file RecCore.cc.
References RecGetRecordInt().
Referenced by Log::init(), init_tracker(), loadSocksConfiguration(), LogAccess::marshal_config_int_var(), LogConfig::read_configuration_variables(), and PrefetchConfiguration::readConfiguration().
char* REC_ConfigReadString | ( | const char * | name | ) |
Definition at line 1019 of file RecCore.cc.
References RecGetRecordString_Xmalloc().
Referenced by loadSocksConfiguration(), LogAccess::marshal_config_str_var(), LogConfig::read_configuration_variables(), PrefetchConfiguration::readConfiguration(), and ts_host_res_global_init().
RecCounter REC_readCounter | ( | char * | name, | |
bool * | found, | |||
bool | lock | |||
) |
Definition at line 1071 of file RecCore.cc.
References ink_assert, and RecGetRecordCounter().
Referenced by LogAccess::marshal_record().
RecFloat REC_readFloat | ( | char * | name, | |
bool * | found, | |||
bool | lock | |||
) |
Definition at line 1059 of file RecCore.cc.
References ink_assert, and RecGetRecordFloat().
Referenced by LogAccess::marshal_record().
RecInt REC_readInteger | ( | const char * | name, | |
bool * | found, | |||
bool | lock | |||
) |
Definition at line 1047 of file RecCore.cc.
References ink_assert, and RecGetRecordInt().
Referenced by LogAccess::marshal_record(), and DiagsConfig::reconfigure_diags().
RecString REC_readString | ( | const char * | name, | |
bool * | found, | |||
bool | lock | |||
) |
Definition at line 1083 of file RecCore.cc.
References ink_assert, and RecGetRecordString_Xmalloc().
Referenced by HttpProxyPort::loadConfig(), LogAccess::marshal_record(), and DiagsConfig::reconfigure_diags().
char* RecConfigReadBinDir | ( | ) |
Definition at line 1132 of file RecCore.cc.
References ats_strdup, Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative().
char* RecConfigReadConfigPath | ( | const char * | file_variable, | |
const char * | default_value | |||
) |
Definition at line 1166 of file RecCore.cc.
References Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative_to().
Referenced by CacheHostTable::CacheHostTable(), ControlMatcher< Data, Result >::ControlMatcher(), ink_cache_init(), IpAllow::IpAllow(), Store::read_config(), ConfigVolumes::read_config_file(), and PrefetchConfiguration::readConfiguration().
char* RecConfigReadLogDir | ( | ) |
Definition at line 1115 of file RecCore.cc.
References ats_strdup, Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative().
Referenced by DiagsConfig::DiagsConfig(), LogConfig::read_configuration_variables(), and SDK_API_TSTextLog().
char* RecConfigReadPersistentStatsPath | ( | ) |
Definition at line 1208 of file RecCore.cc.
References REC_RAW_STATS_FILE, RecConfigReadRuntimeDir(), and Layout::relative_to().
Referenced by RecReadStatsFile(), and RecSyncStatsFile().
char* RecConfigReadPrefixPath | ( | const char * | file_variable, | |
const char * | default_value | |||
) |
Definition at line 1187 of file RecCore.cc.
References Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative_to().
Referenced by TSPluginDirGet().
char* RecConfigReadRuntimeDir | ( | ) |
Definition at line 1098 of file RecCore.cc.
References ats_strdup, Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative().
Referenced by check_config_directories(), check_lockfile(), cmd_clear(), initialize_all_global_stats(), MultiCacheBase::read_config(), RecConfigReadPersistentStatsPath(), HostDBCache::start(), and MultiCacheBase::write_config().
char* RecConfigReadSnapshotDir | ( | ) |
Definition at line 1149 of file RecCore.cc.
References Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative_to().
Definition at line 154 of file RecCore.cc.
References ats_free(), ats_malloc(), DL_Warning, g_initialized, g_num_records, g_rec_config_fpath, g_rec_config_lock, g_records_ht, Layout::get(), ink_hash_table_create(), ink_mutex_init(), ink_rwlock_init(), InkHashTableKeyType_String, REC_CONFIG_FILE, REC_ERR_FAIL, REC_MAX_RECORDS, REC_SHADOW_EXT, RecConfigFileInit(), RecFileExists(), RecLog(), RECM_SERVER, RECM_STAND_ALONE, RecReadConfigFile(), RecReadStatsFile(), RecSetDiags(), and Layout::relative_to().
Referenced by RecLocalInit(), and RecProcessInit().
void RecDumpRecords | ( | RecT | rec_type, | |
RecDumpEntryCb | callback, | |||
void * | edata | |||
) |
Definition at line 902 of file RecCore.cc.
References RecRecord::data, RecRecord::data_type, g_num_records, RecRecord::lock, RecRecord::name, rec_mutex_acquire(), rec_mutex_release(), RecRecord::rec_type, RECT_NULL, and RecRecord::registered.
Referenced by RecDumpRecordsHt(), and TSRecordDump().
void RecDumpRecordsHt | ( | RecT | rec_type | ) |
Definition at line 918 of file RecCore.cc.
References debug_record_callback(), DL_Note, RecDebug(), and RecDumpRecords().
Definition at line 824 of file RecCore.cc.
References RecConfigMeta::access_type, ats_free(), ats_strdup, RecConfigMeta::check_expr, RecConfigMeta::check_type, RecRecord::config_meta, RecRecord::data, RecRecord::data_default, RecStatMeta::data_raw, RecRecord::data_type, g_records_ht, ink_hash_table_insert(), ink_hash_table_lookup(), ink_rwlock_unlock(), ink_rwlock_wrlock(), RecRecord::name, RecStatMeta::persist_type, rec_mutex_acquire(), rec_mutex_release(), RecRecord::rec_type, REC_TYPE_IS_CONFIG, REC_TYPE_IS_STAT, RecAlloc(), RecDataSet(), RecRecord::registered, RecRecord::rsb_id, RecRecord::stat_meta, RecConfigMeta::update_required, and RecConfigMeta::update_type.
Referenced by recv_message_cb().
Definition at line 788 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), rec_mutex_release(), and RecDataSet().
Referenced by RecGetRecordBool(), RecGetRecordByte(), RecGetRecordCounter(), RecGetRecordFloat(), RecGetRecordInt(), and RecGetRecordString_Xmalloc().
int RecGetRecordAccessType | ( | const char * | name, | |
RecAccessT * | access, | |||
bool | lock | |||
) |
Definition at line 677 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
int RecGetRecordBool | ( | const char * | name, | |
RecBool * | rec_bool, | |||
bool | lock | |||
) |
Definition at line 417 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_int, RECD_INT, and RecGetRecord_Xmalloc().
Referenced by RecLinkConfigBool().
int RecGetRecordByte | ( | const char * | name, | |
RecByte * | rec_byte, | |||
bool | lock | |||
) |
Definition at line 407 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_int, RECD_INT, and RecGetRecord_Xmalloc().
Referenced by http_config_share_server_sessions_read_bc(), and RecLinkConfigByte().
int RecGetRecordCheckExpr | ( | const char * | name, | |
char ** | check_expr, | |||
bool | lock | |||
) |
Definition at line 598 of file RecCore.cc.
References g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), rec_mutex_release(), and REC_TYPE_IS_CONFIG.
int RecGetRecordCheckType | ( | const char * | name, | |
RecCheckT * | check_type, | |||
bool | lock | |||
) |
Definition at line 569 of file RecCore.cc.
References g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), rec_mutex_release(), and REC_TYPE_IS_CONFIG.
int RecGetRecordCounter | ( | const char * | name, | |
RecCounter * | rec_counter, | |||
bool | lock | |||
) |
Definition at line 397 of file RecCore.cc.
References RecData::rec_counter, REC_ERR_OKAY, RECD_COUNTER, and RecGetRecord_Xmalloc().
Referenced by plugin_expand(), REC_ConfigReadCounter(), REC_readCounter(), RecLinkConfigCounter(), and TSMgmtCounterGet().
int RecGetRecordDataType | ( | const char * | name, | |
RecDataT * | data_type, | |||
bool | lock | |||
) |
Definition at line 455 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
Referenced by LogAccess::marshal_record(), and plugin_expand().
int RecGetRecordDefaultDataString_Xmalloc | ( | char * | name, | |
char ** | buf, | |||
bool | lock | |||
) |
Definition at line 626 of file RecCore.cc.
References ats_free(), ats_malloc(), g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), ink_strlcpy(), RECD_COUNTER, RECD_FLOAT, RECD_INT, and RECD_STRING.
int RecGetRecordFloat | ( | const char * | name, | |
RecFloat * | rec_float, | |||
bool | lock | |||
) |
Definition at line 348 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_float, RECD_FLOAT, and RecGetRecord_Xmalloc().
Referenced by plugin_expand(), REC_ConfigReadFloat(), REC_readFloat(), RecLinkConfigFloat(), and TSMgmtFloatGet().
int RecGetRecordInt | ( | const char * | name, | |
RecInt * | rec_int, | |||
bool | lock | |||
) |
Definition at line 338 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_int, RECD_INT, and RecGetRecord_Xmalloc().
Referenced by init_core_size(), init_system(), main(), plugin_expand(), REC_ConfigReadInteger(), REC_readInteger(), RecLinkConfigInt(), HttpBodyFactory::reconfigure(), and TSMgmtIntGet().
void RecGetRecordList | ( | char * | var, | |
char *** | buffer, | |||
int * | count | |||
) |
Definition at line 934 of file RecCore.cc.
References RecTree::rec_tree_get_list().
int RecGetRecordOrderAndId | ( | const char * | name, | |
int * | order, | |||
int * | id, | |||
bool | lock | |||
) |
Definition at line 511 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
Referenced by TSStatFindName().
int RecGetRecordPersistenceType | ( | const char * | name, | |
RecPersistT * | persist_type, | |||
bool | lock | |||
) |
Definition at line 483 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), rec_mutex_release(), and REC_TYPE_IS_STAT.
Referenced by RecReadStatsFile().
int RecGetRecordPrefix_Xmalloc | ( | char * | prefix, | |
char ** | buf, | |||
int * | buf_len | |||
) |
Definition at line 947 of file RecCore.cc.
References ats_malloc(), RecRecord::data, RecRecord::data_type, DL_Error, g_num_records, RecRecord::lock, RecRecord::name, RecData::rec_float, RecData::rec_int, rec_mutex_acquire(), rec_mutex_release(), RecData::rec_string, RECD_COUNTER, RECD_FLOAT, RECD_INT, RECD_STRING, and RecLog().
Referenced by stat_callback().
int RecGetRecordString | ( | const char * | name, | |
char * | buf, | |||
int | buf_len, | |||
bool | lock | |||
) |
Definition at line 358 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), ink_strlcpy(), rec_mutex_acquire(), rec_mutex_release(), and RECD_STRING.
Referenced by http_config_enum_read(), RecConfigReadBinDir(), RecConfigReadConfigPath(), RecConfigReadLogDir(), RecConfigReadPrefixPath(), RecConfigReadRuntimeDir(), RecConfigReadSnapshotDir(), and RecHttpLoadIp().
int RecGetRecordString_Xmalloc | ( | const char * | name, | |
RecString * | rec_string, | |||
bool | lock | |||
) |
Definition at line 387 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_string, RECD_STRING, and RecGetRecord_Xmalloc().
Referenced by plugin_expand(), REC_ConfigReadString(), REC_readString(), RecLinkConfigString(), HttpBodyFactory::reconfigure(), and TSMgmtStringGet().
void RecGetRecordTree | ( | char * | subtree | ) |
Definition at line 924 of file RecCore.cc.
References RecTree::print(), and RecTree::rec_tree_get().
int RecGetRecordType | ( | const char * | name, | |
RecT * | rec_type, | |||
bool | lock | |||
) |
Definition at line 430 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
int RecGetRecordUpdateType | ( | const char * | name, | |
RecUpdateT * | update_type, | |||
bool | lock | |||
) |
Definition at line 540 of file RecCore.cc.
References g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), rec_mutex_release(), and REC_TYPE_IS_CONFIG.
int RecLinkConfigBool | ( | const char * | name, | |
RecBool * | rec_bool | |||
) |
Definition at line 271 of file RecCore.cc.
References link_byte(), REC_ERR_FAIL, RecGetRecordBool(), and RecRegisterConfigUpdateCb().
int RecLinkConfigByte | ( | const char * | name, | |
RecByte * | rec_byte | |||
) |
Definition at line 262 of file RecCore.cc.
References link_byte(), REC_ERR_FAIL, RecGetRecordByte(), and RecRegisterConfigUpdateCb().
int RecLinkConfigCounter | ( | const char * | name, | |
RecCounter * | rec_counter | |||
) |
Definition at line 244 of file RecCore.cc.
References link_counter(), REC_ERR_FAIL, RecGetRecordCounter(), and RecRegisterConfigUpdateCb().
int RecLinkConfigFloat | ( | const char * | name, | |
RecFloat * | rec_float | |||
) |
Definition at line 235 of file RecCore.cc.
References link_float(), REC_ERR_FAIL, RecGetRecordFloat(), and RecRegisterConfigUpdateCb().
int RecLinkConfigInt | ( | const char * | name, | |
RecInt * | rec_int | |||
) |
Definition at line 214 of file RecCore.cc.
References link_int(), REC_ERR_FAIL, RecGetRecordInt(), and RecRegisterConfigUpdateCb().
int RecLinkConfigInt32 | ( | const char * | name, | |
int32_t * | p_int32 | |||
) |
Definition at line 223 of file RecCore.cc.
References link_int32(), and RecRegisterConfigUpdateCb().
int RecLinkConfigString | ( | const char * | name, | |
RecString * | rec_string | |||
) |
Definition at line 253 of file RecCore.cc.
References link_string_alloc(), REC_ERR_FAIL, RecGetRecordString_Xmalloc(), and RecRegisterConfigUpdateCb().
int RecLinkConfigUInt32 | ( | const char * | name, | |
uint32_t * | p_uint32 | |||
) |
Definition at line 229 of file RecCore.cc.
References link_uint32(), and RecRegisterConfigUpdateCb().
RecRecord* RecRegisterConfig | ( | RecT | rec_type, | |
const char * | name, | |||
RecDataT | data_type, | |||
RecData | data_default, | |||
RecUpdateT | update_type, | |||
RecCheckT | check_type, | |||
const char * | check_expr, | |||
RecAccessT | access_type | |||
) |
Definition at line 761 of file RecCore.cc.
References RecConfigMeta::access_type, ats_free(), ats_strdup, RecConfigMeta::check_expr, RecConfigMeta::check_type, RecRecord::config_meta, ink_rwlock_unlock(), ink_rwlock_wrlock(), RECP_NULL, register_record(), RecConfigMeta::update_cb_list, and RecConfigMeta::update_type.
Referenced by recv_message_cb().
int RecRegisterConfigUpdateCb | ( | const char * | name, | |
RecConfigUpdateCb | update_cb, | |||
void * | cookie | |||
) |
Definition at line 284 of file RecCore.cc.
References ats_malloc(), g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), RecConfigCbList_t::next, rec_mutex_acquire(), rec_mutex_release(), REC_TYPE_IS_CONFIG, RecConfigCbList_t::update_cb, and RecConfigCbList_t::update_cookie.
Referenced by initCongestionControl(), RecLinkConfigBool(), RecLinkConfigByte(), RecLinkConfigCounter(), RecLinkConfigFloat(), RecLinkConfigInt(), RecLinkConfigInt32(), RecLinkConfigString(), RecLinkConfigUInt32(), PrefetchProcessor::start(), and HttpConfig::startup().
RecRecord* RecRegisterStat | ( | RecT | rec_type, | |
const char * | name, | |||
RecDataT | data_type, | |||
RecData | data_default, | |||
RecPersistT | persist_type | |||
) |
Definition at line 730 of file RecCore.cc.
References RecRecord::data, RecRecord::data_type, DL_Debug, DL_Warning, ink_assert, ink_rwlock_unlock(), ink_rwlock_wrlock(), RecRecord::name, RecStatMeta::persist_type, RecDataSet(), RecDebug(), RECP_NON_PERSISTENT, RECP_NULL, RECP_PERSISTENT, register_record(), and RecRecord::stat_meta.
Referenced by _RecRegisterRawStat(), and recv_message_cb().
int RecSetRecordAccessType | ( | const char * | name, | |
RecAccessT | access, | |||
bool | lock | |||
) |
Definition at line 702 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
void RecSignalWarning | ( | int | sig, | |
const char * | fmt, | |||
... | ||||
) |
Definition at line 1215 of file RecCore.cc.
References RecSignalManager(), and WarningV.
static RecRecord* register_record | ( | RecT | rec_type, | |
const char * | name, | |||
RecDataT | data_type, | |||
RecData | data_default, | |||
RecPersistT | persist_type | |||
) | [static] |
Definition at line 45 of file RecCore.cc.
References g_records_ht, ink_hash_table_insert(), ink_hash_table_lookup(), ink_release_assert, REC_TYPE_IS_STAT, RecAlloc(), and RecDataSet().
Referenced by RecRegisterConfig(), and RecRegisterStat().
bool g_initialized = false [static] |
Definition at line 32 of file RecCore.cc.
Referenced by RecCoreInit().
int g_num_records = 0 |
Definition at line 37 of file RecCore.cc.
Referenced by RecAlloc(), RecCoreInit(), RecDumpRecords(), RecExecConfigUpdateCbs(), RecExecRawStatSyncCbs(), RecGetRecordPrefix_Xmalloc(), RecResetStatRecord(), RecSyncConfigToTB(), RecSyncStatsFile(), send_pull_message(), and send_push_message().
Definition at line 34 of file RecCore.cc.
Referenced by RecAlloc(), RecExecConfigUpdateCbs(), RecExecRawStatSyncCbs(), RecResetStatRecord(), RecSyncConfigToTB(), RecSyncStatsFile(), send_pull_message(), and send_push_message().
InkHashTable* g_records_ht = NULL |
Definition at line 35 of file RecCore.cc.
Referenced by RecCoreInit(), RecForceInsert(), RecGetRecord_Xmalloc(), RecGetRecordAccessType(), RecGetRecordCheckExpr(), RecGetRecordCheckType(), RecGetRecordDataType(), RecGetRecordDefaultDataString_Xmalloc(), RecGetRecordOrderAndId(), RecGetRecordPersistenceType(), RecGetRecordString(), RecGetRecordType(), RecGetRecordUpdateType(), RecRegisterConfigUpdateCb(), RecRegisterRawStatSyncCb(), RecResetStatRecord(), RecSetRecord(), RecSetRecordAccessType(), RecSetSyncRequired(), RecSyncConfigToTB(), and register_record().
Definition at line 36 of file RecCore.cc.
Referenced by RecReadConfigFile(), RecReadStatsFile(), RecRegisterRawStatSyncCb(), RecSetRecord(), RecSetSyncRequired(), and RecSyncConfigToTB().
RecTree* g_records_tree = NULL |
Definition at line 39 of file RecCore.cc.
Referenced by RecAlloc().