Record utils definitions. More...
#include "libts.h"
#include "P_RecUtils.h"
#include "P_RecCore.h"
#include "P_RecTree.h"
Go to the source code of this file.
Functions | |
void | RecRecordInit (RecRecord *r) |
void | RecRecordFree (RecRecord *r) |
RecRecord * | RecAlloc (RecT rec_type, const char *name, RecDataT data_type) |
void | RecDataClear (RecDataT data_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) |
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) |
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) |
Record utils 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 RecUtils.cc.
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 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().