[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bandwidth measurement by process





On Sun, May 9, 2010 at 12:50, Frederik Kriewitz <frederik@kriewitz.eu> wrote:
On Sun, May 9, 2010 at 9:03 AM, Celejar <celejar@gmail.com> wrote:
> Yeah, that's pretty much what I thought.  Well, I think that I'm going
> to code something like this, unless someone else will point out that
> it's already been done.

I don't know anything like this, but another approch to to this might
be to use LD_PRELOAD and/or PTRACE to hook connect(), write() and
read().


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] v2xf67028d41005090020kebdb09a5zfe49825b5bfd4c3f@mail.gmail.com" target="_blank">http://lists.debian.org/[🔎] v2xf67028d41005090020kebdb09a5zfe49825b5bfd4c3f@mail.gmail.com


LD_PRELOAD also seems to be a viable option since it is one process specific.  You may need to include send(), recv() also apart from read(), write()

Reply to: