/trusty/kernel/lib/backtrace/ |
D | backtrace.c | 84 static bool is_on_user_stack(struct thread* _thread, uintptr_t addr); 85 static bool is_on_kernel_stack(struct thread* thread, uintptr_t addr); 87 static void print_stack_address(struct thread* thread, uintptr_t addr) { in print_stack_address() argument 95 if (is_on_user_stack(thread, addr)) { in print_stack_address() 96 struct trusty_thread* trusty_thread = trusty_thread_get(thread); in print_stack_address() 103 if (is_on_kernel_stack(thread, addr)) { in print_stack_address() 104 printf("kSP+0x%" PRI0xSTKOFF "x", addr - (uintptr_t)thread->stack); in print_stack_address() 119 static void print_function_info(struct thread* thread, in print_function_info() argument 127 print_stack_address(thread, frame->frame_addr); in print_function_info() 147 static void dump_user_function(struct thread* thread, in dump_user_function() argument [all …]
|
/trusty/kernel/app/memorytest/ |
D | memorytest.c | 104 struct thread* thread[MEMORYTEST_CONCURRENT_ALLOCATION_THREADS]; in TEST() local 105 for (size_t i = 0; i < countof(thread); i++) { in TEST() 106 thread[i] = thread_create("memorytest", memorytest_alloc_thread, in TEST() 109 ASSERT_NE(0, thread[i]); in TEST() 111 for (size_t i = 0; i < countof(thread); i++) { in TEST() 112 ASSERT_EQ(0, thread_resume(thread[i])); in TEST() 119 for (size_t i = 0; i < countof(thread); i++) { in TEST() 121 ASSERT_EQ(0, thread_join(thread[i], &retcode, INFINITE_TIME)); in TEST()
|
/trusty/kernel/app/busytest/ |
D | busytest.c | 88 thread_t* thread; in busy_test_init() local 102 thread = thread_create("busy-test-server", busy_test_server, phandle, in busy_test_init() 104 if (!thread) { in busy_test_init() 108 thread_resume(thread); in busy_test_init() 131 thread_t* thread; in busy_test_cpu_init() local 135 thread = thread_create(thread_name, busy_test_busy_func, NULL, LOW_PRIORITY, in busy_test_cpu_init() 138 thread->pinned_cpu = cpu; in busy_test_cpu_init() 140 thread_resume(thread); in busy_test_cpu_init()
|
/trusty/kernel/app/smptest/ |
D | smptest.c | 36 thread_t* thread; member 46 static bool thread_is_blocked(volatile thread_t* thread) { in thread_is_blocked() argument 47 return thread->state == THREAD_BLOCKED; in thread_is_blocked() 93 thread_t* next = smptest_thread[next_cpu].thread; in smptest_thread_func() 121 if (!thread_is_blocked(smptest_thread[i].thread)) { in TEST() 138 thread_is_blocked(smptest_thread[i].thread), in TEST() 159 if (thread_is_blocked(smptest_thread[0].thread)) { in TEST() 160 thread_unblock(smptest_thread[0].thread, false); in TEST() 220 smpt->thread = thread_create(thread_name, smptest_thread_func, in smptest_setup() 223 thread_set_pinned_cpu(smpt->thread, cpu); in smptest_setup() [all …]
|
/trusty/kernel/app/fptest/ |
D | fptest.c | 56 thread_t* thread; in fptest_init() local 60 thread = thread_create(thread_name, fptest, (void*)(uintptr_t)i, in fptest_init() 62 thread->pinned_cpu = cpu; in fptest_init() 63 thread_resume(thread); in fptest_init()
|
/trusty/kernel/lib/backtrace/include/lib/backtrace/ |
D | backtrace.h | 82 void dump_thread_backtrace(struct thread* thread);
|
/trusty/kernel/lib/libc-trusty/include/trusty/ |
D | libc_state.h | 24 typedef struct thread thread_t;
|
/trusty/kernel/app/userscstest/ |
D | userscstest.c | 110 ASSERT_NE((void*)ta->thread, NULL, "App has thread"); in trusty_app_callback() 111 ASSERT_EQ((void*)ta->thread->shadow_stack_base, NULL, in trusty_app_callback() 133 struct trusty_thread* tt = ta->thread; in trusty_app_callback()
|
/trusty/kernel/lib/ktipc/include/lib/ktipc/ |
D | ktipc.h | 36 struct thread* thread; member 49 .name = (nm), .hset = NULL, .thread = NULL, \ 67 ksrv->thread = NULL; in ktipc_server_init()
|
/trusty/kernel/lib/ktipc/ |
D | ktipc.c | 383 DEBUG_ASSERT(!ksrv->thread); in ktipc_server_start() 385 ksrv->thread = thread_create(ksrv->name, ksrv_thread, ksrv, in ktipc_server_start() 387 if (!ksrv->thread) { in ktipc_server_start() 391 thread_resume(ksrv->thread); in ktipc_server_start()
|
/trusty/user/app/sample/stats-test/ |
D | README.md | 41 …st, relayer: on Trusty, binder async callbacks are not yet supported<br/>(single-thread limitation) 80 participant test as GTest<br/>parent thread<br/>(Normal World) 81 participant consumer as Consumer<br/>forked thread<br/>(Normal World) 85 test->>consumer: fork thread and share atom buffer
|
/trusty/kernel/lib/trusty/include/lib/trusty/ |
D | trusty_app.h | 145 thread_t* thread; member 163 struct trusty_thread* thread; member
|
/trusty/user/base/lib/libstdc++-trusty/ |
D | rules.mk | 65 $(LIBCXX_DIR)/src/thread.cpp \
|
/trusty/kernel/app/mmutest/ |
D | mmutest.c | 48 struct thread* thread; in mmutest_run_in_thread() local 52 thread = thread_create("mmu_test_execute", func, arg, DEFAULT_PRIORITY, in mmutest_run_in_thread() 54 if (!thread) { in mmutest_run_in_thread() 58 canary = (uint8_t*)thread->stack - PAGE_SIZE * 2; in mmutest_run_in_thread() 68 thread_set_flag_exit_on_panic(thread, true); in mmutest_run_in_thread() 69 ret = thread_resume(thread); in mmutest_run_in_thread() 74 ret = thread_join(thread, &thread_ret, INFINITE_TIME); in mmutest_run_in_thread()
|
/trusty/kernel/lib/trusty/ |
D | trusty_app.c | 528 DEBUG_ASSERT(trusty_thread && trusty_thread->thread); in trusty_thread_start() 530 return thread_resume(trusty_thread->thread); in trusty_thread_start() 605 trusty_thread->thread = thread_create(name, trusty_thread_startup, NULL, in trusty_thread_create() 607 if (!trusty_thread->thread) in trusty_thread_create() 626 thread_tls_set(trusty_thread->thread, TLS_ENTRY_TRUSTY, in trusty_thread_create() 631 thread_set_pinned_cpu(trusty_thread->thread, pinned_cpu); in trusty_thread_create() 1760 trusty_app->thread = trusty_thread; in trusty_app_start() 1763 ret = trusty_thread_start(trusty_app->thread); in trusty_app_start() 1912 ret = thread_join(app->thread->thread, &retcode, INFINITE_TIME); in app_mgr_handle_terminating() 1914 free(app->thread); in app_mgr_handle_terminating() [all …]
|
/trusty/kernel/lib/libcxx-trusty/include/ |
D | __external_threading | 27 #include <kernel/thread.h> 149 // Returns non-zero if the thread ids are equal, otherwise 0
|
/trusty/user/base/lib/libc-trusty/ |
D | rules.mk | 314 $(MUSL_DIR)/src/thread/__lock.c \ 315 $(MUSL_DIR)/src/thread/__wait.c \ 316 $(MUSL_DIR)/src/thread/default_attr.c \ 317 $(MUSL_DIR)/src/thread/pthread_once.c \ 318 $(MUSL_DIR)/src/thread/pthread_cleanup_push.c \
|
/trusty/vendor/google/aosp/scripts/ |
D | test-map | 468 # trusty thread priority or the high-priority workqueue setting
|