Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 26) sorted by relevance

12

/system/utest/async/
A Dexception_tests.cpp20 .exception = {
38 last_exception = exception; in BindExceptionPort()
45 last_exception = exception; in UnbindExceptionPort()
68 last_exception = exception; in Handler()
73 virtual async::ExceptionBase& exception() = 0;
116 EXPECT_FALSE(harness.exception().is_bound()); in exception_is_bound_test()
118 EXPECT_TRUE(harness.exception().is_bound()); in exception_is_bound_test()
120 EXPECT_FALSE(harness.exception().is_bound()); in exception_is_bound_test()
229 async_exception_t exception{}; in unsupported_bind_test() local
241 async_exception_t exception{}; in unsupported_unbind_test() local
[all …]
/system/ulib/unittest/
A Dcrash-handler.cpp38 const zx_packet_exception_t* exception = &packet->exception; in process_exception() local
44 zx_handle_t process = crash_list_lookup_koid(crash_list, exception->pid); in process_exception()
48 thread = crash_list_lookup_koid(crash_list, exception->tid); in process_exception()
58 exception->pid, exception->tid, zx_status_get_string(status)); in process_exception()
66 exception->pid, exception->tid, zx_status_get_string(status)); in process_exception()
79 zx_handle_t match = crash_list_delete_koid(crash_list, exception->pid); in process_exception()
82 match = crash_list_delete_koid(crash_list, exception->tid); in process_exception()
90 exception->pid, exception->tid, packet->type); in process_exception()
111 exception->pid, exception->tid, zx_status_get_string(status)); in process_exception()
124 exception->pid, exception->tid, zx_status_get_string(status)); in process_exception()
[all …]
/system/ulib/async-testutils/
A Ddispatcher_stub.cpp43 async_exception_t* exception) { in stub_bind_exception_port() argument
44 return static_cast<DispatcherStub*>(dispatcher)->BindExceptionPort(exception); in stub_bind_exception_port()
48 async_exception_t* exception) { in stub_unbind_exception_port() argument
49 return static_cast<DispatcherStub*>(dispatcher)->UnbindExceptionPort(exception); in stub_unbind_exception_port()
53 async_exception_t* exception, in stub_resume_from_exception() argument
56 return static_cast<DispatcherStub*>(dispatcher)->ResumeFromException(exception, options); in stub_resume_from_exception()
116 zx_status_t DispatcherStub::BindExceptionPort(async_exception_t* exception) { in BindExceptionPort() argument
120 zx_status_t DispatcherStub::UnbindExceptionPort(async_exception_t* exception) { in UnbindExceptionPort() argument
124 zx_status_t DispatcherStub::ResumeFromException(async_exception_t* exception, in ResumeFromException() argument
/system/ulib/async/include/lib/async/
A Dexception.h18 async_exception_t* exception,
53 async_exception_t* exception);
65 async_exception_t* exception);
78 async_exception_t* exception,
A Ddispatcher.h107 async_exception_t* exception);
110 async_exception_t* exception);
113 async_exception_t* exception,
/system/ulib/async/
A Dops.c42 async_exception_t* exception) { in async_bind_exception_port() argument
45 return dispatcher->ops->v2.bind_exception_port(dispatcher, exception); in async_bind_exception_port()
49 async_exception_t* exception) { in async_unbind_exception_port() argument
52 return dispatcher->ops->v2.unbind_exception_port(dispatcher, exception); in async_unbind_exception_port()
56 async_exception_t* exception, in async_resume_from_exception() argument
61 return dispatcher->ops->v2.resume_from_exception(dispatcher, exception, task, options); in async_resume_from_exception()
A DREADME.md18 - [async/exception.h](include/lib/async/exception.h)
26 - [async/cpp/exception.h](include/lib/async/cpp/exception.h)
90 See [async/exception.h](include/lib/async/exception.h) for details.
99 status, exception ? exception->type : 0);
101 // ... process exception ...
116 exception->handler = handler;
117 exception->task = task;
118 exception->options = options;
121 *out_exception = exception;
123 free(exception);
[all …]
A Drules.mk24 $(LOCAL_INC)/exception.h \
50 $(LOCAL_DIR)/exception.cpp \
58 $(LOCAL_INC)/cpp/exception.h \
A Dexception.cpp68 async_exception_t* exception, in CallHandler() argument
71 auto self = Dispatch<Exception>(exception); in CallHandler()
/system/ulib/async/include/lib/async/cpp/
A Dexception.h34 static T* Dispatch(async_exception_t* exception) { in Dispatch() argument
36 auto self = reinterpret_cast<ExceptionBase*>(exception); in Dispatch()
85 async::Exception* exception,
94 async_exception_t* exception,
121 async_exception_t* exception, in CallHandler() argument
123 auto self = Dispatch<ExceptionMethod>(exception); in CallHandler()
/system/ulib/async-testutils/include/lib/async-testutils/
A Ddispatcher_stub.h28 virtual zx_status_t BindExceptionPort(async_exception_t* exception);
29 virtual zx_status_t UnbindExceptionPort(async_exception_t* exception);
30 virtual zx_status_t ResumeFromException(async_exception_t* exception,
/system/ulib/async-loop/
A Dloop.c140 return TO_NODE(async_exception_t, exception); in exception_to_node()
224 async_exception_t* exception = node_to_exception(node); in async_loop_shutdown() local
301 async_exception_t* exception = (void*)(uintptr_t)packet.key; in async_loop_run_once() local
417 exception->handler((async_dispatcher_t*)loop, exception, status, report); in async_loop_dispatch_exception()
641 ZX_DEBUG_ASSERT(exception); in async_loop_bind_exception_port()
648 uint64_t key = (uintptr_t)(void*) exception; in async_loop_bind_exception_port()
663 ZX_DEBUG_ASSERT(exception); in async_loop_unbind_exception_port()
672 list_node_t* node = exception_to_node(exception); in async_loop_unbind_exception_port()
678 uint64_t key = (uintptr_t)(void*) exception; in async_loop_unbind_exception_port()
679 zx_status_t status = zx_task_bind_exception_port(exception->task, in async_loop_unbind_exception_port()
[all …]
/system/fidl/fuchsia-crash/
A Dcrash.fidl25 // Requests that the crash analyzer handles the exception thrown by the
34 // |exception_port| is the port on which the exception was delivered and
41 // Requests that the crash analyzer handles the exception thrown in the
44 // The |language| might influenced how the exception message or stack trace
48 // a typical implementation might print the exception message and stack
52 string:MAX_EXCEPTION_MSG_LENGTH exception,
/system/utest/exception/
A Drules.mk11 MODULE_SRCS += $(LOCAL_DIR)/exception.c
13 MODULE_NAME := exception-test
A Dexception.c169 packet->exception.pid, packet->exception.tid, packet->type); in read_packet()
186 EXPECT_EQ(pid, packet->exception.pid, ""); in verify_exception()
217 *tid = packet.exception.tid; in read_and_verify_exception()
297 if (packet.exception.tid == tid) in wait_process_exit_from_debugger()
834 zx_koid_t packet_pid = start_packet.exception.pid; in job_debug_handler_test_helper()
835 zx_koid_t packet_tid = start_packet.exception.tid; in job_debug_handler_test_helper()
851 packet_pid = start_packet.exception.pid; in job_debug_handler_test_helper()
852 packet_tid = start_packet.exception.tid; in job_debug_handler_test_helper()
985 zx_koid_t packet_pid = start_packet.exception.pid; in packet_pid_test()
986 zx_koid_t packet_tid = start_packet.exception.tid; in packet_pid_test()
[all …]
/system/core/svchost/
A Dcrashsvc.cpp89 if (!FindProcess(ctx.root_job, packet.exception.pid, &process)) { in HandOffException()
90 fprintf(stderr, "crashsvc: failed to find process for pid=%zu\n", packet.exception.pid); in HandOffException()
95 if (process.get_child(packet.exception.tid, ZX_RIGHT_SAME_RIGHTS, &thread) != ZX_OK) { in HandOffException()
96 fprintf(stderr, "crashsvc: failed to find thread for tid=%zu\n", packet.exception.tid); in HandOffException()
/system/public/zircon/syscalls/
A Dport.h144 zx_packet_exception_t exception; member
/system/utest/async-loop/
A Dloop_tests.cpp343 if (report && report->exception.tid != test_thread_tid_) { in Handle()
344 ResumeTryNext(report->exception.tid); in Handle()
965 EXPECT_EQ(self_pid, thread_exception.last_report->exception.pid); in exception_test()
966 EXPECT_EQ(crashing_tid, thread_exception.last_report->exception.tid); in exception_test()
985 EXPECT_EQ(self_pid, process_exception.last_report->exception.pid); in exception_test()
986 EXPECT_EQ(crashing_tid, process_exception.last_report->exception.tid); in exception_test()
1007 TestThreadException exception(loop.dispatcher(), zx_process_self(), 0); in exception_shutdown_test() local
1008 EXPECT_EQ(ZX_ERR_BAD_STATE, exception.Bind()); in exception_shutdown_test()
/system/utest/policy/
A Djob-policy.cpp306 ASSERT_EQ(packet.exception.pid, pid); in TestInvokingPolicyWithException()
307 ASSERT_EQ(packet.exception.tid, tid); in TestInvokingPolicyWithException()
/system/utest/debugger/
A Ddebugger.cpp210 zx_koid_t tid = packet->exception.tid; in handle_thread_exiting()
255 zx_koid_t tid = packet->exception.tid; in handle_expected_page_fault()
303 zx_koid_t tid = packet->exception.tid; in debugger_test_exception_handler()
926 zx_koid_t pkt_tid = packet->exception.tid; in suspended_in_exception_handler()
A Dutils.cpp442 zx_koid_t report_tid = packet.exception.tid; in wait_thread_suspended()
/system/fidl/fuchsia-device-manager/
A Dcoordinator.fidl58 /// a shadowed device. The one exception is when this method is used
/system/ulib/fit/
A DREADME.md64 FIT is not exception safe (but could be made to be in the future).
/system/utest/core/threads/
A Dthreads.cpp52 EXPECT_EQ(packet->exception.pid, pid); in check_reported_pid_and_tid()
53 EXPECT_EQ(packet->exception.tid, tid); in check_reported_pid_and_tid()
/system/public/zircon/
A Dsyscalls.abigen443 #^ Bind to, or unbind from, the exception port corresponding to a given job, process, or thread.
462 #^ resume the given task after an exception has been reported

Completed in 51 milliseconds

12