Netdev List
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Masatake YAMATO <yamato@redhat.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: Adding inode field to /proc/net/netlink
Date: Sun, 28 Feb 2010 10:44:06 +0100	[thread overview]
Message-ID: <1267350246.9082.69.camel@edumazet-laptop> (raw)
In-Reply-To: <20100228.185045.366957605052790072.yamato@redhat.com>

Le dimanche 28 février 2010 à 18:50 +0900, Masatake YAMATO a écrit :

> I understood but it has been already breaking:
> 
>     [yamato@xxx /proc/net]$ uname -a; cat /proc/net/netlink 
>     Linux xxx.redhat.com 2.6.29.6-217.2.16.fc11.x86_64 #1 SMP Mon Aug 24 17:17:40 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
>     sk       Eth Pid    Groups   Rmem     Wmem     Dump     Locks
>     ffff8801bbde0400 0   2758   00000111 0        0        (null) 2
>     ...
> 
>     [yamato@yyy /proc/net]$ uname -a; cat /proc/net/netlink 
>     Linux yyy.redhat.com 2.6.30.10-105.2.23.fc11.x86_64 #1 SMP Thu Feb 11 07:06:34 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
>     sk       Eth Pid    Groups   Rmem     Wmem     Dump     Locks     Drops
>     ffff8800d83f5800 0   1783   00000001 0        0        (null) 2        0       
> 
> Drops field may be added between 2.6.29 and 2.6.30.
> Adding one more field is really problem?
> In other word, why "Drops" field was acceptable?
> 
> lsof uses following technique. It parses the header raw
> (here "    sk       Eth Pid    Groups   Rmem     Wmem     Dump     Locks     Drops")
> and picks values from columns only if the columns exits in the header raw.
> e.g. If "Inode" exists in the header, lsof tries to use Inode value.
> With the technique just adding(not deleting or swapping) a new column is not a big problem.
> 
> Masatake YAMATO
> 

Indeed :)

I am a big fan of Vic Abell lsof tool that I used before Linux was even
born :)




  reply	other threads:[~2010-02-28  9:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-28  5:45 Adding inode field to /proc/net/netlink Masatake YAMATO
2010-02-28  9:00 ` David Miller
2010-02-28  9:13   ` Eric Dumazet
2010-02-28  9:28     ` David Miller
2010-02-28  9:50   ` Masatake YAMATO
2010-02-28  9:44     ` Eric Dumazet [this message]
2010-02-28 12:44       ` Masatake YAMATO

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1267350246.9082.69.camel@edumazet-laptop \
    --to=eric.dumazet@gmail.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=yamato@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox