| /kernel/linux/common_modules/memory_security/src/ |
| H A D | jit_space_list.c | 9 inline struct jit_space_node *init_jit_space_node(unsigned long begin, unsigned long end) in init_jit_space_node() argument 16 new->begin = begin; in init_jit_space_node() 21 const void find_jit_space(struct list_head *head, unsigned long begin, unsigned long size, int *err) in find_jit_space() argument 23 unsigned long end = begin + size; in find_jit_space() 30 if (node->begin <= begin && node->end >= end) { in find_jit_space() 38 void update_jit_space(struct list_head *head, unsigned long begin, unsigned long size) in update_jit_space() argument 40 unsigned long end = begin + size; in update_jit_space() 42 struct jit_space_node *new = init_jit_space_node(begin, en in update_jit_space() 50 delete_jit_space(struct list_head *head, unsigned long begin, unsigned long size, int *err) delete_jit_space() argument [all...] |
| /kernel/linux/linux-6.6/scripts/dtc/ |
| H A D | of_unittest_expect | 106 --verbose do not suppress EXPECT begin and end lines 116 to occur with an 'EXPECT \\ : text' (begin) before triggering the 121 For each expected message, the 'EXPECT \\ : text' (begin) and 124 If 'EXPECT \\' (begin) and 'EXPECT /' (end) lines do not contain 128 reverse order of the corresponding 'EXPECT \\' (begin) lines. 130 'EXPECT \\ : text' (begin) and 'EXPECT / : text' (end) lines can 137 'EXPECT \\' (begin) and 'EXPECT /' (end) lines are suppressed. 141 'ok ' Line matches an enclosing EXPECT begin/end pair 235 # Patterns to match 'EXPECT \ : ' (begin) and 'EXPECT / : ' (end) 279 # ----- find EXPECT begin [all...] |
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| H A D | remembered_set.h | 45 bool Insert(uintptr_t begin, uintptr_t addr) in Insert() argument 47 return GCBitsetData()->SetBit<AccessType::NON_ATOMIC>((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in Insert() 50 bool InsertRange(uintptr_t begin, uintptr_t addr, uint32_t mask) in InsertRange() argument 52 return GCBitsetData()->SetBitRange((addr - begin) >> TAGGED_TYPE_SIZE_LOG, mask); in InsertRange() 55 bool AtomicInsert(uintptr_t begin, uintptr_t addr) in AtomicInsert() argument 57 return GCBitsetData()->SetBit<AccessType::ATOMIC>((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in AtomicInsert() 60 void ClearBit(uintptr_t begin, uintptr_t addr) in ClearBit() argument 62 GCBitsetData()->ClearBit((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in ClearBit() 65 void ClearRange(uintptr_t begin, uintptr_t start, uintptr_t end) in ClearRange() argument 68 (start - begin) >> TAGGED_TYPE_SIZE_LO in ClearRange() 71 AtomicClearRange(uintptr_t begin, uintptr_t start, uintptr_t end) AtomicClearRange() argument 77 TestBit(uintptr_t begin, uintptr_t addr) const TestBit() argument 83 IterateAllMarkedBits(uintptr_t begin, Visitor visitor) IterateAllMarkedBits() argument 89 AtomicIterateAllMarkedBits(uintptr_t begin, Visitor visitor) AtomicIterateAllMarkedBits() argument 95 IterateAllMarkedBitsConst(uintptr_t begin, Visitor visitor) const IterateAllMarkedBitsConst() argument [all...] |
| H A D | allocator-inl.h | 27 BumpPointerAllocator::BumpPointerAllocator(uintptr_t begin, uintptr_t end) : begin_(begin), top_(begin), end_(end) {} in BumpPointerAllocator() argument 36 void BumpPointerAllocator::Reset(uintptr_t begin, uintptr_t end) in Reset() argument 38 begin_ = begin; in Reset() 39 top_ = begin; in Reset() 46 void BumpPointerAllocator::Reset(uintptr_t begin, uintptr_t end, uintptr_t top) in Reset() argument 48 begin_ = begin; in Reset() 98 auto begin = region->GetBegin(); in AddFree() local 101 bpAllocator_.Reset(begin, en in AddFree() 123 uintptr_t begin = object->GetBegin(); Allocate() local 146 auto begin = bpAllocator_.GetTop(); FreeBumpPoint() local 165 ResetBumpPointer(uintptr_t begin, uintptr_t end, uintptr_t top) ResetBumpPointer() argument 178 Free(uintptr_t begin, size_t size, bool isAdd) Free() argument [all...] |
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
| H A D | bitmap.h | 134 * @brief Iterates over marked bits in range [begin, end) sequentially. 138 * @param begin - beginning index of the range, inclusive. 144 void IterateOverSetBitsInRange(size_t begin, size_t end, const VisitorType &visitor) in IterateOverSetBitsInRange() argument 146 CheckBitRange(begin, end); in IterateOverSetBitsInRange() 147 if (UNLIKELY(begin == end)) { in IterateOverSetBitsInRange() 151 auto bitmapWord = GetBitmapWord<ATOMIC>(begin); in IterateOverSetBitsInRange() 152 auto offsetWithinWord = GetBitIdxWithinWord(begin); in IterateOverSetBitsInRange() 153 // first word, clear bits before begin in IterateOverSetBitsInRange() 155 auto offsetWordBegin = GetWordIdx(begin) * BITSPERWORD; in IterateOverSetBitsInRange() 200 * @brief Iterates over all bits in range [begin, en 207 IterateOverBitsInRange(size_t begin, size_t end, const VisitorType &visitor) IterateOverBitsInRange() argument 227 SetRangeWithinWord(size_t begin, size_t end) SetRangeWithinWord() argument 239 ClearRangeWithinWord(size_t begin, size_t end) ClearRangeWithinWord() argument 277 FindHighestPrecedingOrSameBit(size_t begin) FindHighestPrecedingOrSameBit() argument [all...] |
| /arkcompiler/runtime_core/libpandabase/tests/ |
| H A D | small_vector_test.cpp | 72 ASSERT_TRUE(std::equal(values.begin(), values.begin() + 5, vector.begin())); in TestVectorGrow() 74 std::copy(values.begin() + 5, values.end(), std::back_inserter(vector)); in TestVectorGrow() 100 std::copy(values.begin(), values.begin() + 4, std::back_inserter(vector)); in TestVectorFind() 103 ASSERT_TRUE(std::equal(vector.begin(), vector.end(), values.begin())); in TestVectorFind() 106 auto it = std::find(vector.begin(), vector.end(), 30); in TestVectorFind() 109 ASSERT_EQ(std::distance(vector.begin(), i in TestVectorFind() [all...] |
| H A D | list_test.cpp | 63 return std::equal(list1.begin(), list1.end(), list2.begin()); in IsEqual() 92 ASSERT_EQ(node, &*list.begin()); in TEST_F() 93 ASSERT_EQ(++list.begin(), list.end()); in TEST_F() 104 list.InsertAfter(list.begin(), *NewNode(2)); in TEST_F() 110 list.EraseAfter(list.begin() + 1); in TEST_F() 113 it = list.begin() + 1; in TEST_F() 130 list2.Splice(list2.before_begin(), list, list.begin() + 1, list.begin() + 5); in TEST_F() 134 list2.Splice(list2.begin(), lis in TEST_F() [all...] |
| /kernel/linux/linux-5.10/fs/ufs/ |
| H A D | util.h | 323 #define ubh_get_addr8(ubh,begin) \ 324 ((u8*)(ubh)->bh[(begin) >> uspi->s_fshift]->b_data + \ 325 ((begin) & ~uspi->s_fmask)) 327 #define ubh_get_addr16(ubh,begin) \ 328 (((__fs16*)((ubh)->bh[(begin) >> (uspi->s_fshift-1)]->b_data)) + \ 329 ((begin) & ((uspi->fsize>>1) - 1))) 331 #define ubh_get_addr32(ubh,begin) \ 332 (((__fs32*)((ubh)->bh[(begin) >> (uspi->s_fshift-2)]->b_data)) + \ 333 ((begin) & ((uspi->s_fsize>>2) - 1))) 335 #define ubh_get_addr64(ubh,begin) \ 393 _ubh_find_next_zero_bit_( struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned size, unsigned offset) _ubh_find_next_zero_bit_() argument 440 _ubh_find_last_zero_bit_( struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned start, unsigned end) _ubh_find_last_zero_bit_() argument 469 _ubh_isblockset_(struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned block) _ubh_isblockset_() argument 490 _ubh_clrblock_(struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned block) _ubh_clrblock_() argument 510 _ubh_setblock_(struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned block) _ubh_setblock_() argument [all...] |
| /kernel/linux/linux-6.6/fs/ufs/ |
| H A D | util.h | 317 #define ubh_get_addr8(ubh,begin) \ 318 ((u8*)(ubh)->bh[(begin) >> uspi->s_fshift]->b_data + \ 319 ((begin) & ~uspi->s_fmask)) 321 #define ubh_get_addr16(ubh,begin) \ 322 (((__fs16*)((ubh)->bh[(begin) >> (uspi->s_fshift-1)]->b_data)) + \ 323 ((begin) & ((uspi->fsize>>1) - 1))) 325 #define ubh_get_addr32(ubh,begin) \ 326 (((__fs32*)((ubh)->bh[(begin) >> (uspi->s_fshift-2)]->b_data)) + \ 327 ((begin) & ((uspi->s_fsize>>2) - 1))) 329 #define ubh_get_addr64(ubh,begin) \ 387 _ubh_find_next_zero_bit_( struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned size, unsigned offset) _ubh_find_next_zero_bit_() argument 434 _ubh_find_last_zero_bit_( struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned start, unsigned end) _ubh_find_last_zero_bit_() argument 463 _ubh_isblockset_(struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned block) _ubh_isblockset_() argument 484 _ubh_clrblock_(struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned block) _ubh_clrblock_() argument 504 _ubh_setblock_(struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, unsigned begin, unsigned block) _ubh_setblock_() argument [all...] |
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
| H A D | collection_set.h | 35 explicit CollectionSet(const Container &set) : collectionSet_(set.begin(), set.end()) in CollectionSet() 59 auto begin() // NOLINT(readability-identifier-naming) in begin() function in ark::mem::CollectionSet 61 return collectionSet_.begin(); in begin() 64 auto begin() const // NOLINT(readability-identifier-naming) in begin() function in ark::mem::CollectionSet 66 return collectionSet_.begin(); in begin() 98 return Range<PandaVector<Region *>::iterator>(begin(), begin() + tenuredBegin_); in Young() 103 return Range<PandaVector<Region *>::const_iterator>(begin(), begin() + tenuredBegin_); in Young() 108 return Range<PandaVector<Region *>::iterator>(begin() in Tenured() [all...] |
| /kernel/linux/linux-5.10/arch/x86/kernel/ |
| H A D | dumpstack_32.c | 40 unsigned long *begin = (unsigned long *)this_cpu_read(hardirq_stack_ptr); in in_hardirq_stack() local 41 unsigned long *end = begin + (THREAD_SIZE / sizeof(long)); in in_hardirq_stack() 47 if (stack < begin || stack > end) in in_hardirq_stack() 51 info->begin = begin; in in_hardirq_stack() 58 info->next_sp = (unsigned long *)*begin; in in_hardirq_stack() 65 unsigned long *begin = (unsigned long *)this_cpu_read(softirq_stack_ptr); in in_softirq_stack() local 66 unsigned long *end = begin + (THREAD_SIZE / sizeof(long)); in in_softirq_stack() 72 if (stack < begin || stack > end) in in_softirq_stack() 76 info->begin in in_softirq_stack() 93 void *begin = ss->stack; in_doublefault_stack() local [all...] |
| H A D | dumpstack_64.c | 90 unsigned long begin, end, stk = (unsigned long)stack; in in_exception_stack() local 97 begin = (unsigned long)__this_cpu_read(cea_exception_stacks); in in_exception_stack() 102 if (!begin) in in_exception_stack() 105 end = begin + sizeof(struct cea_exception_stacks); in in_exception_stack() 107 if (stk < begin || stk >= end) in in_exception_stack() 111 k = (stk - begin) >> PAGE_SHIFT; in in_exception_stack() 118 begin += (unsigned long)ep->offs; in in_exception_stack() 119 end = begin + (unsigned long)ep->size; in in_exception_stack() 123 info->begin = (unsigned long *)begin; in in_exception_stack() 132 unsigned long *begin = end - (IRQ_STACK_SIZE / sizeof(long)); in_irq_stack() local [all...] |
| /kernel/linux/linux-6.6/arch/x86/kernel/ |
| H A D | dumpstack_32.c | 40 unsigned long *begin = (unsigned long *)this_cpu_read(pcpu_hot.hardirq_stack_ptr); in in_hardirq_stack() local 41 unsigned long *end = begin + (THREAD_SIZE / sizeof(long)); in in_hardirq_stack() 47 if (stack < begin || stack > end) in in_hardirq_stack() 51 info->begin = begin; in in_hardirq_stack() 58 info->next_sp = (unsigned long *)*begin; in in_hardirq_stack() 65 unsigned long *begin = (unsigned long *)this_cpu_read(pcpu_hot.softirq_stack_ptr); in in_softirq_stack() local 66 unsigned long *end = begin + (THREAD_SIZE / sizeof(long)); in in_softirq_stack() 72 if (stack < begin || stack > end) in in_softirq_stack() 76 info->begin in in_softirq_stack() 93 void *begin = ss->stack; in_doublefault_stack() local [all...] |
| H A D | dumpstack_64.c | 96 unsigned long begin, end, stk = (unsigned long)stack; in in_exception_stack() local 103 begin = (unsigned long)__this_cpu_read(cea_exception_stacks); in in_exception_stack() 108 if (!begin) in in_exception_stack() 111 end = begin + sizeof(struct cea_exception_stacks); in in_exception_stack() 113 if (stk < begin || stk >= end) in in_exception_stack() 117 k = (stk - begin) >> PAGE_SHIFT; in in_exception_stack() 124 begin += (unsigned long)ep->offs; in in_exception_stack() 125 end = begin + (unsigned long)ep->size; in in_exception_stack() 129 info->begin = (unsigned long *)begin; in in_exception_stack() 138 unsigned long *begin; in_irq_stack() local [all...] |
| /arkcompiler/runtime_core/static_core/libpandabase/tests/ |
| H A D | small_vector_test.cpp | 77 ASSERT_TRUE(std::equal(values.begin(), values.begin() + 5U, vector.begin())); in TestVectorGrow() 79 std::copy(values.begin() + 5U, values.end(), std::back_inserter(vector)); in TestVectorGrow() 102 auto it = std::find(vector.begin(), vector.end(), 30U); in CheckIteration() 105 ASSERT_EQ(std::distance(vector.begin(), it), 2U); in CheckIteration() 106 it = std::find(vector.begin(), vector.end(), 50U); in CheckIteration() 126 std::copy(values.begin(), values.begin() + 4U, std::back_inserter(vector)); in TestVectorIteration() 129 ASSERT_TRUE(std::equal(vector.begin(), vecto in TestVectorIteration() [all...] |
| H A D | list_test.cpp | 64 return std::equal(list1.begin(), list1.end(), list2.begin()); in IsEqual() 94 ASSERT_EQ(node, &*list.begin()); in TEST_F() 95 ASSERT_EQ(++list.begin(), list.end()); in TEST_F() 106 list.InsertAfter(list.begin(), *NewNode(2U)); in TEST_F() 112 list.EraseAfter(list.begin() + 1U); in TEST_F() 115 it = list.begin() + 1U; in TEST_F() 133 list2.Splice(list2.before_begin(), list, list.begin() + 1U, list.begin() + 5U); in TEST_F() 137 list2.Splice(list2.begin(), lis in TEST_F() [all...] |
| /kernel/linux/linux-5.10/arch/sh/mm/ |
| H A D | cache-sh2a.c | 53 unsigned long begin, end; in sh2a__flush_wback_region() local 57 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2a__flush_wback_region() 66 if (((end - begin) >> PAGE_SHIFT) >= MAX_OCACHE_PAGES) { in sh2a__flush_wback_region() 67 begin = CACHE_OC_ADDRESS_ARRAY; in sh2a__flush_wback_region() 68 end = begin + (nr_ways * current_cpu_data.dcache.way_size); in sh2a__flush_wback_region() 70 for (v = begin; v < end; v += L1_CACHE_BYTES) { in sh2a__flush_wback_region() 78 for (v = begin; v < end; v += L1_CACHE_BYTES) in sh2a__flush_wback_region() 94 unsigned long begin, end; in sh2a__flush_purge_region() local 97 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2a__flush_purge_region() 104 for (v = begin; in sh2a__flush_purge_region() 124 unsigned long begin, end; sh2a__flush_invalidate_region() local [all...] |
| H A D | cache-sh2.c | 21 unsigned long begin, end; in sh2__flush_wback_region() local 23 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2__flush_wback_region() 26 for (v = begin; v < end; v+=L1_CACHE_BYTES) { in sh2__flush_wback_region() 42 unsigned long begin, end; in sh2__flush_purge_region() local 44 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2__flush_purge_region() 48 for (v = begin; v < end; v+=L1_CACHE_BYTES) in sh2__flush_purge_region() 73 unsigned long begin, end; in sh2__flush_invalidate_region() 75 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2__flush_invalidate_region() 79 for (v = begin; v < end; v+=L1_CACHE_BYTES) in sh2__flush_invalidate_region()
|
| /kernel/linux/linux-6.6/arch/sh/mm/ |
| H A D | cache-sh2a.c | 53 unsigned long begin, end; in sh2a__flush_wback_region() local 57 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2a__flush_wback_region() 66 if (((end - begin) >> PAGE_SHIFT) >= MAX_OCACHE_PAGES) { in sh2a__flush_wback_region() 67 begin = CACHE_OC_ADDRESS_ARRAY; in sh2a__flush_wback_region() 68 end = begin + (nr_ways * current_cpu_data.dcache.way_size); in sh2a__flush_wback_region() 70 for (v = begin; v < end; v += L1_CACHE_BYTES) { in sh2a__flush_wback_region() 78 for (v = begin; v < end; v += L1_CACHE_BYTES) in sh2a__flush_wback_region() 94 unsigned long begin, end; in sh2a__flush_purge_region() local 97 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2a__flush_purge_region() 104 for (v = begin; in sh2a__flush_purge_region() 124 unsigned long begin, end; sh2a__flush_invalidate_region() local [all...] |
| H A D | cache-sh2.c | 21 unsigned long begin, end; in sh2__flush_wback_region() local 23 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2__flush_wback_region() 26 for (v = begin; v < end; v+=L1_CACHE_BYTES) { in sh2__flush_wback_region() 42 unsigned long begin, end; in sh2__flush_purge_region() local 44 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2__flush_purge_region() 48 for (v = begin; v < end; v+=L1_CACHE_BYTES) in sh2__flush_purge_region() 73 unsigned long begin, end; in sh2__flush_invalidate_region() 75 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2__flush_invalidate_region() 79 for (v = begin; v < end; v+=L1_CACHE_BYTES) in sh2__flush_invalidate_region()
|
| /arkcompiler/runtime_core/static_core/runtime/mem/ |
| H A D | object-references-iterator-inl.h | 30 static bool Iterate(coretypes::Array *array, Handler *handler, void *begin, void *end); 54 bool ObjectArrayIterator::Iterate(coretypes::Array *array, Handler *handler, void *begin, void *end) in Iterate() argument 56 ASSERT(IsAligned(ToUintPtr(begin), DEFAULT_ALIGNMENT_IN_BYTES)); in Iterate() 61 auto *p = begin < arrayStart ? arrayStart : reinterpret_cast<T *>(begin); in Iterate() 81 bool ObjectIterator<LANG_TYPE_STATIC>::Iterate(ObjectHeader *obj, Handler *handler, void *begin, void *end) in Iterate() argument 85 return Iterate<INTERRUPTIBLE>(cls, obj, handler, begin, end); in Iterate() 105 void *begin, void *end) in IterateAndDiscoverReferences() 116 return Iterate<false>(cls, obj, handler, begin, end); in IterateAndDiscoverReferences() 139 bool ObjectIterator<LANG_TYPE_STATIC>::Iterate(Class *cls, ObjectHeader *obj, Handler *handler, void *begin, voi argument 104 IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler, void *begin, void *end) IterateAndDiscoverReferences() argument 177 IterateClassReferences(Class *cls, Handler *handler, void *begin, void *end) IterateClassReferences() argument 225 IterateObjectReferences(ObjectHeader *object, Class *cls, Handler *handler, void *begin, void *end) IterateObjectReferences() argument 271 IterateRange(ObjectPointerType *refStart, ObjectPointerType *refEnd, Handler *handler, void *begin, void *end) IterateRange() argument 291 Iterate(ObjectHeader *obj, Handler *handler, void *begin, void *end) Iterate() argument 314 IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler, void *begin, void *end) IterateAndDiscoverReferences() argument 346 Iterate(HClass *cls, ObjectHeader *obj, Handler *handler, void *begin, void *end) Iterate() argument 387 IterateClassReferences(coretypes::DynClass *dynClass, Handler *handler, void *begin, void *end) IterateClassReferences() argument 443 IterateObjectReferences(ObjectHeader *object, HClass *cls, Handler *handler, void *begin, void *end) IterateObjectReferences() argument [all...] |
| H A D | object-references-iterator.h | 34 static bool Iterate(ObjectHeader *obj, Handler *handler, void *begin, void *end); 40 static bool IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler, void *begin, void *end); 47 static bool Iterate(Class *cls, ObjectHeader *obj, Handler *handler, void *begin, void *end); 53 static bool IterateObjectReferences(ObjectHeader *object, Class *cls, Handler *handler, void *begin, void *end); 59 static bool IterateClassReferences(Class *cls, Handler *handler, void *begin, void *end); 65 static bool IterateRange(ObjectPointerType *refStart, ObjectPointerType *refEnd, Handler *handler, void *begin, 75 static bool Iterate(ObjectHeader *obj, Handler *handler, void *begin, void *end); 81 static bool IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler, void *begin, void *end); 88 static bool Iterate(HClass *cls, ObjectHeader *obj, Handler *handler, void *begin, void *end); 94 static bool IterateObjectReferences(ObjectHeader *object, HClass *cls, Handler *handler, void *begin, voi [all...] |
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| H A D | collection_set_test.cpp | 70 ASSERT_EQ(1U, std::distance(young.begin(), young.end())); in TEST_F() 71 ASSERT_EQ(&youngRegion, *young.begin()); in TEST_F() 72 ASSERT_EQ(0U, std::distance(tenured.begin(), tenured.end())); in TEST_F() 73 ASSERT_EQ(0U, std::distance(humongous.begin(), humongous.end())); in TEST_F() 91 ASSERT_EQ(1U, std::distance(young.begin(), young.end())); in TEST_F() 92 ASSERT_EQ(&youngRegion, *young.begin()); in TEST_F() 93 ASSERT_EQ(1U, std::distance(tenured.begin(), tenured.end())); in TEST_F() 94 ASSERT_EQ(&tenuredRegion, *tenured.begin()); in TEST_F() 95 ASSERT_EQ(0U, std::distance(humongous.begin(), humongous.end())); in TEST_F() 114 ASSERT_EQ(1U, std::distance(young.begin(), youn in TEST_F() [all...] |
| /kernel/linux/linux-5.10/samples/seccomp/ |
| H A D | bpf-helper.c | 66 struct __bpf_label *begin = labels->labels, *end; in seccomp_bpf_label() local 74 begin->label = label; in seccomp_bpf_label() 75 begin->location = 0xffffffff; in seccomp_bpf_label() 79 end = begin + labels->count; in seccomp_bpf_label() 80 for (id = 0; begin < end; ++begin, ++id) { in seccomp_bpf_label() 81 if (!strcmp(label, begin->label)) in seccomp_bpf_label() 84 begin->label = label; in seccomp_bpf_label() 85 begin->location = 0xffffffff; in seccomp_bpf_label()
|
| /kernel/linux/linux-6.6/samples/seccomp/ |
| H A D | bpf-helper.c | 66 struct __bpf_label *begin = labels->labels, *end; in seccomp_bpf_label() local 74 begin->label = label; in seccomp_bpf_label() 75 begin->location = 0xffffffff; in seccomp_bpf_label() 79 end = begin + labels->count; in seccomp_bpf_label() 80 for (id = 0; begin < end; ++begin, ++id) { in seccomp_bpf_label() 81 if (!strcmp(label, begin->label)) in seccomp_bpf_label() 84 begin->label = label; in seccomp_bpf_label() 85 begin->location = 0xffffffff; in seccomp_bpf_label()
|