flowtop: Add process UI tab entry
commit1df0f481922acfb5f7af0f3a5cb800ec0f77e48f
authorVadim Kochan <vadim4j@gmail.com>
Wed, 18 Jan 2017 23:09:04 +0000 (19 01:09 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 25 Jan 2017 12:23:38 +0000 (25 13:23 +0100)
tree6386a0c66c673a43bef386d58203712da0e27ef3
parent60648a858b83b63e8dbdd1c45bb901d1206ae444
flowtop: Add process UI tab entry

Add process UI tab entry to show flows statistics per pid.

Also changed flow_entry which now has pointer to new struct proc_entry
object which contains process related info.

On each 1 second refresh proc_entry is checked if it exists by checking
/proc/<pid> path, and is deleted if there is no any flows related to it
(flows_count is 0), if the process exists then dst & src rates info is
zeroed and summed from the all related flows which are in the
proc_entry->flows list.

The bytes & pkts amount info is collected during all the time process
exists.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
flowtop.c
proc.c
proc.h