View difference between Paste ID: rvebt7rp and NrP4WYqM
SHOW: | | - or go back to the newest paste.
1
root@precise1:~# ps faux
2
...
3
root       561  0.0  0.1  50040  2856 ?        Ss   15:19   0:00 /usr/sbin/sshd -D
4
root       969  0.0  0.1  73444  3600 ?        Ss   15:19   0:00  \_ sshd: root@pts/0    
5
root      1109  0.0  0.4  27396  8620 pts/0    Ss   15:19   0:00  |   \_ -bash
6
root     17073  0.0  0.0  22720   836 pts/0    S+   15:30   0:00  |       \_ nc -l 61051
7
8
root@precise1:~# netstat -taunp | grep LISTE
9
tcp        0      0 0.0.0.0:61051           0.0.0.0:*               LISTEN      17073/nc        
10
11
12
root@precise1:~# strace -p 17073
13
Don't scratch the walls
14
15
root@precise1:~# lttngtrace -p 17073
16
15:31:30.092253785 (+0.000000000) (cpu 0) [swapper/0 (0/0)] sched_switch (prev_comm = swapper/0, prev_tid = 0, prev_prio = 20, prev_state = 0, next_comm = nc, next_tid = 17073, next_prio = 20)
17
15:31:30.092263658 (+0.000009873) (cpu 0) [nc (17073/17073)] exit_syscall (ret = 4)
18
15:31:30.092317148 (+0.000053490) (cpu 0) [nc (17073/17073)] sys_poll (ufds = 140735541147808, nfds = 2, timeout_msecs = -1) = 1 (0.000005730s)
19
15:31:30.092325662 (+0.000008514) (cpu 0) [nc (17073/17073)] sys_read (fd = 0</dev/pts/0>, buf = 140735541147824, count = 1024) = 3 (0.000006967s)
20
15:31:30.092338598 (+0.000012936) (cpu 0) [nc (17073/17073)] sys_write (fd = 4, buf = 140735541147824, count = 3) = 3 (0.000014351s)
21
15:31:30.092354044 (+0.000015446) (cpu 0) [nc (17073/17073)] sys_poll (ufds = 140735541147808, nfds = 2, timeout_msecs = -1)  ...interrupted...
22
15:31:30.092364153 (+0.000010109) (cpu 0) [nc (17073/17073)] sched_switch (prev_comm = nc, prev_tid = 17073, prev_prio = 20, prev_state = 1, next_comm = swapper/0, next_tid = 0, next_prio = 20)