Lines Matching refs:index

69     // Attempted to assign an index.
71 // Successfully assigned an index.
84 // The index with which the string was associated, or 0 if none.
85 trace_string_index_t index;
178 entry->index = 0u;
444 trace_string_index_t index,
446 ZX_DEBUG_ASSERT(index != TRACE_ENCODED_STRING_REF_EMPTY);
447 ZX_DEBUG_ASSERT(index <= TRACE_ENCODED_STRING_REF_MAX_INDEX);
458 trace::StringRecordFields::StringIndex::Make(index) |
469 bool WriteThreadRecord(trace_context_t* context, trace_thread_index_t index,
471 ZX_DEBUG_ASSERT(index != TRACE_ENCODED_THREAD_REF_INLINE);
472 ZX_DEBUG_ASSERT(index <= TRACE_ENCODED_THREAD_REF_MAX_INDEX);
480 trace::ThreadRecordFields::ThreadIndex::Make(index))
524 // If allocating an index succeeds but writing the record
525 // fails, toss the index and return an inline reference. The
526 // index is lost anyway, but the result won't be half-complete.
529 if (likely(context->AllocStringIndex(&entry->index) &&
530 WriteStringRecord(context, rqst_durable, entry->index,
536 *out_ref_optional = trace_make_indexed_string_ref(entry->index);
547 // Make sure to assign it a string index if possible instead of inlining.
572 trace_string_index_t index;
574 // If allocating an index succeeds but writing the record
575 // fails, toss the index and return an inline reference. The
576 // index is lost anyway, but the result won't be half-complete.
579 if (likely(context->AllocStringIndex(&index) &&
580 trace::WriteStringRecord(context, rqst_durable, index, string, length))) {
581 *out_ref = trace_make_indexed_string_ref(index);
621 trace_thread_index_t index;
622 // If allocating an index succeeds but writing the record fails,
623 // toss the index and return an inline reference. The index is lost
626 if (likely(context->AllocThreadIndex(&index) &&
627 trace::WriteThreadRecord(context, index,
629 cache->thread_ref = trace_make_indexed_thread_ref(index);
652 trace_thread_index_t index;
653 // If allocating an index succeeds but writing the record fails,
654 // toss the index and return an inline reference. The index is lost
657 if (likely(context->AllocThreadIndex(&index) &&
658 trace::WriteThreadRecord(context, index, process_koid, thread_koid))) {
659 *out_ref = trace_make_indexed_thread_ref(index);
693 trace_thread_index_t index;
694 // If allocating an index succeeds but writing the record fails,
695 // toss the index and return an inline reference. The index is lost
698 if (likely(context->AllocThreadIndex(&index) &&
699 trace::WriteThreadRecord(context, index,
701 entry->thread_ref = trace_make_indexed_thread_ref(index);
1088 trace_string_index_t index, const char* string, size_t length) {
1089 if (unlikely(!trace::WriteStringRecord(context, false, index,
1097 trace_thread_index_t index,
1100 if (unlikely(!trace::WriteThreadRecord(context, index,