/openbmc/libbej/src/ |
H A D | bej_encoder_json.cpp | 13 auto stack = reinterpret_cast<std::vector<void*>*>(dataPtr); in stackPeek() local 14 if (stack->empty()) in stackPeek() 18 return stack->back(); in stackPeek() 23 auto stack = reinterpret_cast<std::vector<void*>*>(dataPtr); in stackPop() local 24 if (stack->empty()) in stackPop() 28 void* value = stack->back(); in stackPop() 29 stack->pop_back(); in stackPop() 35 auto stack = reinterpret_cast<std::vector<void*>*>(dataPtr); in stackPush() local 36 stack->emplace_back(property); in stackPush() 42 auto stack = reinterpret_cast<std::vector<uint8_t>*>(handlerContext); in getBejEncodedBuffer() local [all …]
|
H A D | bej_encoder_core.c | 225 * @brief A helper function to add a parent to the stack. 228 struct BejPointerStackCallback* stack) in bejPushParentToStack() argument 233 return stack->stackPush(parent, stack->stackContext); in bejPushParentToStack() 240 struct BejPointerStackCallback* stack, in bejProcessChildNodes() argument 250 // If this child node has its own children, add it to the stack and in bejProcessChildNodes() 256 RETURN_IF_IERROR(bejPushParentToStack(childPtr, stack)); in bejProcessChildNodes() 273 struct BejPointerStackCallback* stack, in bejEncodeTree() argument 279 // Once the root is encoded, push it to the stack used to traverse the child in bejEncodeTree() 280 // nodes. We need to keep a parent in this stack until all the child nodes in bejEncodeTree() 282 // the stack. in bejEncodeTree() [all …]
|
H A D | bej_encoder_metadata.c | 520 * If a child node contains its own child nodes, it will be added to the stack 525 * @param stack - stack holding parent nodes. 530 struct BejPointerStackCallback* stack) in bejProcessChildNodes() argument 538 // If we find a child with its own child nodes, add it to the stack and in bejProcessChildNodes() 547 RETURN_IF_IERROR(stack->stackPush(childPtr, stack->stackContext)); in bejProcessChildNodes() 571 struct BejPointerStackCallback* stack) in bejUpdateNodeMetadata() argument 585 // Push the root to the stack. Because we are not done with the parent node in bejUpdateNodeMetadata() 588 RETURN_IF_IERROR(stack->stackPush(root, stack->stackContext)); in bejUpdateNodeMetadata() 590 while (!stack->stackEmpty(stack->stackContext)) in bejUpdateNodeMetadata() 592 // Get the parent at the top of the stack. Stack is only popped if the in bejUpdateNodeMetadata() [all …]
|
H A D | bej_decoder_json.cpp | 291 * @return true if the stack is empty. 295 std::vector<BejStackProperty>* stack = in stackEmpty() local 297 return stack->empty(); in stackEmpty() 304 * @return a const reference to the stack top. 308 std::vector<BejStackProperty>* stack = in stackPeek() local 310 if (stack->empty()) in stackPeek() 314 return &(stack->back()); in stackPeek() 318 * @brief Callback for stackPop. Remove the top element from the stack. 324 std::vector<BejStackProperty>* stack = in stackPop() local 326 if (stack->empty()) in stackPop() [all …]
|
/openbmc/libbej/include/libbej/ |
H A D | bej_encoder_json.hpp | 12 * @brief Callback for stackEmpty. Check if stack is empty 14 * @param[in] dataPtr - pointer to a valid stack of type std::vector<void*> 15 * @return true if the stack is empty. 21 * @brief Callback for stackPeek. Read the first element from the stack 23 * @param[in] dataPtr - pointer to a valid stack of type std::vector<void*> 24 * @return the value of first element in the stack 30 * @brief Callback for stackPop. Remove the top element from the stack. 32 * @param[in] dataPtr - pointer to a valid stack of type std::vector<void*> 33 * @return the value of first element in the stack 39 * @brief Callback for stackPush. Push a new element to the top of the stack. [all …]
|
H A D | bej_decoder_core.h | 26 * @brief These stack entries are needed to implement the decoding 137 * @brief Stack for holding BejStackProperty types. Decoder core is not 138 * responsible for creating or deleting stack memory. User of the decoder 139 * core is responsible for creating and deleting stack memory. 146 * @brief Return true if the stack is empty. 151 * @brief View the object at the top of the stack. If the stack is 157 * @brief Removes the top most object from the stack. Client of the 164 * @brief Push an object into the stack. Returns 0 if the operation is 194 * @param[in] stackCallback - callbacks for stack handlers. callbacks in 201 * @param[in] stackDataPtr - data pointer to pass to stack callbacks. This
|
H A D | bej_common.h | 182 * @brief Callbacks to a stack that can store pointers. 187 * @brief A context for the stack. 192 * @brief Return true if the stack is empty. 197 * @brief View the pointer at the top of the stack. If the stack is 203 * @brief Returns and removes the top most pointer from the stack. The 211 * @brief Push a pointer into the stack. Returns 0 if the operation is 218 * @brief Delete the stack.
|
/openbmc/openbmc-test-automation/lib/ |
H A D | call_stack.tcl | 3 # This file provides many valuable stack inquiry procedures like get_file_proc_names, get_stack_var… 34 # Starting with the caller's stack level, search upward in the call stack, for a variable named 54 # Starting with the caller's stack level, search upward in the call stack, for a variable named 55 …# "${var_name}" and return its associated stack level. If the variable cannot be found, return -1. 59 …# init_stack_ix The level of the stack where the search should start. The defau… 60 # which is the caller's stack level. 61 …# fail_on_err Indicates that if the variable cannot be found on the stack, thi… 73 append message " on the stack." 85 # Get the name of the procedure at the indicated call stack level and return it. 88 # level The call stack level: 0 would mean this procedure's level (i.e. [all …]
|
H A D | var_stack.py | 21 Define the variable stack class. 24 …the stack at a later time. The most obvious use for this is for saving variables that are to be r… 76 # Create a stack dictionary. 104 push the var_name/var_value pair onto the stack. 125 Pop the value for the given var_name from the stack and return it.
|
/openbmc/openbmc/poky/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/ |
H A D | 0001-lib-igt_aux.c-address-procps-4.0.5-compatibility.patch | 18 prcs->stack = procps_pids_get(prcs->info, PIDS_FETCH_TASKS_ONLY); 19 if (prcs->stack) { 20 - prcs->tid = PIDS_VAL(EU_PID, s_int, prcs->stack, prcs->info); 21 - prcs->euid = PIDS_VAL(EU_EUID, s_int, prcs->stack, prcs->info); 22 - prcs->egid = PIDS_VAL(EU_EGID, s_int, prcs->stack, prcs->info); 23 - prcs->comm = PIDS_VAL(EU_CMD, str, prcs->stack, prcs->info); 24 + prcs->tid = PIDS_VAL(EU_PID, s_int, prcs->stack); 25 + prcs->euid = PIDS_VAL(EU_EUID, s_int, prcs->stack); 26 + prcs->egid = PIDS_VAL(EU_EGID, s_int, prcs->stack); 27 + prcs->comm = PIDS_VAL(EU_CMD, str, prcs->stack);
|
/openbmc/qemu/include/system/ |
H A D | os-posix.h | 60 * @sz: pointer to a size_t holding the requested usable stack size 62 * Allocate memory that can be used as a stack, for instance for 65 * additional guard page to catch a potential stack overflow. 67 * and minimal stack size restrictions will increase the value of sz. 69 * The allocated stack must be freed with qemu_free_stack(). 71 * Returns: pointer to (the lowest address of) the stack memory. 77 * @stack: stack to free 78 * @sz: size of stack in bytes 80 * Free a stack allocated via qemu_alloc_stack(). Note that sz must 81 * be exactly the adjusted stack size returned by qemu_alloc_stack. [all …]
|
H A D | os-wasm.h | 63 * @sz: pointer to a size_t holding the requested usable stack size 65 * Allocate memory that can be used as a stack, for instance for 68 * additional guard page to catch a potential stack overflow. 70 * and minimal stack size restrictions will increase the value of sz. 72 * The allocated stack must be freed with qemu_free_stack(). 74 * Returns: pointer to (the lowest address of) the stack memory. 80 * @stack: stack to free 81 * @sz: size of stack in bytes 83 * Free a stack allocated via qemu_alloc_stack(). Note that sz must 84 * be exactly the adjusted stack size returned by qemu_alloc_stack. [all …]
|
/openbmc/qemu/util/ |
H A D | coroutine-ucontext.c | 21 /* XXX Is there a nicer way to disable glibc's stack check for longjmp? */ 47 void *stack; member 50 /* Need an unsafe stack for each coroutine */ 107 if (!leaderp->stack) { in finish_switch_fiber() 108 leaderp->stack = (void *)bottom_old; in finish_switch_fiber() 167 leaderp->stack, leaderp->stack_size); in coroutine_trampoline() 190 * preserve signal masks but only works on the current stack. in qemu_coroutine_new() 191 * Since we need a way to create and switch to a new stack, use in qemu_coroutine_new() 202 co->stack = qemu_alloc_stack(&co->stack_size); in qemu_coroutine_new() 210 uc.uc_stack.ss_sp = co->stack; in qemu_coroutine_new() [all …]
|
H A D | coroutine-sigaltstack.c | 24 /* XXX Is there a nicer way to disable glibc's stack check for longjmp? */ 38 void *stack; member 110 * This is used as the signal handler. This is called with the brand new stack 138 * into another function here to get a new stack context for in coroutine_trampoline() 161 /* The way to manipulate stack is with the sigaltstack function. We in qemu_coroutine_new() 162 * prepare a stack, with it delivering a signal to ourselves and then in qemu_coroutine_new() 172 co->stack = qemu_alloc_stack(&co->stack_size); in qemu_coroutine_new() 181 * later transfer control onto the signal stack. in qemu_coroutine_new() 200 * Set the new stack. in qemu_coroutine_new() 202 ss.ss_sp = co->stack; in qemu_coroutine_new() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/yajl/yajl/ |
H A D | CVE-2023-33460.patch | 13 ctx->stack = stack->next; 15 v = stack->value; 17 + free (stack->key); 18 free (stack); 25 + while(ctx.stack != NULL) {
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/geany/geany-plugins/ |
H A D | 0001-scope-Use-0-instead-of-NULL-for-gboolean.patch | 8 scope/src/stack.c:168:11: error: incompatible pointer to integer conversion initializing 'gboolean'… 16 scope/src/stack.c | 2 +- 19 diff --git a/scope/src/stack.c b/scope/src/stack.c 21 --- a/scope/src/stack.c 22 +++ b/scope/src/stack.c
|
/openbmc/qemu/qapi/ |
H A D | qobject-output-visitor.c | 36 QSLIST_HEAD(, QStackEntry) stack; /* Stack of unfinished containers */ 51 /* Push @value onto the stack of current QObjects being built */ 61 QSLIST_INSERT_HEAD(&qov->stack, e, node); in qobject_output_push_obj() 64 /* Pop a value off the stack of QObjects being built, and return it. */ 67 QStackEntry *e = QSLIST_FIRST(&qov->stack); in qobject_output_pop() 72 QSLIST_REMOVE_HEAD(&qov->stack, node); in qobject_output_pop() 80 * If the stack is visiting a dictionary or list, @value is now owned 85 QStackEntry *e = QSLIST_FIRST(&qov->stack); in qobject_output_add_obj() 231 assert(qov->root && QSLIST_EMPTY(&qov->stack)); in qobject_output_complete() 243 while (!QSLIST_EMPTY(&qov->stack)) { in qobject_output_free() [all …]
|
/openbmc/qemu/tests/functional/ |
H A D | test_aarch64_device_passthrough.py | 80 # https://github.com/pbo-linaro/qemu-linux-stack 102 stack = self.scratch_file('out') 103 kernel = os.path.join(stack, 'Image.gz') 104 rootfs_host = os.path.join(stack, 'host.ext4') 105 disk_vfio = os.path.join(stack, 'disk_vfio') 106 disk_iommufd = os.path.join(stack, 'disk_iommufd') 107 guest_cmd = os.path.join(stack, 'guest.sh') 108 nested_guest_cmd = os.path.join(stack, 'nested_guest.sh') 130 f'local,path={stack}/,mount_tag=host,'
|
/openbmc/qemu/linux-headers/asm-generic/ |
H A D | mman.h | 7 #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ 22 #define SHADOW_STACK_SET_TOKEN (1ULL << 0) /* Set up a restore token in the shadow stack */ 23 #define SHADOW_STACK_SET_MARKER (1ULL << 1) /* Set up a top of stack marker in the shadow stack…
|
/openbmc/qemu/bsd-user/aarch64/ |
H A D | target_arch_thread.h | 30 * Make sure the stack is properly aligned. in target_thread_set_upcall() 35 /* sp = stack base */ in target_thread_set_upcall() 48 abi_long stack = infop->start_stack; in target_thread_init() local 51 * Make sure the stack is properly aligned. in target_thread_init() 58 regs->sp = ROUND_DOWN(stack, 16); in target_thread_init()
|
/openbmc/u-boot/arch/arc/lib/ |
H A D | start.S | 73 /* Establish C runtime stack and frame */ 77 /* Allocate reserved area from current top of stack */ 80 /* Set stack below reserved area, adjust frame pointer accordingly */ 104 * void board_init_f_r_trampoline(stack-pointer address) 109 * r0 = new stack-pointer 112 /* Set up the stack- and frame-pointers */
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | bios_asm.S | 73 * Set up a stack: Put the stack at the end of page zero. That way 147 /* Preserve old stack */ 168 /* save all registers to the stack */ 197 /* restore stack pointer, eflags and register values and exit */ 205 /* save all registers to the stack and store the stack pointer */ 228 /* restore stack pointer, eflags and register values and exit */ 237 * Before this code code is called, %eax is pushed to the stack, and the 266 * correct parameters from the stack.
|
/openbmc/qemu/tests/tcg/multiarch/arm-compat-semi/ |
H A D | semihosting.c | 54 printf("null stack: %p -> %p\n", info.stack_base, info.stack_limit); in main() 58 /* check our local variables are indeed inside the reported stack */ in main() 60 printf("info appears to be above stack: %p > %p\n", ptr_to_info, in main() 64 printf("info appears to be outside stack: %p < %p\n", ptr_to_info, in main() 76 printf("stack: %p -> %p\n", info.stack_base, info.stack_limit); in main()
|
/openbmc/u-boot/arch/arm/include/asm/proc-armv/ |
H A D | processor.h | 50 unsigned long *stack = (unsigned long *)sp; \ 59 regs->ARM_r2 = stack[2]; /* r2 (envp) */ \ 60 regs->ARM_r1 = stack[1]; /* r1 (argv) */ \ 61 regs->ARM_r0 = stack[0]; /* r0 (argc) */ \ 69 * NOTE! The task struct and the stack go together
|
/openbmc/u-boot/arch/arm/lib/ |
H A D | vectors.S | 148 /* IRQ stack memory (calculated at run-time) + 8 bytes */ 158 @ IRQ stack frame. 191 @ carve out a frame on current user stack 197 add r0, sp, #S_FRAME_SIZE @ grab pointer to old stack 201 mov r0, sp @ save current stack into r0 (param register) 207 @ !!!! R8 NEEDS to be saved !!!! a reserved stack spot would be good. 226 ldr r13, IRQ_STACK_START_IN @ setup our mode stack 228 str lr, [r13] @ save caller lr in position 0 of saved stack 230 str lr, [r13, #4] @ save spsr in position 1 of saved stack 238 .macro get_irq_stack @ setup IRQ stack [all …]
|