Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 1220) sorted by relevance

12345678910>>...49

/freebsd/contrib/bmake/unit-tests/
H A Dhanoi-include.exp1 Move the upper disk from stack A to stack C.
2 Move the upper disk from stack A to stack B.
3 Move the upper disk from stack C to stack B.
4 Move the upper disk from stack A to stack C.
5 Move the upper disk from stack B to stack A.
6 Move the upper disk from stack B to stack C.
7 Move the upper disk from stack A to stack C.
8 Move the upper disk from stack A to stack B.
9 Move the upper disk from stack C to stack B.
10 Move the upper disk from stack C to stack A.
[all …]
/freebsd/contrib/unbound/services/
H A Dmodstack.c92 modstack_init(struct module_stack* stack) in modstack_init() argument
94 stack->num = 0; in modstack_init()
95 stack->mod = NULL; in modstack_init()
99 modstack_free(struct module_stack* stack) in modstack_free() argument
101 if(!stack) in modstack_free()
103 stack->num = 0; in modstack_free()
104 free(stack->mod); in modstack_free()
105 stack->mod = NULL; in modstack_free()
109 modstack_config(struct module_stack* stack, const char* module_conf) in modstack_config() argument
113 stack->num = count_modules(module_conf); in modstack_config()
[all …]
/freebsd/contrib/libcbor/test/
H A Dcallbacks_test.c35 struct _cbor_stack stack = _cbor_stack_init(); in test_builder_byte_string_callback_append() local
37 _cbor_stack_push(&stack, cbor_new_indefinite_bytestring(), 0); in test_builder_byte_string_callback_append()
43 .stack = &stack, in test_builder_byte_string_callback_append()
50 assert_size_equal(context.stack->size, 1); in test_builder_byte_string_callback_append()
52 cbor_item_t* bytestring = stack.top->item; in test_builder_byte_string_callback_append()
71 _cbor_stack_pop(&stack); in test_builder_byte_string_callback_append()
76 struct _cbor_stack stack = _cbor_stack_init(); in test_builder_byte_string_callback_append_alloc_failure() local
78 _cbor_stack_push(&stack, cbor_new_indefinite_bytestring(), 0); in test_builder_byte_string_callback_append_alloc_failure()
84 .stack = &stack, in test_builder_byte_string_callback_append_alloc_failure()
92 assert_size_equal(context.stack->size, 1); in test_builder_byte_string_callback_append_alloc_failure()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dstack14 stack synopsis
20 class stack
33 stack() = default;
34 ~stack() = default;
36 stack(const stack& q) = default;
37 stack(stack&& q) = default;
39 stack& operator=(const stack& q) = default;
40 stack& operator=(stack&& q) = default;
42 explicit stack(const container_type& c);
43 explicit stack(container_type&& c);
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dstack14 stack synopsis
20 class stack
33 stack() = default;
34 ~stack() = default;
36 stack(const stack& q) = default;
37 stack(stack&& q) = default;
39 stack& operator=(const stack& q) = default;
40 stack& operator=(stack&& q) = default;
42 explicit stack(const container_type& c);
43 explicit stack(container_type&& c);
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_report.cpp26 stack(stack_) { in ScopedAllocatorErrorReport()
31 stack->Print(); in ~ScopedAllocatorErrorReport()
33 ReportErrorSummary(error_summary, stack); in ~ScopedAllocatorErrorReport()
39 const StackTrace* const stack; member in __sanitizer::ScopedAllocatorErrorReport
44 const StackTrace *stack) { in ReportCallocOverflow() argument
46 ScopedAllocatorErrorReport report("calloc-overflow", stack); in ReportCallocOverflow()
55 const StackTrace *stack) { in ReportReallocArrayOverflow() argument
57 ScopedAllocatorErrorReport report("reallocarray-overflow", stack); in ReportReallocArrayOverflow()
66 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack) { in ReportPvallocOverflow() argument
68 ScopedAllocatorErrorReport report("pvalloc-overflow", stack); in ReportPvallocOverflow()
[all …]
H A Dsanitizer_allocator_report.h23 const StackTrace *stack);
25 const StackTrace *stack);
26 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack);
28 const StackTrace *stack);
30 const StackTrace *stack);
32 const StackTrace *stack);
34 const StackTrace *stack);
35 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack);
36 void NORETURN ReportRssLimitExceeded(const StackTrace *stack);
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DDWARFExpression.cpp592 static llvm::Error Evaluate_DW_OP_entry_value(DWARFExpression::Stack &stack, in Evaluate_DW_OP_entry_value() argument
778 stack.push_back(*maybe_result); in Evaluate_DW_OP_entry_value()
863 static llvm::Error Evaluate_DW_OP_deref(DWARFExpression::Stack &stack, in Evaluate_DW_OP_deref() argument
867 if (stack.empty()) in Evaluate_DW_OP_deref()
870 const Value::ValueType value_type = stack.back().GetValueType(); in Evaluate_DW_OP_deref()
873 void *src = (void *)stack.back().GetScalar().ULongLong(); in Evaluate_DW_OP_deref()
876 stack.back().GetScalar() = ptr; in Evaluate_DW_OP_deref()
877 stack.back().ClearContext(); in Evaluate_DW_OP_deref()
880 auto file_addr = stack.back().GetScalar().ULongLong(LLDB_INVALID_ADDRESS); in Evaluate_DW_OP_deref()
886 stack.back().GetScalar() = *maybe_load_addr; in Evaluate_DW_OP_deref()
[all …]
/freebsd/sys/sys/
H A Dstack.h47 struct stack *stack_create(int);
48 void stack_destroy(struct stack *);
49 int stack_put(struct stack *, vm_offset_t);
50 void stack_copy(const struct stack *, struct stack *);
51 void stack_zero(struct stack *);
52 void stack_print(const struct stack *);
53 void stack_print_ddb(const struct stack *);
54 void stack_print_short(const struct stack *);
55 void stack_print_short_ddb(const struct stack *);
56 void stack_sbuf_print(struct sbuf *, const struct stack *);
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp185 static void *MsanAllocate(BufferedStackTrace *stack, uptr size, uptr alignment, in MsanAllocate() argument
192 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanAllocate()
193 ReportAllocationSizeTooBig(size, max_malloc_size, stack); in MsanAllocate()
198 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanAllocate()
199 ReportRssLimitExceeded(stack); in MsanAllocate()
215 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanAllocate()
216 ReportOutOfMemory(size, stack); in MsanAllocate()
228 stack->tag = StackTrace::TAG_ALLOC; in MsanAllocate()
229 Origin o = Origin::CreateHeapOrigin(stack); in MsanAllocate()
238 void __msan::MsanDeallocate(BufferedStackTrace *stack, void *p) { in MsanDeallocate() argument
[all …]
/freebsd/contrib/bsnmp/snmp_mibII/
H A DmibII_ifstack.c38 struct mibifstack *stack; in mib_ifstack_create() local
40 if ((stack = malloc(sizeof(*stack))) == NULL) in mib_ifstack_create()
43 stack->index.len = 2; in mib_ifstack_create()
44 stack->index.subs[0] = upper ? upper->index : 0; in mib_ifstack_create()
45 stack->index.subs[1] = lower ? lower->index : 0; in mib_ifstack_create()
47 INSERT_OBJECT_OID(stack, &mibifstack_list); in mib_ifstack_create()
57 struct mibifstack *stack; in mib_ifstack_delete() local
59 TAILQ_FOREACH(stack, &mibifstack_list, link) in mib_ifstack_delete()
60 if (stack->index.subs[0] == (upper ? upper->index : 0) && in mib_ifstack_delete()
61 stack->index.subs[1] == (lower ? lower->index : 0)) { in mib_ifstack_delete()
[all …]
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_tag.c156 pqisrc_init_taglist(pqisrc_softstate_t *softs, lockless_stack_t *stack, in pqisrc_init_taglist() argument
165 stack->max_elem = max_elem + 1; in pqisrc_init_taglist()
166 stack->head.data = 0; in pqisrc_init_taglist()
167 DBG_INFO("Stack head address :%p\n",&stack->head); in pqisrc_init_taglist()
170 stack->next_index_array = (uint32_t*)os_mem_alloc(softs, in pqisrc_init_taglist()
171 (stack->max_elem * sizeof(uint32_t))); in pqisrc_init_taglist()
172 if (!(stack->next_index_array)) { in pqisrc_init_taglist()
179 for (index = 1; index < stack->max_elem ; index++) { in pqisrc_init_taglist()
181 pqisrc_put_tag(stack, index); in pqisrc_init_taglist()
195 pqisrc_destroy_taglist(pqisrc_softstate_t *softs, lockless_stack_t *stack) in pqisrc_destroy_taglist() argument
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.cpp63 static void RegisterAllocation(const StackTrace &stack, void *p, uptr size) { in RegisterAllocation() argument
68 m->stack_trace_id = StackDepotPut(stack); in RegisterAllocation()
82 static void *ReportAllocationSizeTooBig(uptr size, const StackTrace &stack) { in ReportAllocationSizeTooBig() argument
87 ReportAllocationSizeTooBig(size, max_malloc_size, &stack); in ReportAllocationSizeTooBig()
90 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() argument
95 return ReportAllocationSizeTooBig(size, stack); in Allocate()
99 ReportRssLimitExceeded(&stack); in Allocate()
106 ReportOutOfMemory(size, &stack); in Allocate()
111 RegisterAllocation(stack, p, size); in Allocate()
115 static void *Calloc(uptr nmemb, uptr size, const StackTrace &stack) { in Calloc() argument
[all …]
/freebsd/contrib/libcbor/src/cbor/internal/
H A Dbuilder_callbacks.c26 if (ctx->stack->size == 0) { in _cbor_builder_append()
32 switch (ctx->stack->top->item->type) { in _cbor_builder_append()
37 if (cbor_array_is_definite(ctx->stack->top->item)) { in _cbor_builder_append()
41 CBOR_ASSERT(ctx->stack->top->subitems > 0); in _cbor_builder_append()
44 if (!cbor_array_push(ctx->stack->top->item, item)) { in _cbor_builder_append()
50 ctx->stack->top->subitems--; in _cbor_builder_append()
51 if (ctx->stack->top->subitems == 0) { in _cbor_builder_append()
52 cbor_item_t* stack_item = ctx->stack->top->item; in _cbor_builder_append()
53 _cbor_stack_pop(ctx->stack); in _cbor_builder_append()
58 if (!cbor_array_push(ctx->stack->top->item, item)) { in _cbor_builder_append()
[all …]
H A Dstack.c14 void _cbor_stack_pop(struct _cbor_stack* stack) { in _cbor_stack_pop() argument
15 struct _cbor_stack_record* top = stack->top; in _cbor_stack_pop()
16 stack->top = stack->top->lower; in _cbor_stack_pop()
18 stack->size--; in _cbor_stack_pop()
21 struct _cbor_stack_record* _cbor_stack_push(struct _cbor_stack* stack, in _cbor_stack_push() argument
24 if (stack->size == CBOR_MAX_STACK_SIZE) return NULL; in _cbor_stack_push()
29 *new_top = (struct _cbor_stack_record){stack->top, item, subitems}; in _cbor_stack_push()
30 stack->top = new_top; in _cbor_stack_push()
31 stack->size++; in _cbor_stack_push()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_allocator.cpp58 u32 tid, u32 stack) { in AtomicContextStore() argument
61 context += stack; in AtomicContextStore()
66 u32 &tid, u32 &stack) { in AtomicContextLoad() argument
68 stack = context; in AtomicContextLoad()
122 void SetAllocContext(u32 tid, u32 stack) { in SetAllocContext() argument
123 AtomicContextStore(&alloc_context_id, tid, stack); in SetAllocContext()
126 void GetAllocContext(u32 &tid, u32 &stack) const { in GetAllocContext()
127 AtomicContextLoad(&alloc_context_id, tid, stack); in GetAllocContext()
135 void SetFreeContext(u32 tid, u32 stack) { in SetFreeContext() argument
136 AtomicContextStore(&free_context_id, tid, stack); in SetFreeContext()
[all …]
H A Dasan_report.h61 void ReportMallocUsableSizeNotOwned(uptr addr, BufferedStackTrace *stack);
63 BufferedStackTrace *stack);
64 void ReportCallocOverflow(uptr count, uptr size, BufferedStackTrace *stack);
66 BufferedStackTrace *stack);
67 void ReportPvallocOverflow(uptr size, BufferedStackTrace *stack);
69 BufferedStackTrace *stack);
71 BufferedStackTrace *stack);
73 BufferedStackTrace *stack);
75 BufferedStackTrace *stack);
76 void ReportRssLimitExceeded(BufferedStackTrace *stack);
[all …]
H A Dasan_errors.h72 ErrorDoubleFree(u32 tid, BufferedStackTrace *stack, uptr addr) in ErrorDoubleFree()
74 second_free_stack(stack) { in ErrorDoubleFree()
88 ErrorNewDeleteTypeMismatch(u32 tid, BufferedStackTrace *stack, uptr addr, in ErrorNewDeleteTypeMismatch()
91 free_stack(stack), in ErrorNewDeleteTypeMismatch()
104 ErrorFreeNotMalloced(u32 tid, BufferedStackTrace *stack, uptr addr) in ErrorFreeNotMalloced()
106 free_stack(stack), in ErrorFreeNotMalloced()
117 ErrorAllocTypeMismatch(u32 tid, BufferedStackTrace *stack, uptr addr, in ErrorAllocTypeMismatch()
120 dealloc_stack(stack), in ErrorAllocTypeMismatch()
128 const BufferedStackTrace *stack; member
134 stack(stack_), in ErrorMallocUsableSizeNotOwned()
[all …]
H A Dasan_errors.cpp27 BufferedStackTrace *stack) { in OnStackUnwind() argument
40 stack->Unwind(StackTrace::GetNextInstructionPc(sig.pc), sig.bp, sig.context, in OnStackUnwind()
58 stack.Print(); in Print()
60 ReportErrorSummary(scariness.GetDescription(), &stack); in Print()
95 stack.Print(); in Print()
97 ReportErrorSummary(scariness.GetDescription(), &stack); in Print()
114 stack.Print(); in Print()
116 ReportErrorSummary(scariness.GetDescription(), &stack); in Print()
134 stack.Print(); in Print()
136 ReportErrorSummary(scariness.GetDescription(), &stack); in Print()
[all …]
H A Dasan_new_delete.cpp65 void *res = asan_memalign(0, size, &stack, FROM_NEW); \
67 ReportOutOfMemory(size, &stack); \
71 return asan_memalign(0, size, &stack, FROM_NEW)
74 void *res = asan_memalign(0, size, &stack, FROM_NEW_BR); \
76 ReportOutOfMemory(size, &stack); \
80 return asan_memalign(0, size, &stack, FROM_NEW_BR)
83 void *res = asan_memalign((uptr)align, size, &stack, FROM_NEW); \
85 ReportOutOfMemory(size, &stack); \
89 return asan_memalign((uptr)align, size, &stack, FROM_NEW)
92 void *res = asan_memalign((uptr)align, size, &stack, FROM_NEW_BR); \
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_new_delete.cpp27 void *res = hwasan_malloc(size, &stack); \
29 ReportOutOfMemory(size, &stack); \
33 return hwasan_malloc(size, &stack)
36 void *res = hwasan_malloc(size, &stack); \
38 ReportOutOfMemory(size, &stack); \
42 return hwasan_malloc(size, &stack)
45 void *res = hwasan_memalign(static_cast<uptr>(align), size, &stack); \
47 ReportOutOfMemory(size, &stack); \
51 return hwasan_memalign(static_cast<uptr>(align), size, &stack)
54 void *res = hwasan_memalign(static_cast<uptr>(align), size, &stack); \
[all …]
H A Dhwasan_allocator.cpp83 inline void Metadata::SetAllocated(u32 stack, u64 size) { in SetAllocated() argument
87 context += stack; in SetAllocated()
183 static void *HwasanAllocate(StackTrace *stack, uptr orig_size, uptr alignment, in HwasanAllocate() argument
194 ReportAllocationSizeTooBig(orig_size, max_malloc_size, stack); in HwasanAllocate()
199 ReportRssLimitExceeded(stack); in HwasanAllocate()
217 ReportOutOfMemory(size, stack); in HwasanAllocate()
239 flags()->tag_in_malloc && malloc_bisect(stack, orig_size)) { in HwasanAllocate()
262 meta->SetAllocated(StackDepotPut(*stack), orig_size); in HwasanAllocate()
277 static bool CheckInvalidFree(StackTrace *stack, void *untagged_ptr, in CheckInvalidFree() argument
282 ReportInvalidFree(stack, reinterpret_cast<uptr>(tagged_ptr)); in CheckInvalidFree()
[all …]
/freebsd/contrib/libdivsufsort/include/
H A Ddivsufsort_private.h157 stack[ssize].a = (_a), stack[ssize].b = (_b),\
158 stack[ssize].c = (_c), stack[ssize++].d = (_d);\
163 stack[ssize].a = (_a), stack[ssize].b = (_b),\
164 stack[ssize].c = (_c), stack[ssize].d = (_d), stack[ssize++].e = (_e);\
170 (_a) = stack[--ssize].a, (_b) = stack[ssize].b,\
171 (_c) = stack[ssize].c, (_d) = stack[ssize].d;\
177 (_a) = stack[--ssize].a, (_b) = stack[ssize].b,\
178 (_c) = stack[ssize].c, (_d) = stack[ssize].d, (_e) = stack[ssize].e;\
/freebsd/sys/contrib/ck/include/
H A Dck_stack.h56 struct ck_stack_entry *stack; in ck_stack_push_upmc() local
58 stack = ck_pr_load_ptr(&target->head); in ck_stack_push_upmc()
59 entry->next = stack; in ck_stack_push_upmc()
62 while (ck_pr_cas_ptr_value(&target->head, stack, entry, &stack) == false) { in ck_stack_push_upmc()
63 entry->next = stack; in ck_stack_push_upmc()
80 struct ck_stack_entry *stack; in ck_stack_trypush_upmc() local
82 stack = ck_pr_load_ptr(&target->head); in ck_stack_trypush_upmc()
83 entry->next = stack; in ck_stack_trypush_upmc()
86 return ck_pr_cas_ptr(&target->head, stack, entry); in ck_stack_trypush_upmc()
275 struct ck_stack_entry *stack; in ck_stack_push_mpnc() local
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan_allocator.cpp99 BufferedStackTrace stack; in NsanAllocate() local
100 GET_FATAL_STACK_TRACE_IF_EMPTY(&stack); in NsanAllocate()
101 ReportAllocationSizeTooBig(size, max_malloc_size, &stack); in NsanAllocate()
106 BufferedStackTrace stack; in NsanAllocate() local
107 GET_FATAL_STACK_TRACE_IF_EMPTY(&stack); in NsanAllocate()
108 ReportRssLimitExceeded(&stack); in NsanAllocate()
124 BufferedStackTrace stack; in NsanAllocate() local
125 GET_FATAL_STACK_TRACE_IF_EMPTY(&stack); in NsanAllocate()
126 ReportOutOfMemory(size, &stack); in NsanAllocate()
182 BufferedStackTrace stack; in NsanCalloc() local
[all …]

12345678910>>...49