Add UI tab control to switch between tabbed windows for dirrent flows table statistics info per pid/peer/port.
The tab entries are switched by TAB keypress. Introduced proc_entry which holds aggregated related flows statistics (rate/pkts/bytes), beside this changed flow_entry to point to proc_entry pid & name info. Added UI tab for per pid flows info - flows count, bytes, rates. The bytes/pkts are collected during the process living (but proc_entry is not removed till at lest one flow points to it), the rates info refreshes each 1 second per proc_entry. Re-added list.h which contains just missing cds_list_{next,prev,last}_entry functions which are needed for navigation over UI tab entries. v2: 1) Constify ui_table.delim & ui_col.name 2) Rename list.h -> urcu-list-compat.h and include urcu/list.h here. 3) Add Signed-off-by into 2nd commit. 4) In flow_entry_find_process(...) use proc_entry->name member instead of local procname string. 5) Rename proc_exist -> proc_exists 6) Rename proc_entry.procnnum -> pid 7) Rename proc_entry.procname -> name Vadim Kochan (2): flowtop: Add tab control to switch between tables flowtop: Add process UI tab entry flowtop.c | 373 ++++++++++++++++++++++++++++++++++++++++++++++------- proc.c | 11 ++ proc.h | 3 +- ui.c | 97 +++++++++++++- ui.h | 34 ++++- urcu-list-compat.h | 21 +++ 6 files changed, 485 insertions(+), 54 deletions(-) create mode 100644 urcu-list-compat.h -- 2.11.0 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.