Lines Matching defs:handle
16 TraceObject* InternalTraceBuffer::AddTraceEvent(uint64_t* handle) {
30 *handle = MakeHandle(total_chunks_ - 1, chunk->seq(), event_index);
34 TraceObject* InternalTraceBuffer::GetEventByHandle(uint64_t handle) {
36 if (handle == 0) {
37 // A handle value of zero never has a trace event associated with it.
42 ExtractHandle(handle, &buffer_id, &chunk_index, &chunk_seq, &event_index);
88 uint64_t handle, uint32_t* buffer_id, size_t* chunk_index,
90 *buffer_id = static_cast<uint32_t>(handle & 0x1);
91 handle >>= 1;
92 *chunk_seq = static_cast<uint32_t>(handle / Capacity());
93 size_t indices = handle % Capacity();
123 TraceObject* NodeTraceBuffer::AddTraceEvent(uint64_t* handle) {
126 // Assign a value of zero as the trace event handle.
129 *handle = 0;
132 return current_buf_.load()->AddTraceEvent(handle);
135 TraceObject* NodeTraceBuffer::GetEventByHandle(uint64_t handle) {
136 return current_buf_.load()->GetEventByHandle(handle);