[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <a76c79ce-8707-f9be-14fe-79e7728f9225@candelatech.com>
Date: Wed, 6 Mar 2024 14:57:55 -0800
From: Ben Greear <greearb@...delatech.com>
To: netdev <netdev@...r.kernel.org>
Subject: Process level networking stats.
Hello,
I am interested in a relatively straight-forward way to know the tx/rx bytes
sent/received by a process. I do not want to play tricks with packet capture,
and I want this to work for some arbitrary process like a web browser.
I wasn't able to find anything existing for this, though perhaps it exists
and I didn't find it.
If anyone has pointers to existing work in this area, please let me know.
And if not, then any suggestions for best way to go about implementing
this? I assume I should start poking in net/socket.c, and perhaps directly
into ipv4, ipv6 socket logic with care not to count anything going over
localhost??
Thanks,
Ben
--
Ben Greear <greearb@...delatech.com>
Candela Technologies Inc http://www.candelatech.com
Powered by blists - more mailing lists