Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 18 of 18) sorted by relevance

/trusty/kernel/lib/backtrace/
Dbacktrace.c84 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/
Dmemorytest.c104 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/
Dbusytest.c88 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/
Dsmptest.c36 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/
Dfptest.c56 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/
Dbacktrace.h82 void dump_thread_backtrace(struct thread* thread);
/trusty/kernel/lib/libc-trusty/include/trusty/
Dlibc_state.h24 typedef struct thread thread_t;
/trusty/kernel/app/userscstest/
Duserscstest.c110 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/
Dktipc.h36 struct thread* thread; member
49 .name = (nm), .hset = NULL, .thread = NULL, \
67 ksrv->thread = NULL; in ktipc_server_init()
/trusty/kernel/lib/ktipc/
Dktipc.c383 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/
DREADME.md41 …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/
Dtrusty_app.h145 thread_t* thread; member
163 struct trusty_thread* thread; member
/trusty/user/base/lib/libstdc++-trusty/
Drules.mk65 $(LIBCXX_DIR)/src/thread.cpp \
/trusty/kernel/app/mmutest/
Dmmutest.c48 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/
Dtrusty_app.c528 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_threading27 #include <kernel/thread.h>
149 // Returns non-zero if the thread ids are equal, otherwise 0
/trusty/user/base/lib/libc-trusty/
Drules.mk314 $(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/
Dtest-map468 # trusty thread priority or the high-priority workqueue setting