4 OFS = msg_fs ? msg_fs
: "|"
5 Kfs = key_fs ? key_fs
: ":"
13 Interfaces
[sequence
] = interface
17 sub("/[0-9]+", "", $
2)
19 Addrs
[interface
] = addr
22 /^
+RX
: / {transfer_direction =
"r"}
23 /^
+TX
: / {transfer_direction =
"w"}
25 /^
+[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ *$
/ {
26 io
[interface
, transfer_direction
] = $
1;
30 for (seq=
1; seq
<=sequence
; seq
++) {
31 interface = Interfaces
[seq
]
32 label =
substr(interface
, 1, 1)
33 addr = Addrs
[interface
]
35 bytes_read = io
[interface
, "r"]
36 bytes_written = io
[interface
, "w"]
41 output
["addr" Kfs interface
] = addr
42 output
["bytes_read" Kfs interface
] = bytes_read
43 output
["bytes_written" Kfs interface
] = bytes_written
46 print(key
, output
[key
])
This page took 0.053821 seconds and 4 git commands to generate.