Home
last modified time | relevance | path

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

/freebsd-src/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_fake_stack.cpp29 ALWAYS_INLINE void SetShadow(uptr ptr, uptr size, uptr class_id, u64 magic) { in SetShadow() argument
31 if (ASAN_SHADOW_SCALE == 3 && class_id <= 6) { in SetShadow()
33 for (uptr i = 0; i < (((uptr)1) << class_id); i++) { in SetShadow()
70 for (uptr class_id = 0; class_id < kNumberOfSizeClasses; class_id++) in Destroy() local
71 str.AppendF("%zd: %zd/%zd; ", class_id, hint_position_[class_id], in Destroy()
72 NumberOfFrames(stack_size_log(), class_id)); in Destroy()
88 FakeFrame *FakeStack::Allocate(uptr stack_size_log, uptr class_id, in Allocate() argument
90 CHECK_LT(class_id, kNumberOfSizeClasses); in Allocate()
93 uptr &hint_position = hint_position_[class_id]; in Allocate()
94 const int num_iter = NumberOfFrames(stack_size_log, class_id); in Allocate()
[all …]
H A Dasan_fake_stack.h91 static uptr FlagsOffset(uptr stack_size_log, uptr class_id) { in FlagsOffset() argument
92 uptr t = kNumberOfSizeClasses - 1 - class_id; in FlagsOffset()
97 static uptr NumberOfFrames(uptr stack_size_log, uptr class_id) { in NumberOfFrames() argument
98 return ((uptr)1) << (stack_size_log - kMinStackFrameSizeLog - class_id); in NumberOfFrames()
102 static uptr ModuloNumberOfFrames(uptr stack_size_log, uptr class_id, uptr n) { in ModuloNumberOfFrames() argument
103 return n & (NumberOfFrames(stack_size_log, class_id) - 1); in ModuloNumberOfFrames()
107 u8 *GetFlags(uptr stack_size_log, uptr class_id) { in GetFlags() argument
109 FlagsOffset(stack_size_log, class_id); in GetFlags()
113 u8 *GetFrame(uptr stack_size_log, uptr class_id, uptr pos) { in GetFrame() argument
116 (((uptr)1) << stack_size_log) * class_id + in GetFrame()
[all …]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_local_cache.h34 void *Allocate(SizeClassAllocator *allocator, uptr class_id) { in Allocate()
35 CHECK_NE(class_id, 0UL); in Allocate()
36 CHECK_LT(class_id, kNumClasses); in Allocate()
37 PerClass *c = &per_class_[class_id]; in Allocate()
39 if (UNLIKELY(!Refill(c, allocator, class_id))) in Allocate()
46 allocator->GetRegionBeginBySizeClass(class_id), chunk)); in Allocate()
49 void Deallocate(SizeClassAllocator *allocator, uptr class_id, void *p) { in Deallocate()
50 CHECK_NE(class_id, 0UL); in Deallocate()
51 CHECK_LT(class_id, kNumClasses); in Deallocate()
54 PerClass *c = &per_class_[class_id]; in Deallocate()
[all …]
H A Dsanitizer_allocator_primary64.h67 void ReleasePageRangeToOS(uptr class_id, CompactPtrT from, CompactPtrT to) { in ReleasePageRangeToOS() argument
68 const uptr region_base = allocator_.GetRegionBeginBySizeClass(class_id); in ReleasePageRangeToOS()
163 for (uptr class_id = 1; class_id < kNumClasses; class_id++) { in ForceReleaseToOS() local
164 Lock l(&GetRegionInfo(class_id)->mutex); in ForceReleaseToOS()
165 MaybeReleaseToOS(&memory_mapper, class_id, true /*force*/); in ForceReleaseToOS()
175 AllocatorStats *stat, uptr class_id, in ReturnToAllocator() argument
177 RegionInfo *region = GetRegionInfo(class_id); in ReturnToAllocator()
178 uptr region_beg = GetRegionBeginBySizeClass(class_id); in ReturnToAllocator()
201 GetFromAllocator(AllocatorStats * stat,uptr class_id,CompactPtrT * chunks,uptr n_chunks) GetFromAllocator() argument
248 GetRegionBeginBySizeClass(uptr class_id) GetRegionBeginBySizeClass() argument
260 uptr class_id = GetSizeClass(p); GetBlockBegin() local
283 uptr class_id = GetSizeClass(p); GetMetaData() local
306 for (uptr class_id = 0; class_id < kNumClasses; class_id++) FillMemoryProfile() local
311 PrintStats(uptr class_id,uptr rss) PrintStats() argument
330 for (uptr class_id = 0; class_id < kNumClasses; class_id++) PrintStats() local
338 for (uptr class_id = 1; class_id < kNumClasses; class_id++) { PrintStats() local
351 for (uptr class_id = 1; class_id < kNumClasses; class_id++) PrintStats() local
372 for (uptr class_id = 1; class_id < kNumClasses; class_id++) { ForEachChunk() local
387 ClassIdToSize(uptr class_id) ClassIdToSize() argument
472 FreePagesRangeTracker(MemoryMapperT * mapper,uptr class_id) FreePagesRangeTracker() argument
504 const uptr class_id = 0; global() variable
520 ReleaseFreeMemoryToOS(CompactPtrT * free_array,uptr free_array_count,uptr chunk_size,uptr allocated_pages_count,MemoryMapper * memory_mapper,uptr class_id) ReleaseFreeMemoryToOS() argument
684 GetRegionInfo(uptr class_id) GetRegionInfo() argument
757 IsRegionExhausted(RegionInfo * region,uptr class_id,uptr additional_map_size) IsRegionExhausted() argument
771 PopulateFreeArray(AllocatorStats * stat,uptr class_id,RegionInfo * region,uptr requested_count) PopulateFreeArray() argument
861 MaybeReleaseToOS(MemoryMapperT * memory_mapper,uptr class_id,bool force) MaybeReleaseToOS() argument
[all...]
H A Dsanitizer_allocator_primary32.h114 static uptr ClassIdToSize(uptr class_id) { in ClassIdToSize() argument
115 return (class_id == SizeClassMap::kBatchClassID) ? in ClassIdToSize()
116 kBatchSize : SizeClassMap::Size(class_id); in ClassIdToSize()
169 uptr class_id) { in AllocateBatch() argument
170 DCHECK_LT(class_id, kNumClasses); in AllocateBatch()
171 SizeClassInfo *sci = GetSizeClassInfo(class_id); in AllocateBatch()
174 if (UNLIKELY(!PopulateFreeList(stat, c, sci, class_id))) in AllocateBatch()
183 NOINLINE void DeallocateBatch(AllocatorStats *stat, uptr class_id, in DeallocateBatch() argument
185 DCHECK_LT(class_id, kNumClasses); in DeallocateBatch()
187 SizeClassInfo *sci = GetSizeClassInfo(class_id); in DeallocateBatch()
298 AllocateRegion(AllocatorStats * stat,uptr class_id) AllocateRegion() argument
311 GetSizeClassInfo(uptr class_id) GetSizeClassInfo() argument
316 PopulateBatches(AllocatorCache * c,SizeClassInfo * sci,uptr class_id,TransferBatch ** current_batch,uptr max_count,uptr * pointers_array,uptr count) PopulateBatches() argument
342 PopulateFreeList(AllocatorStats * stat,AllocatorCache * c,SizeClassInfo * sci,uptr class_id) PopulateFreeList() argument
[all...]
H A Dsanitizer_allocator_size_class_map.h145 static uptr Size(uptr class_id) { in Size() argument
149 if (UNLIKELY(class_id == kBatchClassID)) in Size()
151 if (class_id <= kMidClass) in Size()
152 return kMinSize * class_id; in Size()
153 class_id -= kMidClass; in Size()
154 uptr t = kMidSize << (class_id >> S); in Size()
155 return t + (t >> S) * (class_id & M); in Size()
/freebsd-src/sys/dev/ppbus/
H A Dppbconf.c211 int class_id = -1; in ppb_pnp_detect() local
271 class_id = i; in ppb_pnp_detect()
276 class_id = PPB_PnP_UNKNOWN; in ppb_pnp_detect()
279 return (class_id); in ppb_pnp_detect()
369 ppb->class_id = ppb_pnp_detect(bus); in ppb_scan_bus()
H A Dppbconf.h235 int class_id; /* not a PnP device if class_id < 0 */ member
/freebsd-src/sys/net/altq/
H A Daltq_hfsc.h79 u_int class_id; member
122 u_int class_id; member
H A Daltq_hfsc.c1556 sp->class_id = cl->cl_id; in get_class_stats_v0()
1638 sp->class_id = cl->cl_id; in get_class_stats_v1()
/freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/
H A Djitprofiling.h
H A DIntelJITEventListener.cpp173 Result.class_id = 0; in FunctionDescToIntelJITFormat()
/freebsd-src/sys/dev/pci/
H A Dpcivar.h298 uint16_t class_id; member
313 .match_flag_class = 1, .class_id = (x)
H A Dpci.c6805 match &= class == id->class_id; in pci_match_device()