Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trace.py: add option to show multiline backtrace
The format of backtrace output from trace.py is not very human friendly so this patch adds new option - '-l', '--multiline'. New output: 0xffff8000021e5040 >/tests/tst-tcp 1 0.174132344 tcp_state tp=0xffffa00001dcd800, CLOSED -> CLOSED tcpcb::set_state(int) tcp_attach tcp_usr_attach socreate socreate(int, int, int) sys_socket linux_socket socket 0x1000000e83b1 0x200000700f1b 0x1000000e859f 0xffff8000021e5040 >/tests/tst-tcp 1 0.174145515 tcp_state tp=0xffffa00001dcd800, CLOSED -> LISTEN tcpcb::set_state(int) tcp_usr_listen sys_listen listen 0x1000000e842c vs the regular one: 0xffff8000021e5040 >/tests/tst-tcp 1 0.174132344 tcp_state tp=0xffffa00001dcd800, CLOSED -> CLOSED [tcpcb::set_state(int), tcp_attac h, tcp_usr_attach, socreate, socreate(int, int, int), sys_socket, linux_socket, socket, 0x1000000e83b1, 0x200000700f1b, 0x1000000e859f] 0xffff8000021e5040 >/tests/tst-tcp 1 0.174145515 tcp_state tp=0xffffa00001dcd800, CLOSED -> LISTEN [tcpcb::set_state(int), tcp_usr_l isten, sys_listen, listen, 0x1000000e842c] Signed-off-by: Waldemar Kozaczuk <[email protected]>
- Loading branch information