Skip to content

connector: Add proc_events for connect/accept

Joe Damato netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Create a new connector proc_event for successful calls to connect.drivers/connector/cn_proc.c include/linux/cn_proc.h net/socket.c+61 -10 replies
2/2Create a new connector proc_event for successful calls to accept.drivers/connector/cn_proc.c include/linux/cn_proc.h net/socket.c+57 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] connector: Add proc_events for connect/accept

Hi -

It would be extremely useful to have a simple way of mapping pids to network connections without having to create piles of inotify watches in /proc/ and /proc/<pid>/fd/ and then search for corresponding inode numbers in /proc/net/{tcp, udp, ... }.

I've added two simple connector events so that monitoring processes using connector can get a notification of successful calls to connect/accept. This allows a monitoring process to be aware of network connections without having to jump through the inotify+proc parsing hoops.

Thanks,
Joe

Joe Damato (2):
Create a new connector proc_event for successful calls to connect. Create a new connector proc_event for successful calls to accept.

 drivers/connector/cn_proc.c |   70 +++++++++++++++++++++++++++++++++++++++++++
 include/linux/cn_proc.h     |   39 +++++++++++++++++++++++-
 net/socket.c                |    9 +++++
 3 files changed, 117 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.4.1