Lines Matching refs:entry

67 // A string table entry.
81 // Flags for the string entry.
92 // A thread table entry.
175 StringEntry* entry = &cache->string_entries[count];
176 entry->string_literal = string_literal;
177 entry->flags = 0u;
178 entry->index = 0u;
179 cache->string_table.insert(entry);
180 return entry;
196 ThreadEntry* entry = &cache->thread_entries[count];
197 entry->thread_koid = thread_koid;
198 entry->thread_ref = trace_make_unknown_thread_ref();
199 cache->thread_table.insert(entry);
200 return entry;
502 StringEntry* entry = CacheStringEntry(context->generation(), string_literal);
503 if (likely(entry)) {
506 if (unlikely(!(entry->flags & StringEntry::kCategoryChecked))) {
508 entry->flags |= StringEntry::kCategoryChecked |
511 entry->flags |= StringEntry::kCategoryChecked;
514 if (!(entry->flags & StringEntry::kCategoryEnabled)) {
520 if (unlikely(!(entry->flags & StringEntry::kAllocIndexAttempted))) {
521 entry->flags |= StringEntry::kAllocIndexAttempted;
529 if (likely(context->AllocStringIndex(&entry->index) &&
530 WriteStringRecord(context, rqst_durable, entry->index,
532 entry->flags |= StringEntry::kAllocIndexSucceeded;
535 if (likely(entry->flags & StringEntry::kAllocIndexSucceeded)) {
536 *out_ref_optional = trace_make_indexed_string_ref(entry->index);
677 trace::ThreadEntry* entry = trace::CacheThreadEntry(context->generation(), vthread_koid);
678 if (likely(entry && !trace_is_unknown_thread_ref(&entry->thread_ref))) {
680 *out_ref = entry->thread_ref;
692 if (likely(entry)) {
701 entry->thread_ref = trace_make_indexed_thread_ref(index);
703 entry->thread_ref = trace_make_inline_thread_ref(
706 *out_ref = entry->thread_ref;