Home
last modified time | relevance | path

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

12345678910>>...44

/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.c10 #include "cbor/internal/stack.h"
35 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()
42 .stack = &stack, in test_builder_byte_string_callback_append()
49 assert_size_equal(context.stack->size, 1); in test_builder_byte_string_callback_append()
51 cbor_item_t* bytestring = stack.top->item; in test_builder_byte_string_callback_append()
70 _cbor_stack_pop(&stack); in test_builder_byte_string_callback_append()
75 struct _cbor_stack stack = _cbor_stack_init(); in test_builder_byte_string_callback_append_alloc_failure() local
77 _cbor_stack_push(&stack, cbor_new_indefinite_bytestrin in test_builder_byte_string_callback_append_alloc_failure()
107 struct _cbor_stack stack = _cbor_stack_init(); test_builder_byte_string_callback_append_item_alloc_failure() local
141 struct _cbor_stack stack = _cbor_stack_init(); test_builder_byte_string_callback_append_parent_alloc_failure() local
175 struct _cbor_stack stack = _cbor_stack_init(); test_builder_string_callback_append() local
212 struct _cbor_stack stack = _cbor_stack_init(); test_builder_string_callback_append_alloc_failure() local
243 struct _cbor_stack stack = _cbor_stack_init(); test_builder_string_callback_append_item_alloc_failure() local
275 struct _cbor_stack stack = _cbor_stack_init(); test_builder_string_callback_append_parent_alloc_failure() local
306 struct _cbor_stack stack = _cbor_stack_init(); test_append_array_failure() local
335 struct _cbor_stack stack = _cbor_stack_init(); test_append_map_failure() local
[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/lldb/source/Expression/
H A DDWARFExpression.cpp531 static llvm::Error Evaluate_DW_OP_entry_value(std::vector<Value> &stack, in Evaluate_DW_OP_entry_value() argument
717 stack.push_back(*maybe_result); in Evaluate_DW_OP_entry_value()
831 std::vector<Value> stack; in Evaluate() local
846 stack.push_back(*initial_value_ptr); in Evaluate()
878 size_t count = stack.size(); in Evaluate()
884 stack[i].Dump(&new_value); in Evaluate()
893 if (stack.size() < *arity) in Evaluate()
896 DW_OP_value_to_name(op), *arity, stack.size()); in Evaluate()
903 stack.push_back(Scalar(opcodes.GetAddress(&offset))); in Evaluate()
908 stack.back().SetValueType(Value::ValueType::LoadAddress); in Evaluate()
[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);
H A Dsanitizer_symbolizer_report.cpp100 void ReportErrorSummary(const char *error_type, const StackTrace *stack, in ReportErrorSummary() argument
107 for (uptr i = 0; i < stack->size; ++i) { in ReportErrorSummary()
108 uptr pc = StackTrace::GetPreviousInstructionPc(stack->trace[i]); in ReportErrorSummary()
120 if (stack->size) { in ReportErrorSummary()
121 uptr pc = StackTrace::GetPreviousInstructionPc(stack->trace[0]); in ReportErrorSummary()
150 BufferedStackTrace *stack = stack_buffer.data(); in ReportMmapWriteExec() local
151 stack->Reset(); in ReportMmapWriteExec()
158 stack->Unwind(kStackTraceMax, pc, bp, nullptr, top, bottom, true); in ReportMmapWriteExec()
160 stack->Unwind(kStackTraceMax, pc, 0, nullptr, 0, 0, false); in ReportMmapWriteExec()
167 stack->Print(); in ReportMmapWriteExec()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp184 static void *MsanAllocate(BufferedStackTrace *stack, uptr size, uptr alignment, in MsanAllocate() argument
191 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanAllocate()
192 ReportAllocationSizeTooBig(size, max_malloc_size, stack); in MsanAllocate()
197 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanAllocate()
198 ReportRssLimitExceeded(stack); in MsanAllocate()
214 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanAllocate()
215 ReportOutOfMemory(size, stack); in MsanAllocate()
228 stack->tag = StackTrace::TAG_ALLOC; in MsanAllocate()
229 Origin o = Origin::CreateHeapOrigin(stack); in MsanAllocate()
238 void MsanDeallocate(BufferedStackTrace *stack, void *p) { in MsanDeallocate() argument
[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/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/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/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 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.cpp57 u32 tid, u32 stack) { in AtomicContextStore() argument
60 context += stack; in AtomicContextStore()
65 u32 &tid, u32 &stack) { in AtomicContextLoad() argument
67 stack = context; in AtomicContextLoad()
121 void SetAllocContext(u32 tid, u32 stack) { in SetAllocContext() argument
122 AtomicContextStore(&alloc_context_id, tid, stack); in SetAllocContext()
125 void GetAllocContext(u32 &tid, u32 &stack) const { in GetAllocContext()
126 AtomicContextLoad(&alloc_context_id, tid, stack); in GetAllocContext()
134 void SetFreeContext(u32 tid, u32 stack) { in SetFreeContext() argument
135 AtomicContextStore(&free_context_id, tid, stack); in SetFreeContext()
[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_stack.h36 UNINITIALIZED BufferedStackTrace stack; \
38 stack.size = max_size; \
40 stack.top_frame_bp = GET_CURRENT_FRAME(); \
41 stack.trace_buffer[0] = StackTrace::GetCurrentPc(); \
43 stack.trace_buffer[1] = GET_CALLER_PC(); \
46 stack.Unwind(StackTrace::GetCurrentPc(), GET_CURRENT_FRAME(), nullptr, \
51 UNINITIALIZED BufferedStackTrace stack; \
52 stack.Unwind(pc, bp, nullptr, common_flags()->fast_unwind_on_fatal)
68 stack.Print(); \
H A Dasan_report.cpp253 void ReportMallocUsableSizeNotOwned(uptr addr, BufferedStackTrace *stack) { in ReportMallocUsableSizeNotOwned() argument
255 ErrorMallocUsableSizeNotOwned error(GetCurrentTidOrInvalid(), stack, addr); in ReportMallocUsableSizeNotOwned()
260 BufferedStackTrace *stack) { in ReportSanitizerGetAllocatedSizeNotOwned() argument
262 ErrorSanitizerGetAllocatedSizeNotOwned error(GetCurrentTidOrInvalid(), stack, in ReportSanitizerGetAllocatedSizeNotOwned()
267 void ReportCallocOverflow(uptr count, uptr size, BufferedStackTrace *stack) { in ReportCallocOverflow() argument
269 ErrorCallocOverflow error(GetCurrentTidOrInvalid(), stack, count, size); in ReportCallocOverflow()
274 BufferedStackTrace *stack) { in ReportReallocArrayOverflow() argument
276 ErrorReallocArrayOverflow error(GetCurrentTidOrInvalid(), stack, count, size); in ReportReallocArrayOverflow()
280 void ReportPvallocOverflow(uptr size, BufferedStackTrace *stack) { in ReportPvallocOverflow() argument
282 ErrorPvallocOverflow error(GetCurrentTidOrInvalid(), stack, size); in ReportPvallocOverflow()
[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/contrib/llvm-project/compiler-rt/lib/hwasan/
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 …]
H A Dhwasan.h74 // for threads and stack histories. This is an ABI constant.
127 void *hwasan_malloc(uptr size, StackTrace *stack);
128 void *hwasan_calloc(uptr nmemb, uptr size, StackTrace *stack);
129 void *hwasan_realloc(void *ptr, uptr size, StackTrace *stack);
130 void *hwasan_reallocarray(void *ptr, uptr nmemb, uptr size, StackTrace *stack);
131 void *hwasan_valloc(uptr size, StackTrace *stack);
132 void *hwasan_pvalloc(uptr size, StackTrace *stack);
133 void *hwasan_aligned_alloc(uptr alignment, uptr size, StackTrace *stack);
134 void *hwasan_memalign(uptr alignment, uptr size, StackTrace *stack);
136 StackTrace *stack);
[all...]
/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/sys/dev/qat/qat_api/common/utils/
H A Dlac_lock_free_stack.h34 pop(lock_free_stack_t *stack) in pop() argument
41 old_top.atomic = stack->top.atomic; in pop()
48 } while (!__sync_bool_compare_and_swap(&stack->top.atomic, in pop()
56 push(lock_free_stack_t *stack, lac_mem_blk_t *val) in push() argument
62 old_top.atomic = stack->top.atomic; in push()
66 } while (!__sync_bool_compare_and_swap(&stack->top.atomic, in push()
74 lock_free_stack_t stack = { { { 0 } } }; in _init_stack() local
75 return stack; in _init_stack()
79 top(lock_free_stack_t *stack) in top() argument
81 pointer_t old_top = stack->top; in top()
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_malloc_linux.cpp41 memprof_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR()
49 memprof_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR()
58 return memprof_malloc(size, &stack); in INTERCEPTOR()
66 return memprof_calloc(nmemb, size, &stack); in INTERCEPTOR()
74 return memprof_realloc(ptr, size, &stack); in INTERCEPTOR()
81 return memprof_reallocarray(ptr, nmemb, size, &stack); in INTERCEPTOR()
88 return memprof_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
93 void *res = memprof_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
102 return memprof_aligned_alloc(boundary, size, &stack); in INTERCEPTOR()
130 return memprof_posix_memalign(memptr, alignment, size, &stack); in INTERCEPTOR()
[all …]

12345678910>>...44