On Wed, Dec 14, 2016 at 11:44 PM, Vadim Kochan <vadi...@gmail.com> wrote:
> Add proc_find_by_inode(...) which finds pid by inode & gets processe's
> command line.
>
> Actually this function was taken from flowtop.c walk_process(...)
> and refactored to look more generic.
>
> Signed-off-by: Vadim Kochan <vadi...@gmail.com>
>
> flowtop: Replace walk_processes(...) by proc_find_by_inode(...)
>
> Use proc_find_by_inode(...) from proc.c to find pid by inode
> and it's command line instead of having own specific process walker.
>
> Signed-off-by: Vadim Kochan <vadi...@gmail.com>
> ---
> v2:
>    1) Add static to __match_pid_by_inode(...)
>    2) Remove sys/stat.h & dirent.h includes from flowtop.c
>    3) Squash changes into one patch
>
>  flowtop.c | 78 
> ++++++++-------------------------------------------------------
>  proc.c    | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  proc.h    |  1 +

Ahhh, I did not correct squash .. will fix it ...

-- 
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.

Reply via email to