Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 201) sorted by relevance

123456789

/trafficserver/lib/records/
H A DI_RecProcess.h73 int RecRawStatUpdateSum(RecRawStatBlock *rsb, int id);
86 int RecSetRawStatSum(RecRawStatBlock *rsb, int id, int64_t data);
89 int RecGetRawStatSum(RecRawStatBlock *rsb, int id, int64_t *data);
105 RecRawStat *RecGetGlobalRawStatPtr(RecRawStatBlock *rsb, int id);
106 int64_t *RecGetGlobalRawStatSumPtr(RecRawStatBlock *rsb, int id);
115 raw_stat_get_tlp(RecRawStatBlock *rsb, int id, EThread *ethread) in raw_stat_get_tlp() argument
117 ink_assert((id >= 0) && (id < rsb->max_stats)); in raw_stat_get_tlp()
127 RecRawStat *tlp = raw_stat_get_tlp(rsb, id, ethread); in RecIncrRawStat()
136 RecRawStat *tlp = raw_stat_get_tlp(rsb, id, ethread); in RecDecrRawStat()
145 RecRawStat *tlp = raw_stat_get_tlp(rsb, id, ethread); in RecIncrRawStatSum()
[all …]
H A DRecRawStats.cc49 total->sum = rsb->global[id]->sum; in raw_stat_get_total()
253 ink_assert(id < rsb->max_stats); in _RecRegisterRawStat()
276 rsb->global[id]->last_sum = 0; in _RecRegisterRawStat()
277 rsb->global[id]->last_count = 0; in _RecRegisterRawStat()
388 raw_stat_clear_sum(rsb, id); in RecSetRawStatSum()
396 raw_stat_clear_count(rsb, id); in RecSetRawStatCount()
473 *data = rsb->global[id]->sum; in RecGetGlobalRawStatSum()
480 *data = rsb->global[id]->count; in RecGetGlobalRawStatCount()
490 return rsb->global[id]; in RecGetGlobalRawStatPtr()
496 return &(rsb->global[id]->sum); in RecGetGlobalRawStatSumPtr()
[all …]
/trafficserver/proxy/
H A DInkAPIInternal.h169 APIHook *get(ID id) const;
171 static bool is_valid(ID id);
216 if (is_valid(id)) { in append()
218 m_hooks[id].append(cont); in append()
226 return likely(is_valid(id)) ? m_hooks[id].head() : nullptr; in get()
231 return likely(is_valid(id)) ? &(m_hooks[id]) : nullptr; in operator []()
238 if (likely(is_valid(id))) { in invoke()
254 return 0 <= id && id < N; in is_valid()
264 explicit constexpr TSSslHookInternalID(TSHttpHookID id) : _id(id - TS_SSL_FIRST_HOOK) {} in TSSslHookInternalID() argument
352 TSHttpHookID id() const;
[all …]
H A DProxySession.h106 virtual void hook_add(TSHttpHookID id, INKContInternal *cont);
127 int do_api_callout(TSHttpHookID id);
146 APIHook *hook_get(TSHttpHookID id) const;
256 return hook_state.id(); in get_hookid()
260 ProxySession::hook_add(TSHttpHookID id, INKContInternal *cont) in hook_add() argument
262 this->api_hooks.append(id, cont); in hook_add()
266 ProxySession::hook_get(TSHttpHookID id) const in hook_get()
268 return this->api_hooks.get(id); in hook_get()
/trafficserver/mgmt/api/
H A DEventCallback.cc213 int id = get_event_id(event_name); in cb_table_register() local
214 if (id != -1) { in cb_table_register()
215 if (!cb_table->event_callback_l[id]) { in cb_table_register()
216 cb_table->event_callback_l[id] = create_queue(); in cb_table_register()
220 if (!cb_table->event_callback_l[id]) { in cb_table_register()
304 int id = get_event_id(event_name); in cb_table_unregister() local
305 if (id != -1) { in cb_table_unregister()
306 if (cb_table->event_callback_l[id]) { in cb_table_unregister()
318 delete_queue(cb_table->event_callback_l[id]); in cb_table_unregister()
319 cb_table->event_callback_l[id] = nullptr; in cb_table_unregister()
[all …]
/trafficserver/example/plugins/c-api/statistic/
H A Dstatistic.cc47 int id; in TSPluginInit() local
50 if (TSStatFindName(name, &id) == TS_ERROR) { in TSPluginInit()
51 id = TSStatCreate(name, TS_RECORDDATATYPE_INT, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_SUM); in TSPluginInit()
52 if (id == TS_ERROR) { in TSPluginInit()
58 TSError("[%s] %s registered with id %d", PLUGIN_NAME, name, id); in TSPluginInit()
61 TSReleaseAssert(id != TS_ERROR); in TSPluginInit()
65 TSStatIntSet(id, time(nullptr)); in TSPluginInit()
68 TSStatIntIncrement(id, 1); in TSPluginInit()
70 TSDebug(PLUGIN_NAME, "%s is set to %" PRId64, name, TSStatIntGet(id)); in TSPluginInit()
/trafficserver/iocore/net/quic/
H A DQUICFrame.h52 QUICFrameId id() const;
87 …QUICStreamFrame(QUICFrameId id = 0, QUICFrameGenerator *owner = nullptr) : QUICFrame(id, owner) {} in QUICStreamFrame() argument
133 …QUICCryptoFrame(QUICFrameId id = 0, QUICFrameGenerator *owner = nullptr) : QUICFrame(id, owner) {} in QUICCryptoFrame() argument
259 QUICAckFrame(QUICFrameId id = 0) : QUICFrame(id) {} in QUICAckFrame() argument
298 QUICRstStreamFrame(QUICFrameId id = 0) : QUICFrame(id) {} in QUICRstStreamFrame() argument
328 QUICPingFrame(QUICFrameId id = 0, QUICFrameGenerator *owner = nullptr) : QUICFrame(id, owner) {} in QUICPingFrame() argument
402 …QUICMaxDataFrame(QUICFrameId id = 0, QUICFrameGenerator *owner = nullptr) : QUICFrame(id, owner) {… in QUICMaxDataFrame() argument
453 …QUICMaxStreamsFrame(QUICFrameId id = 0, QUICFrameGenerator *owner = nullptr) : QUICFrame(id, owner… in QUICMaxStreamsFrame() argument
671 …QUICNewTokenFrame(QUICFrameId id = 0, QUICFrameGenerator *owner = nullptr) : QUICFrame(id, owner) … in QUICNewTokenFrame() argument
884 QUICFrameInfo(QUICFrameId id, QUICFrameGenerator *generator) : _id(id), _generator(generator) {} in QUICFrameInfo() argument
[all …]
H A DQUICFrameGenerator.cc28 QUICFrameGenerator::_records_frame(QUICFrameId id, QUICFrameInformationUPtr info) in _records_frame() argument
30 this->_info.insert(std::make_pair(id, std::move(info))); in _records_frame()
44 QUICFrameGenerator::on_frame_acked(QUICFrameId id) in on_frame_acked() argument
46 auto it = this->_info.find(id); in on_frame_acked()
54 QUICFrameGenerator::on_frame_lost(QUICFrameId id) in on_frame_lost() argument
56 auto it = this->_info.find(id); in on_frame_lost()
H A DQUICApplicationMap.cc27 QUICApplicationMap::get(QUICStreamId id) in get() argument
29 auto it = this->_map.find(id); in get()
38 QUICApplicationMap::set(QUICStreamId id, QUICApplication *app) in set() argument
40 this->_map[id] = app; in set()
H A DQUICApplication.cc31 …fmt, this->_stream_vc->connection_info()->cids().data(), this->_stream_vc->id(), \
72 return this->_stream_vc->id(); in stream_id()
215 this->_stream_map.insert(std::make_pair(stream_vc->id(), stream_io)); in set_stream()
228 auto result = this->_stream_map.find(stream->id()); in is_stream_set()
236 QUICStreamIO *stream_io = this->_find_stream_io(stream->id()); in reenable()
241 Debug(tag_app, "[%s] Unknown Stream id=%" PRIx64, this->_qc->cids().data(), stream->id()); in reenable()
250 QUICStreamIO *stream_io = this->_find_stream_io(stream->id()); in unset_stream()
252 this->_stream_map.erase(stream->id()); in unset_stream()
257 QUICApplication::_find_stream_io(QUICStreamId id) in _find_stream_io() argument
259 auto result = this->_stream_map.find(id); in _find_stream_io()
[all …]
H A DQUICTransportParameters.h69 QUICTransportParameterId(uint16_t id) : _id(id){}; in QUICTransportParameterId() argument
83 const uint8_t *getAsBytes(QUICTransportParameterId id, uint16_t &len) const;
84 uint64_t getAsUInt(QUICTransportParameterId id) const;
85 bool contains(QUICTransportParameterId id) const;
87 void set(QUICTransportParameterId id, const uint8_t *value, uint16_t value_len);
88 void set(QUICTransportParameterId id, uint64_t value);
/trafficserver/mgmt/
H A DProxyConfig.cc120 if (id == 0) { in set()
121 id = ++ninfos; in set()
122 ink_assert(id != 0); in set()
134 if (id > MAX_CONFIGS) { in set()
140 idx = id - 1; in set()
153 return id; in set()
162 ink_assert(id <= MAX_CONFIGS); in get()
164 if (id == 0 || id > MAX_CONFIGS) { in get()
169 idx = id - 1; in get()
183 if (id == 0 || id > MAX_CONFIGS) { in release()
[all …]
/trafficserver/doc/developer-guide/cache-architecture/images/
H A Dspan-header.svg1id="0_0"><path d="M0 0h1760v1360H0z" fill="#fff"/><path d="M320 80h160v80H320z" stroke="#000" stro…
H A Dstripe-header.svg1id="0_0"><path d="M0 0h1760v1360H0z" fill="#fff"/><path d="M80 300h80v160H80z" stroke="#000" strok…
/trafficserver/proxy/http2/
H A DHttp2ConnectionState.h72 get(Http2SettingsIdentifier id) const in get()
74 if (0 < id && id < HTTP2_SETTINGS_MAX) { in get()
75 return this->settings[indexof(id)]; in get()
86 if (0 < id && id < HTTP2_SETTINGS_MAX) { in set()
98 indexof(Http2SettingsIdentifier id) in indexof() argument
100 ink_assert(0 < id && id < HTTP2_SETTINGS_MAX); in indexof()
102 return id - 1; in indexof()
282 is_valid_streamid(Http2StreamId id) const in is_valid_streamid()
284 if (http2_is_client_streamid(id)) { in is_valid_streamid()
285 return id <= get_latest_stream_id_in(); in is_valid_streamid()
[all …]
H A DHttp2DependencyTree.h50 …Node(uint32_t i, uint32_t w, uint32_t p, Node *n, void *t = nullptr) : id(i), weight(w), point(p),… in Node()
105 uint32_t id = HTTP2_PRIORITY_DEFAULT_STREAM_DEPENDENCY; member in Http2DependencyTree::Node
123 Node *find(uint32_t id, bool *is_max_leaf = nullptr);
124 Node *find_shadow(uint32_t id, bool *is_max_leaf = nullptr);
125 …Node *add(uint32_t parent_id, uint32_t id, uint32_t weight, bool exclusive, T t, bool shadow = fal…
126 Node *reprioritize(uint32_t id, uint32_t new_parent_id, bool exclusive);
127 Node *reprioritize(Node *node, uint32_t id, bool exclusive);
144 uint32_t was_ancestor(uint32_t id) const;
148 Node *_find(Node *node, uint32_t id, uint32_t depth = 1, bool *is_max_leaf = nullptr);
184 …output << R"({ "id":")" << node->id << "/" << node->weight << "/" << node->point << "/" << ((node-… in _dump()
H A DHttp2DebugNames.cc29 Http2DebugNames::get_settings_param_name(uint16_t id) in get_settings_param_name() argument
31 switch (id) { in get_settings_param_name()
50 Http2DebugNames::get_state_name(Http2StreamState id) in get_state_name() argument
52 switch (id) { in get_state_name()
/trafficserver/iocore/eventsystem/
H A DUnixEventProcessor.cc78 int id = 0; in EventMetricStatSync() local
92 rsb->global[id + EThread::STAT_LOOP_COUNT]->count = 1; in EventMetricStatSync()
93 RecRawStatUpdateSum(rsb, id + EThread::STAT_LOOP_COUNT); in EventMetricStatSync()
96 rsb->global[id + EThread::STAT_LOOP_WAIT]->count = 1; in EventMetricStatSync()
97 RecRawStatUpdateSum(rsb, id + EThread::STAT_LOOP_WAIT); in EventMetricStatSync()
100 rsb->global[id + EThread::STAT_LOOP_TIME_MIN]->count = 1; in EventMetricStatSync()
101 RecRawStatUpdateSum(rsb, id + EThread::STAT_LOOP_TIME_MIN); in EventMetricStatSync()
103 rsb->global[id + EThread::STAT_LOOP_TIME_MAX]->count = 1; in EventMetricStatSync()
107 rsb->global[id + EThread::STAT_LOOP_EVENTS]->count = 1; in EventMetricStatSync()
108 RecRawStatUpdateSum(rsb, id + EThread::STAT_LOOP_EVENTS); in EventMetricStatSync()
[all …]
/trafficserver/tests/tools/plugins/
H A Dssntxnorder_verify.cc55 uint64_t id; member
58 started_txn(uint64_t id) : id(id) {} // used for lookup on id in started_txn()
59 started_txn(uint64_t id, TSHttpTxn txnp, TSHttpSsn ssnp) : id(id), txnp(txnp), ssnp(ssnp) {} in started_txn()
67 return lhs.id < rhs.id; in operator ()()
119 …dump << "Transaction --> ID: " << it->id << " ; Enclosing SSN ID: " << it->ssnp << " ;" << std::en… in dump_tables()
196 if (current_txn != started_txns.end() && current_txn->id == TSHttpTxnIdGet(txnp)) { in handle_order()
206 current_txn->id, ssnp); in handle_order()
245 new_txn.id, ssnp); in handle_order()
252 …OK, "Transaction [ TXNID = %" PRIu64 " ] has previously started.", new_txn.id); in handle_order()
/trafficserver/plugins/esi/lib/
H A DHandlerManager.cc42 const string &id = id_map_iter->first; in loadObjects() local
49 … _id_to_function_map.insert(FunctionHandleMap::value_type(id, (path_map_iter->second).function)); in loadObjects()
62 _id_to_function_map.insert(FunctionHandleMap::value_type(id, func_handle)); in loadObjects()
72 …i_vars, Expression &esi_expr, HttpDataFetcher &fetcher, const std::string &id) const in getHandler()
74 FunctionHandleMap::const_iterator iter = _id_to_function_map.find(id); in getHandler()
76 …dler id [%s] does not map to any loaded object", CLASS_NAME, __FUNCTION__, id.c_str()); in getHandler()
79 return (*(iter->second))(esi_vars, esi_expr, fetcher, id); in getHandler()
/trafficserver/iocore/cache/
H A DI_Store.h51 int64_t id[2]; member
56 return id[0] < rhs.id[0] && id[1] < rhs.id[1]; in operator <()
62 return id[0] == rhs.id[0] && id[1] == rhs.id[1]; in operator ==()
65 int64_t &operator[](unsigned i) { return id[i]; } in operator []()
/trafficserver/src/tscore/
H A Dtest_freelist.cc35 int id; in test() local
38 id = (intptr_t)d; in test()
53 memset(m1, id, 64); in test()
54 memset(m2, id, 64); in test()
55 memset(m3, id, 64); in test()
/trafficserver/iocore/net/
H A DSSLSessionCache.cc117 SSLSessionBucket::insertSession(const SSLSessionID &id, SSL_SESSION *sess, SSL *ssl) in insertSession() argument
127 char buf[id.len * 2 + 1]; in insertSession()
128 id.toString(buf, sizeof(buf)); in insertSession()
154 if (node->session_id == id) { in insertSession()
182 SSLSessionBucket::getSessionBuffer(const SSLSessionID &id, char *buffer, int &len) in getSessionBuffer() argument
200 if (node->session_id == id) { in getSessionBuffer()
219 char buf[id.len * 2 + 1]; in getSession()
222 id.toString(buf, sizeof(buf)); in getSession()
244 if (node->session_id == id) { in getSession()
301 SSLSessionBucket::removeSession(const SSLSessionID &id) in removeSession() argument
[all …]
/trafficserver/include/tscore/
H A DErrata.h175 self &push(Id id, std::string const &text);
401 Message(Id id, ///< Message Id.
409 self &set(Id id ///< New message Id.
734 Errata::Message::Message(Id id, Code code, Args const &... text) : m_id(id), m_code(code), m_text(s… in Message() argument
765 Errata::Message::set(Id id) in set() argument
767 m_id = id; in set()
808 this->push(Message(id, code, text)); in Errata()
844 Errata::push(Id id, std::string const &text) in push() argument
846 this->push(Message(id, text)); in push()
853 this->push(Message(id, code, text)); in push()
[all …]
/trafficserver/plugins/experimental/uri_signing/
H A Dconfig.c46 char *id; member
86 return cfg->id; in config_get_id()
120 cfg->id = NULL; in config_new()
145 if (cfg->id) { in config_delete()
146 free(cfg->id); in config_delete()
283 const char *id; in read_config() local
285 id = json_string_value(id_json); in read_config()
286 if (id) { in read_config()
287 cfg->id = malloc(strlen(id) + 1); in read_config()
288 strcpy(cfg->id, id); in read_config()
[all …]

Completed in 184 milliseconds

123456789