connector: Add proc_events for connect/accept
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | Create a new connector proc_event for successful calls to connect.drivers/ include/ net/ | +61 | 0 replies | |
| 2/2 | Create a new connector proc_event for successful calls to accept.drivers/ include/ net/ | +57 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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