/openbmc/qemu/gdb-xml/ |
H A D | hexagon-core.xml | 19 …<reg name="r00" altname="r0" bitsize="32" offset="0" encoding="uint" format="hex" group="Thread … 20 …<reg name="r01" altname="r1" bitsize="32" offset="4" encoding="uint" format="hex" group="Thread … 21 …<reg name="r02" altname="r2" bitsize="32" offset="8" encoding="uint" format="hex" group="Thread … 22 …<reg name="r03" altname="r3" bitsize="32" offset="12" encoding="uint" format="hex" group="Thread … 23 …<reg name="r04" altname="r4" bitsize="32" offset="16" encoding="uint" format="hex" group="Thread … 24 …<reg name="r05" altname="r5" bitsize="32" offset="20" encoding="uint" format="hex" group="Thread … 25 …<reg name="r06" altname="r6" bitsize="32" offset="24" encoding="uint" format="hex" group="Thread … 26 …<reg name="r07" altname="r7" bitsize="32" offset="28" encoding="uint" format="hex" group="Thread … 27 …<reg name="r08" altname="r8" bitsize="32" offset="32" encoding="uint" format="hex" group="Thread … 28 …<reg name="r09" altname="r9" bitsize="32" offset="36" encoding="uint" format="hex" group="Thread … [all …]
|
/openbmc/qemu/tests/tcg/multiarch/gdbstub/ |
H A D | interrupt.py | 14 def check_interrupt(thread): argument 16 Check that, if thread is resumed, we go back to the same thread when the 20 # Switch to the thread we're going to be running the test in. 21 print("thread ", thread.num) 22 gdb.execute("thr %d" % thread.num) 24 # Enter the loop() function on this thread. 40 # Check whether the thread we're in after the interruption is the same we 42 return (thread.num == gdb.selected_thread().num) 47 Test if interrupting the code always lands us on the same thread when 51 print("SKIP: set to run on a single thread") [all …]
|
/openbmc/qemu/io/ |
H A D | task.c | 24 #include "qemu/thread.h" 47 struct QIOTaskThreadData *thread; member 76 if (task->thread) { in qio_task_free() 77 if (task->thread->destroy) { in qio_task_free() 78 task->thread->destroy(task->thread->opaque); in qio_task_free() 81 if (task->thread->context) { in qio_task_free() 82 g_main_context_unref(task->thread->context); in qio_task_free() 85 g_free(task->thread); in qio_task_free() 124 task->thread->worker(task, task->thread->opaque); in qio_task_thread_worker() 126 /* We're running in the background thread, and must only in qio_task_thread_worker() [all …]
|
/openbmc/qemu/migration/ |
H A D | threadinfo.c | 28 MigrationThread *thread = g_new0(MigrationThread, 1); in migration_threads_add() local 29 thread->name = name; in migration_threads_add() 30 thread->thread_id = thread_id; in migration_threads_add() 33 QLIST_INSERT_HEAD(&migration_threads, thread, node); in migration_threads_add() 36 return thread; in migration_threads_add() 39 void migration_threads_remove(MigrationThread *thread) in migration_threads_remove() argument 42 if (thread) { in migration_threads_remove() 43 QLIST_REMOVE(thread, node); in migration_threads_remove() 44 g_free(thread); in migration_threads_remove() 52 MigrationThread *thread = NULL; in qmp_query_migrationthreads() local [all …]
|
H A D | migration.h | 21 #include "qemu/thread.h" 100 * Used to sync thread creations. Note that we can't create threads in 105 * Free at the start of the main state load, set as the main thread finishes 116 /* Set this when we want the fault thread to quit */ 140 /* QEMUFile for postcopy only; it'll be handled by a separate thread */ 148 /* Postcopy priority thread is used to receive postcopy requested pages */ 151 * Always set by the main vm load thread only, but can be read by the 152 * postcopy preempt thread. "volatile" makes sure all reads will be 157 * Used to sync between the ram load main thread and the fast ram load 158 * thread. It protects postcopy_qemufile_dst, which is the postcopy [all …]
|
/openbmc/openbmc/meta-raspberrypi/recipes-graphics/userland/files/ |
H A D | 0001-Allow-applications-to-set-next-resource-handle.patch | 24 @@ -685,6 +685,7 @@ static INLINE void rpc_call12_out_ctrl(CLIENT_THREAD_STATE_T *thread,uint32_t id 25 …thread,uint32_t id, uint32_t p0, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4, uint32_t p5, … 26 …thread,uint32_t id, uint32_t p0, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4, uint32_t p5, … 27 …thread,uint32_t id, uint32_t p0, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4, uint32_t p5, … 28 …thread,uint32_t id, uint32_t p0, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4, uint32_t p5, … 31 …#define RPC_CALL1_OUT_CTRL(fn, thread, id, out) rpc_… 32 @@ -702,6 +703,7 @@ static INLINE void rpc_call15_out_ctrl(CLIENT_THREAD_STATE_T *thread,uint32_t id 33 …ne RPC_CALL13_OUT_CTRL(fn, thread, id, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, out) … 34 …ne RPC_CALL14_OUT_CTRL(fn, thread, id, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, out)… 35 … RPC_CALL15_OUT_CTRL(fn, thread, id, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, o… [all …]
|
/openbmc/qemu/target/hexagon/imported/mmvec/ |
H A D | macros.def | 171 (mmvec_current_veclogsize(thread)), 204 warn("aligning misaligned vector. PC=%08x EA=%08x",thread->Regs[REG_PC],(EA)); 210 mem_vector_scatter_init(thread, insn, REGION_START, LENGTH, ELEMENT_SIZE); 218 mem_vector_gather_init(thread, insn, REGION_START, LENGTH, ELEMENT_SIZE); 227 mem_vector_scatter_finish(thread, insn, OP); 235 mem_vector_gather_finish(thread, insn); 244 paddr_t pa = thread->mem_access[slot].paddr+OFFSET; 246 FLAG = (pa < (thread->mem_access[slot].paddr+LENGTH)); 277 paddr_t pa = thread->mem_access[slot].paddr+(OFFSET & ~(ALIGNMENT-1)); 278 paddr_t pa_high = thread->mem_access[slot].paddr+LEN; [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | thread-context.h | 2 * QEMU Thread Context 17 #include "qemu/thread.h" 20 #define TYPE_THREAD_CONTEXT "thread-context" 34 QemuThread thread; member 36 /* Semaphore to wait for context thread action. */ 38 /* Semaphore to wait for action in context thread. */ 43 /* Commands for the thread to execute. */ 52 void thread_context_create_thread(ThreadContext *tc, QemuThread *thread,
|
H A D | coroutine-tls.h | 2 * QEMU Thread Local Storage for coroutines 11 * It is forbidden to access Thread Local Storage in coroutines because 13 * re-entry. Coroutines can run in more than one thread through the course of 14 * their life, leading bugs when stale TLS values from the wrong thread are 31 * This header provides macros for safely defining variables in Thread Local 69 * Declare an extern variable in Thread Local Storage from a header file: 72 * :caption: Declaring an extern variable in Thread Local Storage 102 * Define a variable in Thread Local Storage that was previously declared from 106 * :caption: Defining a variable in Thread Local Storage 130 * Define a static variable in Thread Local Storage: [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.sched | 16 - There are NO primitives for thread synchronization (locking, 19 - Only the GPRs and FPRs context is saved during a thread context 30 - There are NO capabilities to collect thread CPU usage, scheduler 31 stats, thread status etc. 39 - The stack size of each thread is 8KBytes. This can be easily 43 - Only one master/parent thread is allowed, and it cannot be 44 stopped or deleted. Any given thread is NOT allowed to stop or 51 thread may thread_join, preferably the master/parent thread.
|
/openbmc/u-boot/drivers/mailbox/ |
H A D | k3-sec-proxy.c | 19 /* SEC PROXY RT THREAD STATUS */ 27 /* SEC PROXY SCFG THREAD CTRL */ 40 * @data_start_offset: Offset of the First data register of the thread 41 * @data_end_offset: Offset of the Last data register of the thread 55 * struct k3_sec_proxy_thread - Description of a secure proxy Thread 56 * @id: Thread ID 57 * @data: Thread Data path region for target 58 * @scfg: Secure Config Region for Thread 59 * @rt: RealTime Region for Thread 74 * @chans: Array for valid thread instances [all …]
|
/openbmc/qemu/util/ |
H A D | thread-context.c | 2 * QEMU Thread Context 14 #include "qemu/thread-context.h" 35 QemuThread *thread; member 51 * Threads inherit the CPU affinity of the creating thread. For this in thread_context_run() 53 * persistent context thread. in thread_context_run() 56 * management tools can simply set the affinity of the context thread in thread_context_run() 70 qemu_thread_create(cmd_new->thread, cmd_new->name, in thread_context_run() 118 * Note: we won't be adjusting the affinity of any thread that is still in thread_context_set_cpu_affinity() 119 * around, but only the affinity of the context thread. in thread_context_set_cpu_affinity() 121 ret = qemu_thread_set_affinity(&tc->thread, bitmap, nbits); in thread_context_set_cpu_affinity() [all …]
|
H A D | qemu-thread-posix.c | 2 * Wrappers around mutex/cond/thread functions 14 #include "qemu/thread.h" 17 #include "qemu-thread-common.h" 36 fprintf(stderr, "qemu: thread naming not supported on this host\n"); in qemu_thread_naming() 323 * Note that in this implementation you can register a thread-exit 324 * notifier for the main thread, but it will never be called. 325 * This is OK because main thread exit can only happen when the 342 * Called when non-main thread exits (via qemu_thread_exit() in qemu_thread_atexit_notify() 380 * qemu-thread-posix.c:540:5: error: ‘__sigsetjmp’ accessing 656 bytes in qemu_thread_start() 401 void qemu_thread_create(QemuThread *thread, const char *name, in qemu_thread_create() argument [all …]
|
H A D | qemu-thread-win32.c | 2 * Win32 implementation for mutex/cond/thread functions 15 #include "qemu/thread.h" 17 #include "qemu-thread-common.h" 52 fprintf(stderr, "qemu: thread naming not supported on this host\n"); in qemu_thread_naming() 302 void *qemu_thread_join(QemuThread *thread) in qemu_thread_join() argument 308 data = thread->data; in qemu_thread_join() 320 handle = qemu_thread_get_handle(thread); in qemu_thread_join() 350 void qemu_thread_create(QemuThread *thread, const char *name, in qemu_thread_create() argument 369 data, 0, &thread->tid); in qemu_thread_create() 374 fprintf(stderr, "qemu: failed to set thread description: %s\n", name); in qemu_thread_create() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/openhpi/files/ |
H A D | 0001-include-iostream-for-cout.patch | 9 plugins/dynamic_simulator/thread.cpp:241:3: error: 'cout' was not declared in this scope 17 plugins/dynamic_simulator/thread.cpp | 4 ++-- 20 diff --git a/plugins/dynamic_simulator/thread.cpp b/plugins/dynamic_simulator/thread.cpp 22 --- a/plugins/dynamic_simulator/thread.cpp 23 +++ b/plugins/dynamic_simulator/thread.cpp 27 #include "thread.h"
|
/openbmc/qemu/include/ |
H A D | qemu-main.h | 9 * The function to run on the main (initial) thread of the process. 12 * thread, after which the provided function pointer will be invoked on 13 * the initial thread. 14 * This is useful on platforms which treat the main thread as special 16 * thread. Those platforms can initialise it to a specific function, 18 * will handle system and UI events on the main thread via QEMU's own main
|
/openbmc/qemu/include/block/ |
H A D | thread-pool.h | 2 * QEMU block layer thread pool 33 * thread_pool_submit_{aio,co} API: submit I/O requests in the thread's 42 /* Generic thread pool types and methods below */ 45 /* Create a new thread pool. Never returns NULL. */ 49 * Free the thread pool. 66 * processed immediately, launching a new thread for it if necessary. 77 * Can be used as a barrier between two sets of tasks executed on a thread 89 * own thread (exactly one thread per task).
|
/openbmc/qemu/crypto/ |
H A D | pbkdf.c | 22 #include "qemu/thread.h" 44 error_setg(errp, "Unable to get thread CPU usage"); in qcrypto_pbkdf2_get_thread_cpu() 55 mach_port_t thread; in qcrypto_pbkdf2_get_thread_cpu() 60 thread = mach_thread_self(); in qcrypto_pbkdf2_get_thread_cpu() 62 kr = thread_info(thread, THREAD_BASIC_INFO, (thread_info_t)&info, &count); in qcrypto_pbkdf2_get_thread_cpu() 63 mach_port_deallocate(mach_task_self(), thread); in qcrypto_pbkdf2_get_thread_cpu() 65 error_setg_errno(errp, errno, "Unable to get thread CPU usage"); in qcrypto_pbkdf2_get_thread_cpu() 75 error_setg_errno(errp, errno, "Unable to get thread CPU usage"); in qcrypto_pbkdf2_get_thread_cpu() 84 error_setg(errp, "Unable to calculate thread CPU usage on this platform"); in qcrypto_pbkdf2_get_thread_cpu() 176 QemuThread thread; in qcrypto_pbkdf2_count_iters() local [all …]
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-eventlet/ |
H A D | d19ad6cc086684ee74db250f5fd35227c98e678a.patch | 4 Subject: [PATCH] Add new thread attributes from Python 3.13 10 eventlet/green/thread.py | 7 +++++++ 13 diff --git a/eventlet/green/thread.py b/eventlet/green/thread.py 15 --- a/eventlet/green/thread.py 16 +++ b/eventlet/green/thread.py
|
/openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
H A D | commands.py | 89 # We write in a separate thread because then we can read 90 # without worrying about deadlocks. The additional thread is 94 # kill the write thread. 96 thread = threading.Thread(target=writeThread, daemon=True) 97 thread.start() 98 self.threads.append(thread) 100 thread = threading.Thread(target=readStderrThread) 101 thread.start() 102 self.threads.append(thread) 105 thread = threading.Thread(target=readStdoutThread) [all …]
|
/openbmc/qemu/hw/9pfs/ |
H A D | coth.h | 18 #include "qemu/thread.h" 26 * 1. Yield the coroutine in the QEMU thread. 27 * 2. Submit the coroutine to a worker thread. 28 * 3. Enter the coroutine in the worker thread. 29 * we cannot swap step 1 and 2, because that would imply worker thread 38 * fs driver request on a background I/O thread (bottom half) in one rush 40 * on main I/O thread (top half). 49 * yield in qemu thread and re-enter back \ 50 * in worker thread \ 57 /* re-enter back to qemu thread */ \
|
/openbmc/qemu/docs/devel/migration/ |
H A D | dirty-limit.rst | 13 main --------------> throttle thread ------------> PREPARE(1) <-------- 14 thread \ | | 25 -> virtual CPU thread -------> ACCEPT PENALTY(4) 29 the QEMU main thread starts the throttle thread. The throttle thread, once 59 After completing the three above stages, the throttle thread loops back 62 On the other hand, each virtual CPU thread reads the sleep duration and
|
/openbmc/qemu/scripts/qemugdb/ |
H A D | tcg.py | 24 gdb.write("Thread, BQL (iothread_mutex), Replay, Blocked?\n") 25 for thread in gdb.inferiors()[0].threads(): 26 thread.switch() 41 gdb.write("%d/%d, %s, %s, %s\n" % (thread.num, thread.ptid[1],
|
/openbmc/openbmc/meta-yadro/meta-nicole/recipes-phosphor/host/op-proc-control/ |
H A D | 0001-Stop-and-send-SRESET-for-one-thread-only.patch | 4 Subject: [PATCH] Stop and send SRESET for one thread only 9 [ 163.237293219,3] Could not stop thread 0:0:1: Thread is quiesced already. 34 pdbg_for_each_class_target("thread", target) 47 + log<level::ERR>("Thread not found"); 54 + log<level::ERR>("Failed to sreset thread");
|
/openbmc/qemu/nbd/ |
H A D | client-connection.c | 49 * @sioc represents a successful result. While thread is running, @sioc is 50 * used only by thread and not protected by mutex. When thread is not 62 bool running; /* thread is running now */ 63 bool detached; /* thread is detached and should cleanup the state */ 127 * may be cancelled from other thread by simply qio_channel_shutdown(sioc). 280 * if the thread is running, wait for completion 281 * if the thread already succeeded in the background, and user didn't get the 283 * otherwise the thread is not running, so start a thread and wait for 286 * If @blocking is false, don't wait for the thread, return immediately. 298 QemuThread thread; in nbd_co_establish_connection() local [all …]
|