Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/expect
- set tx_start 0
- set tx_time 0
- set timeout 400
- set test 4000
- expect {
- -re {.*pipe_start\n} {
- set tx_start [clock clicks -milliseconds]
- puts "start receive @ $tx_start"
- exp_continue
- }
- -re {\[([0-9]*:[0-9]*:[0-9]*)\.([0-9]*)\].*len_total = $test} {
- set tx_time [expr [clock clicks -milliseconds] - $tx_start]
- puts "end receive @ $tx_time"
- }
- }
- ############################The data#################################################
- tipc-pipe.c:234 pipe_start
- [13:16:20.158459] tipc-pipe.c:272 pipe_start i = 0 len_total = 32 data_in_len = 32
- [13:16:20.158668] tipc-pipe.c:272 pipe_start i = 1 len_total = 64 data_in_len = 32
- [13:16:20.158813] tipc-pipe.c:272 pipe_start i = 2 len_total = 96 data_in_len = 32
- [13:16:20.158937] tipc-pipe.c:272 pipe_start i = 3 len_total = 128 data_in_len = 32
- [13:16:20.159054] tipc-pipe.c:272 pipe_start i = 4 len_total = 160 data_in_len = 32
- [13:16:20.159164] tipc-pipe.c:272 pipe_start i = 5 len_total = 192 data_in_len = 32
- [13:16:20.159272] tipc-pipe.c:272 pipe_start i = 6 len_total = 224 data_in_len = 32
- [13:16:20.159380] tipc-pipe.c:272 pipe_start i = 7 len_total = 256 data_in_len = 32
- [13:16:20.159491] tipc-pipe.c:272 pipe_start i = 8 len_total = 288 data_in_len = 32
- [13:16:20.159600] tipc-pipe.c:272 pipe_start i = 9 len_total = 320 data_in_len = 32
Advertisement
Add Comment
Please, Sign In to add comment