Rev 2805 | Rev 2807 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2805 | Rev 2806 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include <stdio.h> |
1 | #include <stdio.h> |
2 | #include <unistd.h> |
2 | #include <unistd.h> |
3 | #include <ipc/ipc.h> |
3 | #include <ipc/ipc.h> |
4 | #include "../tester.h" |
4 | #include "../tester.h" |
5 | 5 | ||
- | 6 | const char *syscall_name[] = { |
|
- | 7 | "sys_io", |
|
- | 8 | "sys_tls_set", |
|
- | 9 | "sys_thread_create", |
|
- | 10 | "sys_thread_exit", |
|
- | 11 | "sys_thread_get_id", |
|
- | 12 | "sys_task_get_id", |
|
- | 13 | "sys_futex_sleep_timeout", |
|
- | 14 | "sys_futex_wakeup", |
|
- | 15 | "sys_as_area_create", |
|
- | 16 | "sys_as_area_resize", |
|
- | 17 | "sys_as_area_destroy", |
|
- | 18 | "sys_ipc_call_sync_fast", |
|
- | 19 | "sys_ipc_call_sync_slow", |
|
- | 20 | "sys_ipc_call_async_fast", |
|
- | 21 | "sys_ipc_call_async_slow", |
|
- | 22 | "sys_ipc_answer_fast", |
|
- | 23 | "sys_ipc_answer_slow", |
|
- | 24 | "sys_ipc_forward_fast", |
|
- | 25 | "sys_ipc_wait_for_call", |
|
- | 26 | "sys_ipc_hangup", |
|
- | 27 | "sys_ipc_register_irq", |
|
- | 28 | "sys_ipc_unregister_irq", |
|
- | 29 | "sys_cap_grant", |
|
- | 30 | "sys_cap_revoke", |
|
- | 31 | "sys_physmem_map", |
|
- | 32 | "sys_iospace_enable", |
|
- | 33 | "sys_preempt_control", |
|
- | 34 | "sys_sysinfo_valid", |
|
- | 35 | "sys_sysinfo_value", |
|
- | 36 | "sys_debug_enable_console", |
|
- | 37 | "sys_ipc_connect_task" |
|
- | 38 | }; |
|
6 | 39 | ||
7 | char * test_debug1(bool quiet) |
40 | char * test_debug1(bool quiet) |
8 | { |
41 | { |
9 | int taskid; |
42 | int taskid; |
10 | int rc; |
43 | int rc; |
Line 31... | Line 64... | ||
31 | rc = ipc_call_sync_0_3(phoneid, IPC_M_DEBUG_GO, &ev_type, |
64 | rc = ipc_call_sync_0_3(phoneid, IPC_M_DEBUG_GO, &ev_type, |
32 | &sc_id, &sc_rc); |
65 | &sc_id, &sc_rc); |
33 | rc = ipc_call_sync_3_1(phoneid, IPC_M_DEBUG_ARGS_READ, NULL, |
66 | rc = ipc_call_sync_3_1(phoneid, IPC_M_DEBUG_ARGS_READ, NULL, |
34 | sc_args, 6 * sizeof(unsigned), &copied); |
67 | sc_args, 6 * sizeof(unsigned), &copied); |
35 | if (rc >= 0) { |
68 | if (rc >= 0) { |
36 | printf("id %u(%u, %u, %u, %u, %u, %u) -> %d\n", |
69 | printf("%s[%d](%u, %u, %u, %u, %u, %u) -> %d\n", |
37 | sc_id, |
70 | syscall_name[sc_id], sc_id, |
38 | sc_args[0], sc_args[1], sc_args[2], |
71 | sc_args[0], sc_args[1], sc_args[2], |
39 | sc_args[3], sc_args[4], sc_args[5], |
72 | sc_args[3], sc_args[4], sc_args[5], |
40 | sc_rc); |
73 | sc_rc); |
41 | } |
74 | } |
42 | } |
75 | } |