Rev 2808 | Rev 2812 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2808 | Rev 2809 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include <stdio.h> |
1 | #include <stdio.h> |
2 | #include <unistd.h> |
2 | #include <unistd.h> |
- | 3 | #include <syscall.h> |
|
3 | #include <ipc/ipc.h> |
4 | #include <ipc/ipc.h> |
4 | #include "../tester.h" |
5 | #include "../tester.h" |
5 | 6 | ||
6 | const char *syscall_name[] = { |
7 | const char *syscall_name[] = { |
7 | "sys_io", |
8 | "sys_io", |
Line 44... | Line 45... | ||
44 | int taskid; |
45 | int taskid; |
45 | int rc; |
46 | int rc; |
46 | int phoneid; |
47 | int phoneid; |
47 | int i; |
48 | int i; |
48 | unsigned sc_args[6]; |
49 | unsigned sc_args[6]; |
- | 50 | unsigned ipc_args[6]; |
|
49 | unsigned copied; |
51 | unsigned copied; |
50 | unsigned ev_type; |
52 | unsigned ev_type; |
51 | unsigned sc_id; |
53 | unsigned sc_id; |
52 | int sc_rc; |
54 | int sc_rc; |
53 | unsigned threadid_buf[TIDBUF_SIZE]; |
55 | unsigned threadid_buf[TIDBUF_SIZE]; |
Line 88... | Line 90... | ||
88 | syscall_name[sc_id], sc_id, |
90 | syscall_name[sc_id], sc_id, |
89 | sc_args[0], sc_args[1], sc_args[2], |
91 | sc_args[0], sc_args[1], sc_args[2], |
90 | sc_args[3], sc_args[4], sc_args[5], |
92 | sc_args[3], sc_args[4], sc_args[5], |
91 | sc_rc); |
93 | sc_rc); |
92 | } |
94 | } |
- | 95 | if (sc_id == SYS_IPC_CALL_ASYNC_SLOW) { |
|
- | 96 | memset(ipc_args, 0, sizeof(ipc_args)); |
|
- | 97 | printf("read async call args..\n"); |
|
- | 98 | printf("dest=%u, ptr=%u, len=%u\n", |
|
- | 99 | (sysarg_t)ipc_args, sc_args[1], sizeof(ipc_args)); |
|
- | 100 | rc = ipc_call_sync_3_0(phoneid, IPC_M_DEBUG_MEM_READ, |
|
- | 101 | (sysarg_t)ipc_args, sc_args[1], sizeof(ipc_args)); |
|
- | 102 | printf("-> %d\n", rc); |
|
- | 103 | printf("args: (%u, %u, %u, %u, %u, %u)\n", |
|
- | 104 | ipc_args[0], ipc_args[1], ipc_args[2], |
|
- | 105 | ipc_args[3], ipc_args[4], ipc_args[5]); |
|
- | 106 | } |
|
93 | } |
107 | } |
94 | 108 | ||
95 | printf("done\n"); |
109 | printf("done\n"); |
96 | return NULL; |
110 | return NULL; |
97 | } |
111 | } |