mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Christoph Hellwig <hch@infradead.org>
Cc: "Kok, Auke" <auke-jan.h.kok@intel.com>,
	"Frank Ch. Eigler" <fche@redhat.com>,
	Arjan van de Ven <arjan@infradead.org>,
	Jeff Garzik <jeff@garzik.org>,
	"Wu, Fengguang" <fengguang.wu@intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	Al Viro <viro@ZenIV.linux.org.uk>,
	Frederic Weisbecker <fweisbec@gmail.com>
Subject: Re: [PATCH] vfs: Add a trace point in the mark_inode_dirty function
Date: Fri, 20 Nov 2009 11:51:54 +0100	[thread overview]
Message-ID: <20091120105154.GB12634@elte.hu> (raw)
In-Reply-To: <20091120104335.GB29143@infradead.org>


* Christoph Hellwig <hch@infradead.org> wrote:

> Guys, I think both the inode number and name do have a use case.  For 
> file system developers observing the filesystem the inode number is 
> very useful, and if you look at the ext4 tracing already in tree or 
> the xfs tracing going in in the next window they use the inode number 
> all over.
> 
> Which btw brings up another good argument - to make the tracing really 
> useful we need to have conventions.  While the inode number seems to 
> be a realtively easy one printing the device is more difficult.  XFS 
> just prints the raw major/minor to stay simple, ext4 has a complicated 
> ad-hoc cache of device names, and this one just prints the superblock 
> id string.

Agreed.

> Of course for a user the name is a lot more meaninful, but also 
> relatively expensive to generate.  Then again I'm not even sure how 
> the last pathname component only here is all that useful - it can't be 
> used to easily find the file.

That's not the main point though - the point is for app developers (and 
users) being able to see 'oh, _that_ file it is, we need to fix that'. 
In the context of a specific app, the last component filename carries 
95% of the useful information.

Look at how PowerTOP does it, for a real-life usecase.

	Ingo

  reply	other threads:[~2009-11-20 10:52 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-26  5:53 Arjan van de Ven
2009-10-26  6:03 ` Andrew Morton
2009-10-26  6:55   ` Arjan van de Ven
2009-10-27 16:01 ` Jason Baron
2009-11-11  2:01 ` Wu Fengguang
2009-11-11  6:34   ` Arjan van de Ven
2009-11-11  6:40     ` Wu Fengguang
2009-11-11  7:42     ` Jeff Garzik
2009-11-11  7:45       ` Ingo Molnar
2009-11-11  7:56         ` Jeff Garzik
2009-11-11 11:15           ` Ingo Molnar
2009-11-11 17:27         ` Kok, Auke
2009-11-11 18:29         ` Theodore Tso
2009-11-11 18:56           ` Ingo Molnar
2009-11-12  2:15           ` Arjan van de Ven
2009-11-11 16:19       ` Arjan van de Ven
2009-11-11 23:10         ` Frank Ch. Eigler
2009-11-11 23:37           ` Kok, Auke
2009-11-12  7:22             ` Ingo Molnar
2009-11-20 10:43               ` Christoph Hellwig
2009-11-20 10:51                 ` Ingo Molnar [this message]
2009-11-20 14:45                 ` Arjan van de Ven
2009-11-20 16:05                   ` Jamie Lokier
2009-11-20 16:45                     ` Arjan van de Ven
2009-11-11  2:33 ` Li Zefan
2009-11-15 19:00   ` Arjan van de Ven
2009-11-16  0:56     ` Li Zefan

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=20091120105154.GB12634@elte.hu \
    --to=mingo@elte.hu \
    --cc=arjan@infradead.org \
    --cc=auke-jan.h.kok@intel.com \
    --cc=fche@redhat.com \
    --cc=fengguang.wu@intel.com \
    --cc=fweisbec@gmail.com \
    --cc=hch@infradead.org \
    --cc=jeff@garzik.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ZenIV.linux.org.uk \
    /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

all inboxes | Powered by JetHome®