6 Interfaces
[sequence
] = interface
10 sub("/[0-9]+", "", $
2)
12 Addrs
[interface
] = addr
15 /^
+RX
: / {transfer_direction =
"r"}
16 /^
+TX
: / {transfer_direction =
"w"}
18 /^
+[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ *$
/ {
19 io
[interface
, transfer_direction
] = $
1;
23 for (seq=
1; seq
<=sequence
; seq
++) {
24 interface = Interfaces
[seq
]
25 label =
substr(interface
, 1, 1)
26 addr = Addrs
[interface
]
28 bytes_read = io
[interface
, "r"]
29 bytes_written = io
[interface
, "w"]
34 output
["addr" Kfs interface
] = addr
35 output
["bytes_read" Kfs interface
] = bytes_read
36 output
["bytes_written" Kfs interface
] = bytes_written
39 print(key
, output
[key
])
This page took 0.067565 seconds and 4 git commands to generate.