Searched refs:class_id (Results 1 - 14 of 14) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_fake_stack.h91 static uptr FlagsOffset(uptr stack_size_log, uptr class_id) { argument
92 uptr t = kNumberOfSizeClasses - 1 - class_id;
97 static uptr NumberOfFrames(uptr stack_size_log, uptr class_id) { argument
98 return ((uptr)1) << (stack_size_log - kMinStackFrameSizeLog - class_id);
102 static uptr ModuloNumberOfFrames(uptr stack_size_log, uptr class_id, uptr n) { argument
103 return n & (NumberOfFrames(stack_size_log, class_id) - 1);
106 // The pointer to the flags of the given class_id.
107 u8 *GetFlags(uptr stack_size_log, uptr class_id) { argument
109 FlagsOffset(stack_size_log, class_id);
112 // Get frame by class_id an
113 GetFrame(uptr stack_size_log, uptr class_id, uptr pos) argument
124 Deallocate(uptr x, uptr class_id) argument
139 BytesInSizeClass(uptr class_id) argument
146 SavedFlagPtr(uptr x, uptr class_id) argument
[all...]
H A Dasan_fake_stack.cpp29 ALWAYS_INLINE void SetShadow(uptr ptr, uptr size, uptr class_id, u64 magic) { argument
31 if (SHADOW_SCALE == 3 && class_id <= 6) {
33 for (uptr i = 0; i < (((uptr)1) << class_id); i++) {
69 for (uptr class_id = 0; class_id < kNumberOfSizeClasses; class_id++)
70 str.append("%zd: %zd/%zd; ", class_id, hint_position_[class_id],
71 NumberOfFrames(stack_size_log(), class_id));
87 FakeFrame *FakeStack::Allocate(uptr stack_size_log, uptr class_id, argument
109 *SavedFlagPtr(reinterpret_cast<uptr>(res), class_id) = &flags[pos]; local
201 OnMalloc(uptr class_id, uptr size) argument
213 OnFree(uptr ptr, uptr class_id, uptr size) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_local_cache.h33 void *Allocate(SizeClassAllocator *allocator, uptr class_id) { argument
34 CHECK_NE(class_id, 0UL);
35 CHECK_LT(class_id, kNumClasses);
36 PerClass *c = &per_class_[class_id];
38 if (UNLIKELY(!Refill(c, allocator, class_id)))
45 allocator->GetRegionBeginBySizeClass(class_id), chunk));
48 void Deallocate(SizeClassAllocator *allocator, uptr class_id, void *p) { argument
49 CHECK_NE(class_id, 0UL);
50 CHECK_LT(class_id, kNumClasses);
53 PerClass *c = &per_class_[class_id];
98 Refill(PerClass *c, SizeClassAllocator *allocator, uptr class_id) argument
109 Drain(PerClass *c, SizeClassAllocator *allocator, uptr class_id, uptr count) argument
132 CreateBatch(uptr class_id, SizeClassAllocator *allocator, TransferBatch *b) argument
140 DestroyBatch(uptr class_id, SizeClassAllocator *allocator, TransferBatch *b) argument
152 Allocate(SizeClassAllocator *allocator, uptr class_id) argument
167 Deallocate(SizeClassAllocator *allocator, uptr class_id, void *p) argument
234 Refill(PerClass *c, SizeClassAllocator *allocator, uptr class_id) argument
247 Drain(PerClass *c, SizeClassAllocator *allocator, uptr class_id) argument
[all...]
H A Dsanitizer_allocator_primary64.h99 for (uptr class_id = 1; class_id < kNumClasses; class_id++) {
100 BlockingMutexLock l(&GetRegionInfo(class_id)->mutex);
101 MaybeReleaseToOS(class_id, true /*force*/);
110 NOINLINE void ReturnToAllocator(AllocatorStats *stat, uptr class_id, argument
112 RegionInfo *region = GetRegionInfo(class_id);
113 uptr region_beg = GetRegionBeginBySizeClass(class_id);
125 class_id, ClassIdToSize(class_id));
136 GetFromAllocator(AllocatorStats *stat, uptr class_id, CompactPtrT *chunks, uptr n_chunks) argument
184 uptr class_id = GetSizeClass(p); local
206 uptr class_id = GetSizeClass(p); local
233 PrintStats(uptr class_id, uptr rss) argument
309 ClassIdToSize(uptr class_id) argument
775 MemoryMapper(const ThisT& base_allocator, uptr class_id) argument
821 MaybeReleaseToOS(uptr class_id, bool force) argument
[all...]
H A Dsanitizer_allocator_primary32.h114 static uptr ClassIdToSize(uptr class_id) { argument
115 return (class_id == SizeClassMap::kBatchClassID) ?
116 kBatchSize : SizeClassMap::Size(class_id);
167 uptr class_id) {
168 DCHECK_LT(class_id, kNumClasses);
169 SizeClassInfo *sci = GetSizeClassInfo(class_id);
172 if (UNLIKELY(!PopulateFreeList(stat, c, sci, class_id)))
181 NOINLINE void DeallocateBatch(AllocatorStats *stat, uptr class_id, argument
183 DCHECK_LT(class_id, kNumClasses);
185 SizeClassInfo *sci = GetSizeClassInfo(class_id);
166 AllocateBatch(AllocatorStats *stat, AllocatorCache *c, uptr class_id) argument
297 AllocateRegion(AllocatorStats *stat, uptr class_id) argument
310 GetSizeClassInfo(uptr class_id) argument
315 PopulateBatches(AllocatorCache *c, SizeClassInfo *sci, uptr class_id, TransferBatch **current_batch, uptr max_count, uptr *pointers_array, uptr count) argument
340 PopulateFreeList(AllocatorStats *stat, AllocatorCache *c, SizeClassInfo *sci, uptr class_id) argument
[all...]
H A Dsanitizer_allocator_size_class_map.h29 // Classes 1 - 16 correspond to sizes 16 to 256 (size = class_id * 16).
145 static uptr Size(uptr class_id) { argument
149 if (UNLIKELY(class_id == kBatchClassID))
151 if (class_id <= kMidClass)
152 return kMinSize * class_id;
153 class_id -= kMidClass;
154 uptr t = kMidSize << (class_id >> S);
155 return t + (t >> S) * (class_id & M);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/
H A Djitprofiling.h199 unsigned int class_id; member in struct:_iJIT_Method_Load
H A DIntelJITEventListener.cpp89 Result.class_id = 0;
/freebsd-11-stable/sys/dev/ppbus/
H A Dppbconf.c211 int class_id = -1; local
271 class_id = i;
276 class_id = PPB_PnP_UNKNOWN;
279 return (class_id);
369 ppb->class_id = ppb_pnp_detect(bus);
H A Dppbconf.h237 int class_id; /* not a PnP device if class_id < 0 */ member in struct:ppb_data
/freebsd-11-stable/sys/arm/versatile/
H A Dversatile_pci.c162 uint32_t vendordev_id, class_id; local
195 class_id = versatile_pci_read_4((slot << 11) + PCIR_REVID);
197 (class_id == VERSATILE_PCI_CLASS))
254 class_id = versatile_pci_read_4((slot << 11) + PCIR_REVID);
260 (class_id == 0xffffffff))
/freebsd-11-stable/sys/net/altq/
H A Daltq_hfsc.h71 u_int class_id; member in struct:hfsc_classstats
H A Daltq_hfsc.c1602 sp->class_id = cl->cl_id;
/freebsd-11-stable/contrib/binutils/binutils/
H A Ddebug.c55 unsigned int class_id; member in struct:debug_handle
56 /* The base for class_id for this call to debug_write. */
2325 info->base_id = info->class_id;
2982 ++info->class_id;
2983 c->id = info->class_id;

Completed in 214 milliseconds