3,39 → 3,6 |
#include <ipc/ipc.h> |
#include "../tester.h" |
|
const char *syscall_name[] = { |
"sys_io", |
"sys_tls_set", |
"sys_thread_create", |
"sys_thread_exit", |
"sys_thread_get_id", |
"sys_task_get_id", |
"sys_futex_sleep_timeout", |
"sys_futex_wakeup", |
"sys_as_area_create", |
"sys_as_area_resize", |
"sys_as_area_destroy", |
"sys_ipc_call_sync_fast", |
"sys_ipc_call_sync_slow", |
"sys_ipc_call_async_fast", |
"sys_ipc_call_async_slow", |
"sys_ipc_answer_fast", |
"sys_ipc_answer_slow", |
"sys_ipc_forward_fast", |
"sys_ipc_wait_for_call", |
"sys_ipc_hangup", |
"sys_ipc_register_irq", |
"sys_ipc_unregister_irq", |
"sys_cap_grant", |
"sys_cap_revoke", |
"sys_physmem_map", |
"sys_iospace_enable", |
"sys_preempt_control", |
"sys_sysinfo_valid", |
"sys_sysinfo_value", |
"sys_debug_enable_console", |
"sys_ipc_connect_task" |
}; |
|
char * test_debug1(bool quiet) |
{ |
66,8 → 33,8 |
rc = ipc_call_sync_3_1(phoneid, IPC_M_DEBUG_ARGS_READ, NULL, |
sc_args, 6 * sizeof(unsigned), &copied); |
if (rc >= 0) { |
printf("%s[%d](%u, %u, %u, %u, %u, %u) -> %d\n", |
syscall_name[sc_id], sc_id, |
printf("id %u(%u, %u, %u, %u, %u, %u) -> %d\n", |
sc_id, |
sc_args[0], sc_args[1], sc_args[2], |
sc_args[3], sc_args[4], sc_args[5], |
sc_rc); |