Private record util declarations. More...
#include "Diags.h"
#include "ink_atomic.h"
#include "P_RecDefs.h"
Go to the source code of this file.
Defines | |
#define | REC_TYPE_IS_STAT(rec_type) |
#define | REC_TYPE_IS_CONFIG(rec_type) |
Functions | |
void | RecRecordInit (RecRecord *r) |
void | RecRecordFree (RecRecord *r) |
RecRecord * | RecAlloc (RecT rec_type, const char *name, RecDataT data_type) |
void | RecDataClear (RecDataT type, RecData *data) |
void | RecDataSetMax (RecDataT type, RecData *data) |
void | RecDataSetMin (RecDataT type, RecData *data) |
bool | RecDataSet (RecDataT data_type, RecData *data_dst, RecData *data_src) |
bool | RecDataSetFromInk64 (RecDataT data_type, RecData *data_dst, int64_t data_int64) |
bool | RecDataSetFromFloat (RecDataT data_type, RecData *data_dst, float data_float) |
bool | RecDataSetFromString (RecDataT data_type, RecData *data_dst, const char *data_string) |
int | RecDataCmp (RecDataT type, RecData left, RecData right) |
RecData | RecDataAdd (RecDataT type, RecData left, RecData right) |
RecData | RecDataSub (RecDataT type, RecData left, RecData right) |
RecData | RecDataMul (RecDataT type, RecData left, RecData right) |
RecData | RecDataDiv (RecDataT type, RecData left, RecData right) |
void | RecLog (DiagsLevel dl, const char *format_string,...) |
void | RecDebug (DiagsLevel dl, const char *format_string,...) |
void | RecDebugOff () |
Private record util declarations.
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 P_RecUtils.h.
#define REC_TYPE_IS_CONFIG | ( | rec_type | ) |
(((rec_type) == RECT_CONFIG) || \ ((rec_type) == RECT_LOCAL))
Definition at line 42 of file P_RecUtils.h.
Referenced by RecExecConfigUpdateCbs(), RecForceInsert(), RecGetRecordCheckExpr(), RecGetRecordCheckType(), RecGetRecordUpdateType(), RecMessageMarshal_Realloc(), RecMessageUnmarshalNext(), RecRegisterConfigUpdateCb(), RecSetRecord(), RecSetSyncRequired(), RecSyncConfigToTB(), and recv_message_cb().
#define REC_TYPE_IS_STAT | ( | rec_type | ) |
(((rec_type) == RECT_PROCESS) || \ ((rec_type) == RECT_PLUGIN) || \ ((rec_type) == RECT_NODE) || \ ((rec_type) == RECT_CLUSTER))
Definition at line 36 of file P_RecUtils.h.
Referenced by RecExecRawStatSyncCbs(), RecForceInsert(), RecGetRecordPersistenceType(), RecReadStatsFile(), RecRegisterRawStatSyncCb(), RecResetStatRecord(), RecSetRecord(), RecSyncStatsFile(), recv_message_cb(), register_record(), and send_pull_message().
Definition at line 49 of file RecUtils.cc.
References ats_strdup, RecRecord::data_type, g_num_records, g_records, g_records_tree, RecRecord::name, RecRecord::order, REC_MAX_RECORDS, RecTree::rec_tree_insert(), RecRecord::rec_type, RecRecordInit(), and Warning.
Referenced by RecForceInsert(), RecSetRecord(), and register_record().
Definition at line 215 of file RecUtils.cc.
References Fatal, RecData::rec_float, RecData::rec_int, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, RECD_INT, and val.
Definition at line 75 of file RecUtils.cc.
References ats_free(), RecData::rec_string, and RECD_STRING.
Referenced by RecConsumeConfigEntry().
Definition at line 184 of file RecUtils.cc.
References Fatal, RecData::rec_float, RecData::rec_int, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, and RECD_INT.
Definition at line 296 of file RecUtils.cc.
References Fatal, RecData::rec_float, RecData::rec_int, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, RECD_INT, and val.
Definition at line 269 of file RecUtils.cc.
References Fatal, RecData::rec_float, RecData::rec_int, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, RECD_INT, and val.
Definition at line 131 of file RecUtils.cc.
References ats_free(), ats_strdup, ink_assert, RecData::rec_counter, RecData::rec_float, RecData::rec_int, RecData::rec_string, RECD_COUNTER, RECD_FLOAT, RECD_INT, and RECD_STRING.
Referenced by RecDataSetFromString(), RecForceInsert(), RecGetRecord_Xmalloc(), RecRegisterStat(), RecResetStatRecord(), RecSetRecord(), and register_record().
Definition at line 366 of file RecUtils.cc.
References ats_free(), ats_strdup, ink_assert, RecData::rec_counter, RecData::rec_float, RecData::rec_int, RecData::rec_string, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, RECD_INT, and RECD_STRING.
Referenced by RecRawStatSyncAvg(), RecRawStatSyncHrTimeAvg(), RecRawStatSyncIntMsecsToFloatSeconds(), and RecRawStatSyncMHrTimeAvg().
Definition at line 326 of file RecUtils.cc.
References ats_free(), ats_strdup, ink_assert, RecData::rec_counter, RecData::rec_float, RecData::rec_int, RecData::rec_string, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, RECD_INT, and RECD_STRING.
Referenced by RecRawStatSyncCount(), and RecRawStatSyncSum().
Definition at line 406 of file RecUtils.cc.
References ink_assert, ink_atoi64(), RecData::rec_counter, RecData::rec_float, RecData::rec_int, RecData::rec_string, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, RECD_INT, RECD_STRING, and RecDataSet().
Referenced by RecConsumeConfigEntry().
Definition at line 84 of file RecUtils.cc.
References Fatal, RecData::rec_float, RecData::rec_int, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, and RECD_INT.
Definition at line 106 of file RecUtils.cc.
References Fatal, RecData::rec_float, RecData::rec_int, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, and RECD_INT.
Definition at line 242 of file RecUtils.cc.
References Fatal, RecData::rec_float, RecData::rec_int, RECD_CONST, RECD_COUNTER, RECD_FLOAT, RECD_FX, RECD_INT, and val.
void RecDebug | ( | DiagsLevel | dl, | |
const char * | format_string, | |||
... | ||||
) |
Definition at line 62 of file RecDebug.cc.
References Diags::log_va().
Referenced by debug_record_callback(), RecConfigFileParse(), RecDumpRecordsHt(), RecReadConfigFile(), RecReadStatsFile(), RecRegisterStat(), RecResetStatRecord(), RecSignalManager(), RecSyncStatsFile(), recv_message_cb(), RecWriteConfigFile(), send_pull_message(), send_push_message(), send_register_message(), send_reset_message(), send_set_message(), and sync_thr().
void RecDebugOff | ( | ) |
Definition at line 78 of file RecDebug.cc.
Referenced by main().
void RecLog | ( | DiagsLevel | dl, | |
const char * | format_string, | |||
... | ||||
) |
Definition at line 46 of file RecDebug.cc.
References Diags::log_va().
Referenced by RecConfigFileParse(), RecCoreInit(), RecGetRecordPrefix_Xmalloc(), RecPipeConnect(), RecPipeCreate(), RecReadStatsFile(), and RecWriteConfigFile().
void RecRecordFree | ( | RecRecord * | r | ) |
Definition at line 40 of file RecUtils.cc.
References RecRecord::lock, and rec_mutex_destroy().
Referenced by RecResetStatRecord(), and RecSetRecord().
void RecRecordInit | ( | RecRecord * | r | ) |
Definition at line 33 of file RecUtils.cc.
References RecRecord::lock, and rec_mutex_init().
Referenced by RecAlloc(), RecResetStatRecord(), and RecSetRecord().