» 您尚未登录:请 登录 | 注册 | 标签 | 帮助 | 小黑屋 |


发新话题
打印

刚才跟踪了一下MAME的进程,发现大量的进程间通讯

发现即使关闭多线程,其实MAME启动之后还是会多起一个线程,而且有大量的进程间通讯,之间发送许多数据包。
这有必要的吗?消耗了大量的系统调用,这个跟图形,声音,基板模拟没关系的吧?


TOP

posted by wap, platform: Android

你怎么知道没用?



TOP

我是有疑问,想知道用在什么方面


TOP

posted by wap, platform: 小米 (MI 2S)

看看代码呗

TOP

请不要在意细节,专心玩模拟器.

TOP

mame的代码不容置疑,lz的确蛋疼闲的。据说mame组都是神。

TOP

能搞出这么牛B的软件的人如果真想搞钱的话应该办法很多吧,玩木马有点无法相信

TOP

但是不该看的看到了,很难不去想,这些密集syscall是做什么的,虽然没开发过模拟器,但是模拟器所需要做的,模拟硬件,读取rom,然后绘制画面,输出声音,读取玩家的手柄输入,这些最核心的操作应该不会如此频繁的调用syscall

仔细一看,在载入sf2 的 rom之后,已经模拟出画面了,还有一些对xml的操作。


[pid  3060] ioctl(6, 0xc00c6466 <unfinished ...>
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1c10) = 0
[pid  3060] ioctl(6, 0x4020645d, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc0086457, 0x7fffb62c1ca0) = 0
[pid  3060] ioctl(6, 0xc0086457, 0x7fffb62c1c10) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1c10) = 0
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLIN}])
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1cb0) = 0
[pid  3065] <... write resumed> )       = 1
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\0\377\377\377\377\0\0\0\31\0\0\0\0@\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3060] <... ioctl resumed> , 0x7fffb62c1ca0) = 0
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3065] <... write resumed> )       = 1
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1c10) = 0
[pid  3065] <... read resumed> "WW", 10) = 2
[pid  3060] ioctl(6, 0xc00c6466 <unfinished ...>
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1c10) = 0
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLIN}])
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1cb0) = 0
[pid  3065] <... write resumed> )       = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\24\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1ca0) = 0
[pid  3065] <... write resumed> )       = 1
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1c10) = 0
[pid  3065] <... read resumed> "WW", 10) = 2
[pid  3060] ioctl(6, 0xc00c6466 <unfinished ...>
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1c10) = 0
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLIN}])
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1cb0) = 0
[pid  3065] <... write resumed> )       = 1
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0=L\377\377\377\377L\0\0\0\0L\0\0\5\34", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3060] <... ioctl resumed> , 0x7fffb62c1ca0) = 0
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3065] <... write resumed> )       = 1
[pid  3060] <... ioctl resumed> , 0x7fffb62c1cb0) = 0
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] <... write resumed> )       = 1
[pid  3060] <... ioctl resumed> , 0x7fffb62c1ca0) = 0
[pid  3065] read(7,  <unfinished ...>
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] <... read resumed> "WWW", 10) = 3
[pid  3060] <... ioctl resumed> , 0x7fffb62c1c10) = 0
[pid  3065] sendto(9, "\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0", 20, MSG_NOSIGNAL, NULL, 0 <unfinished ...>
[pid  3060] ioctl(6, 0xc00c6466 <unfinished ...>
[pid  3065] <... sendto resumed> )      = 20
[pid  3060] <... ioctl resumed> , 0x7fffb62c1c10) = 0
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3065] <... write resumed> )       = 1
[pid  3060] <... ioctl resumed> , 0x7fffb62c1cb0) = 0
[pid  3065] read(7, "W", 10)            = 1
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1ca0) = 0
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLOUT}])
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1c10) = 0
[pid  3065] <... write resumed> )       = 1
[pid  3060] ioctl(6, 0xc00c6466 <unfinished ...>
[pid  3065] sendto(9, "\0\0\0\31z7\262\211\0\32\0@\0\0\4\0", 16, MSG_NOSIGNAL, NULL, 0 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1c10) = 0
[pid  3065] <... sendto resumed> )      = 16
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1cb0) = 0
[pid  3065] <... write resumed> )       = 1
[pid  3065] read(7,  <unfinished ...>
[pid  3060] ioctl(6, 0xc0086457 <unfinished ...>
[pid  3065] <... read resumed> "WW", 10) = 2
[pid  3060] <... ioctl resumed> , 0x7fffb62c1ca0) = 0
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLOUT}])
[pid  3060] <... ioctl resumed> , 0x7fffb62c1cb0) = 0
[pid  3065] write(8, "W", 1)            = 1
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1d20) = 0
[pid  3065] <... read resumed> "W", 10) = 1
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3060] <... ioctl resumed> , 0x7fffb62c1d30) = 0
[pid  3060] ioctl(6, 0x4020645d <unfinished ...>
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3060] <... ioctl resumed> , 0x7fffb62c1d30) = 0
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3060] ioctl(6, 0x40406469, 0x7fffb62c1ce0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cb0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1ce0) = 0
[pid  3060] ioctl(6, 0xc0086457, 0x7fffb62c1cd0) = 0
[pid  3060] ioctl(6, 0xc00c6466, 0x7fffb62c1cd0) = 0
[pid  3060] poll([{fd=5, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=5, revents=POLLOUT}])
[pid  3060] writev(5, [{"\230\10\10\0\21\0@\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 32}], 1) = 32
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3060] recvfrom(5, 0x72c9c44, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3060] poll([{fd=5, events=POLLIN|POLLOUT}], 1, 4294967295 <unfinished ...>
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3060] <... poll resumed> )        = 1 ([{fd=5, revents=POLLIN|POLLOUT}])
[pid  3060] recvfrom(5, "g\0\372\16\2\0\0\0\21\0@\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\4\0\0"..., 4096, 0, NULL, NULL) = 96
[pid  3060] writev(5, [{"+\7\1\0", 4}, {NULL, 0}, {"", 0}], 3) = 4
[pid  3060] poll([{fd=5, events=POLLIN}], 1, 4294967295) = 1 ([{fd=5, revents=POLLIN}])
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLIN}])
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3060] recvfrom(5, "\1\1\373\16\0\0\0\0\20\0@\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096, 0, NULL, NULL) = 32
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3060] recvfrom(5,  <unfinished ...>
[pid  3065] <... write resumed> )       = 1
[pid  3060] <... recvfrom resumed> 0x72c9c44, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] recvfrom(4, 0x72bd234, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\0\377\377\377\377\0\0\0\f\0\0\0\0@\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3060] poll([{fd=4, events=POLLIN|POLLOUT}], 1, 4294967295 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... poll resumed> )        = 1 ([{fd=4, revents=POLLOUT}])
[pid  3065] <... write resumed> )       = 1
[pid  3060] writev(4, [{"\24\1\6\0\5\0@\4\33\2\0\0\0\0\0\0\0\0\0\0\v\0\0\0", 24}, {NULL, 0}, {"", 0}], 3 <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... writev resumed> )      = 24
[pid  3065] <... read resumed> "WW", 10) = 2
[pid  3060] poll([{fd=4, events=POLLIN}], 1, 4294967295 <unfinished ...>
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3060] <... poll resumed> )        = 1 ([{fd=4, revents=POLLIN}])
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLIN}])
[pid  3060] recvfrom(4,  <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... recvfrom resumed> "\1\10\235\36\v\0\0\0\37\0\0\0\0\0\0\0,\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 0, NULL, NULL) = 76
[pid  3065] <... write resumed> )       = 1
[pid  3060] recvfrom(4,  <unfinished ...>
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] <... recvfrom resumed> 0x72bd234, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\24\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3065] <... write resumed> )       = 1
[pid  3060] recvfrom(4,  <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... recvfrom resumed> 0x72bd234, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3065] <... read resumed> "WW", 10) = 2
[pid  3060] recvfrom(4,  <unfinished ...>
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3060] <... recvfrom resumed> 0x72bd234, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLIN}])
[pid  3060] recvfrom(4,  <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... recvfrom resumed> 0x72bd234, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3065] <... write resumed> )       = 1
[pid  3060] poll([{fd=4, events=POLLIN|POLLOUT}], 1, 4294967295 <unfinished ...>
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] <... poll resumed> )        = 1 ([{fd=4, revents=POLLOUT}])
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0=L\377\377\377\377L\0\0\0\0L\0\0\4`", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3060] writev(4, [{"\31\0\v\0\5\0\0\1\0\0\0\0!\10\0\0\5\0\0\1\223\1\0\0>\0\1\0\1\0\2\0"..., 44}, {NULL, 0}, {"", 0}], 3 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... writev resumed> )      = 44
[pid  3065] <... write resumed> )       = 1
[pid  3060] recvfrom(4,  <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... recvfrom resumed> 0x72bd234, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3065] <... write resumed> )       = 1
[pid  3060] recvfrom(4,  <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... recvfrom resumed> 0x72bd234, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3065] <... read resumed> "WWW", 10) = 3
[pid  3060] select(5, [4], NULL, NULL, {0, 0} <unfinished ...>
[pid  3065] sendto(9, "\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0", 20, MSG_NOSIGNAL, NULL, 0 <unfinished ...>
[pid  3060] <... select resumed> )      = 0 (Timeout)
[pid  3065] <... sendto resumed> )      = 20
[pid  3060] recvfrom(4,  <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... recvfrom resumed> 0x72bd234, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3065] <... write resumed> )       = 1
[pid  3060] select(5, [4], NULL, NULL, {0, 0} <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... select resumed> )      = 0 (Timeout)
[pid  3065] <... read resumed> "W", 10) = 1
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLIN|POLLOUT}])
[pid  3060] open("cfg/default.cfg", O_WRONLY|O_CREAT|O_TRUNC, 0666 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... open resumed> )        = -1 EACCES (Permission denied)
[pid  3065] <... write resumed> )       = 1
[pid  3060] stat("cfg",  <unfinished ...>
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] <... stat resumed> {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\0\377\377\377\377\0\0\0\30\0\0\0\0@\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3060] open("cfg/default.cfg", O_WRONLY|O_CREAT|O_TRUNC, 0666 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... open resumed> )        = -1 EACCES (Permission denied)
[pid  3065] <... write resumed> )       = 1
[pid  3060] open("cfg/sf2.cfg", O_WRONLY|O_CREAT|O_TRUNC, 0666 <unfinished ...>
[pid  3065] sendto(9, "\0\0\0\fz7\262\211\0\24\0@\0\0\4\0", 16, MSG_NOSIGNAL, NULL, 0) = 16
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... open resumed> )        = 10
[pid  3065] <... write resumed> )       = 1
[pid  3060] fstat(10,  <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... fstat resumed> {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[pid  3065] <... read resumed> "WWW", 10) = 3
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN|POLLOUT}])
[pid  3060] pwrite(10, "\357\273\277<?xml version=\"1.0\"?>\n", 25, 0 <unfinished ...>
[pid  3065] write(8, "W", 1)            = 1
[pid  3060] <... pwrite resumed> )      = 25
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] pwrite(10, "<!-- This file is autogenerated;"..., 80, 25 <unfinished ...>
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\24\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3060] <... pwrite resumed> )      = 80
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] pwrite(10, "<mameconfig", 11, 105) = 11
[pid  3065] <... write resumed> )       = 1
[pid  3060] pwrite(10, " version=\"10\"", 13, 116) = 13
[pid  3060] pwrite(10, ">\n", 2, 129 <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 2
[pid  3065] <... read resumed> "WW", 10) = 2
[pid  3060] pwrite(10, "    <system", 11, 131 <unfinished ...>
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 11
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLIN}])
[pid  3060] pwrite(10, " name=\"sf2\"", 11, 142 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 11
[pid  3065] <... write resumed> )       = 1
[pid  3060] pwrite(10, ">\n", 2, 153 <unfinished ...>
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 2
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0=L\377\377\377\377L\0\0\0\0L\0\0\4\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3060] pwrite(10, "        <counters", 17, 155 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 17
[pid  3065] <... write resumed> )       = 1
[pid  3060] pwrite(10, ">\n", 2, 172 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 2
[pid  3065] <... write resumed> )       = 1
[pid  3060] pwrite(10, "            <coins", 18, 174 <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 18
[pid  3065] <... read resumed> "WWW", 10) = 3
[pid  3060] pwrite(10, " index=\"0\"", 10, 192 <unfinished ...>
[pid  3065] sendto(9, "\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0", 20, MSG_NOSIGNAL, NULL, 0 <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 10
[pid  3065] <... sendto resumed> )      = 20
[pid  3060] pwrite(10, " number=\"19\"", 12, 202 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 12
[pid  3065] <... write resumed> )       = 1
[pid  3060] pwrite(10, " />\n", 4, 214 <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 4
[pid  3065] <... read resumed> "W", 10) = 1
[pid  3060] pwrite(10, "        </counters>\n", 20, 218 <unfinished ...>
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, NULL, NULL, 8 <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 20
[pid  3065] <... ppoll resumed> )       = 1 ([{fd=9, revents=POLLIN|POLLOUT}])
[pid  3060] pwrite(10, "    </system>\n", 14, 238 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 14
[pid  3065] <... write resumed> )       = 1
[pid  3060] pwrite(10, "</mameconfig>\n", 14, 252 <unfinished ...>
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] <... pwrite resumed> )      = 14
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\0\377\377\377\377\0\0\0\32\0\0\0\0@\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3060] close(10 <unfinished ...>
[pid  3065] write(8, "W", 1)            = 1
[pid  3060] <... close resumed> )       = 0
[pid  3065] sendto(9, "\0\0\0\30z7\262\211\0\27\0@\0\0\4\0", 16, MSG_NOSIGNAL, NULL, 0) = 16
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WWW", 10)          = 3
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN|POLLOUT}])
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\24\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WW", 10)           = 2
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN}])
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0=L\377\377\377\377L\0\0\0\0L\0\0\2\204", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] write(8, "W", 1)            = 1
[pid  3060] close(11 <unfinished ...>
[pid  3065] read(7,  <unfinished ...>
[pid  3060] <... close resumed> )       = 0
[pid  3065] <... read resumed> "WWW", 10) = 3
[pid  3060] munmap(0x7f4cbffd8000, 4096 <unfinished ...>
[pid  3065] sendto(9, "\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0", 20, MSG_NOSIGNAL, NULL, 0 <unfinished ...>
[pid  3060] <... munmap resumed> )      = 0
[pid  3065] <... sendto resumed> )      = 20
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] munmap(0x7f4caf50d000, 6295552 <unfinished ...>
[pid  3065] <... write resumed> )       = 1
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3065] read(7,  <unfinished ...>
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3065] <... read resumed> "W", 10) = 1
[pid  3060] <... munmap resumed> )      = 0
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN|POLLOUT}])
[pid  3060] munmap(0x7f4cae572000, 6295552 <unfinished ...>
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3060] <... munmap resumed> )      = 0
[pid  3065] <... write resumed> )       = 1
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] munmap(0x7f4cad971000, 12587008 <unfinished ...>
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\30\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3060] <... munmap resumed> )      = 0
[pid  3065] write(8, "W", 1)            = 1
[pid  3060] munmap(0x7f4cacd70000, 12587008 <unfinished ...>
[pid  3065] sendto(9, "\0\0\0\32z7\262\211\0\31\0@\0\0\4\0", 16, MSG_NOSIGNAL, NULL, 0 <unfinished ...>
[pid  3060] <... munmap resumed> )      = 0
[pid  3065] <... sendto resumed> )      = 16
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WWW", 10)          = 3
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN|POLLOUT}])
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9,  <unfinished ...>
[pid  3060] write(1, "Average speed: 58.15% (20 second"..., 35 <unfinished ...>
Average speed: 58.15% (20 seconds)
[pid  3065] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0?L\377\377\377\377L\0\0\0\0r\0\0\0\0\0K\264\0", 24}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 24
[pid  3060] <... write resumed> )       = 35
[pid  3065] write(8, "W", 1)            = 1
[pid  3060] futex(0x7f4caf3739d0, FUTEX_WAIT, 3065, NULL <unfinished ...>
[pid  3065] read(7, "WW", 10)           = 2
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN}])
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\17\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WW", 10)           = 2
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN}])
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0VL\377\377\377\377L\0\0\0\0", 15}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 15
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3065] write(8, "W", 1 <unfinished ...>
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3065] <... write resumed> )       = 1
[pid  3065] read(7, "WW", 10)           = 2
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN}])
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\0\377\377\377\377\0\0\0\24\0\0\0\0@\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WW", 10)           = 2
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN}])
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\24\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WW", 10)           = 2
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, NULL, NULL, 8) = 1 ([{fd=9, revents=POLLIN}])
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0=L\377\377\377\377L\0\0\0\0L\0\0\6|", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WWWW", 10)         = 4
[pid  3065] sendto(9, "\0\0\0\17\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20, MSG_NOSIGNAL, NULL, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "W", 10)            = 1
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, {29, 999848000}, NULL, 8) = 1 ([{fd=9, revents=POLLIN|POLLOUT}], left {29, 999847320})
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\0\377\377\377\377\0\0\0!\0\0\0\0@\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] sendto(9, "L\0\0\0\fL\0\0\0\3L\0\0\0\0", 15, MSG_NOSIGNAL, NULL, 0) = 15
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WWW", 10)          = 3
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN|POLLOUT}], 2, {29, 999601000}, NULL, 8) = 1 ([{fd=9, revents=POLLIN|POLLOUT}], left {29, 999600272})
[pid  3065] write(8, "W", 1)            = 1
[pid  3063] <... nanosleep resumed> 0x7f4cb4255bf0) = 0
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\24\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3063] nanosleep({0, 1000000},  <unfinished ...>
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WW", 10)           = 2
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, {29, 999461000}, NULL, 8) = 1 ([{fd=9, revents=POLLIN}], left {29, 999460564})
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0=L\377\377\377\377L\0\0\0\0L\0\0\4 ", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WW", 10)           = 2
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, {29, 999336000}, NULL, 8) = 1 ([{fd=9, revents=POLLIN}], left {29, 999335564})
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\0\377\377\377\377\0\0\0\25\0\0\0\0@\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WW", 10)           = 2
[pid  3065] ppoll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, {29, 999210000}, NULL, 8) = 1 ([{fd=9, revents=POLLIN}], left {29, 999209562})
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\24\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=2190, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
[pid  3065] write(8, "W", 1)            = 1
[pid  3065] read(7, "WW", 10)           = 2

TOP

不会的,那些代码是完全开源的,所以无论谁加了进去,都会被发现的。

TOP

发新话题
     
官方公众号及微博