record作为erlang的一种数据结构(特殊的Tuple,类似数组),通常用于函数量传递. 我们也可以选择ETS内存表作为存放record,Ets非常适合大量临时数据存储,最重要 的是ETS可以和record进行无逢结合. %%在Eshell下声明record users 1> rd(users, {uid,website="t.qq.com/lajabs",name,time=time()}). users %%对ets建表,并创建以record元素uid作为索引键,以下的增删改查都将使用它 2> ets:new(users,[public,set,named_table,{keypos, #...
本帖最后由 shijiang1130 于 2014-10-02 19:13 编辑 [code]-module(tracert). -export([run/0]). run() -> P5 = erlang:open_port({spawn, "tracert 8.8.8.8"}, [stderr_to_stdout, in, exit_status,stream, {line, 255}]), loop(P5). loop(P) -> receive {P,{exit_status,_}} -> io:format("Pid been killed, try restart ...~n"), run(); {P, Data} -> ...
注意: 从erlang R17才可供使用。 8> maps:new(). #{} 9> F1 = #{a=>32424223,b=>444444444}. #{a => 32424223,b => 444444444} 10> F1. #{a => 32424223,b => 444444444}
Hi, guys
本帖最后由 accessory 于 2010-06-26 03:25 编辑
Decoupling dynamic program analysis from execution in virtual environments
https://www.usenix.org/events/usenix08/tech/full_papers/chow/chow_html/
Multi-stage replay with crosscut
http://portal.acm.org/citation.cfm?id=1735997.1736002
make内核后,最后出来:no machine record defined。
搜索,发现都是把vmlinux.lds的最后两句话注释掉,我这里照做,能编译通过。
但是,我的开发板配置文件是通过s3c6410改的,如果用自带的s3c6400_defconfig来编译的话,就不会出现:no machine record defined。说明编译器+内核没问题。
由于我的cpu都是arm1176,但不是3星的,所以想通过6410的基础上改,但是为何会出现no machine record defined?说的binutils版本太老,s3c64...
Assume that I have a table and no related backup availabe.
If some block is broken, then , how can I get the data with the blocks that are not broken?
Test environment: