public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <compudj@krystal.dyndns.org>
To: Paul Mundt <lethal@linux-sh.org>,
	Tom Zanussi <zanussi@us.ibm.com>, Greg KH <greg@kroah.com>,
	linux-kernel@vger.kernel.org, axboe@suse.de, karim@opersys.com
Subject: Re: [PATCH, RFC] sysfs: relay channel buffers as sysfs attributes
Date: Tue, 21 Feb 2006 11:48:53 -0500	[thread overview]
Message-ID: <20060221164852.GA6489@Krystal> (raw)
In-Reply-To: <20060221152102.GA20835@linux-sh.org>

* Paul Mundt (lethal@linux-sh.org) wrote:
> Wait a minute, you're talking about inode operations, but then talking
> about poll() and ioctl(), which are clearly file operations. Can you
> clarify what exactly it is you want to overload? Changing inode
> operations seems like a really bad design decision..
> 

You are right, I'm talking about file operations.

> Too much flexibility is not something people usually argue as a a point
> against adoption, especially for something as lightweight as debugfs,
> that's certainly a new one :-)
> 

Ok, I think we agree that it's not a technical matter. See below for
precisions.

> If you're talking about struct file_operations, then it would seem you
> would be best off sticking with debugfs. If the improved file operations
> are suitable for kernel/relay.c then they can be integrated there and
> then you don't have to worry about overloading the normal
> relay_file_operations through some helper functions to hand off to
> debugfs..
> 
> If you add native debugfs helper functions for creating relay files and
> working in line with CONFIG_RELAY, then I'm sure these can be rolled back
> in to debugfs proper, which should ease some of the LTTng maintenance.
> 
> I don't really see what having your own mount point and stubbed file
> system would buy you over this..
> 

As I understand the problem, LTTng could technically sit either in debugfs,
procfs, sysfs, relayfs : all these (except debugfs) have been tried with the
original LTT. I just want to spare time and not go into the same debates all
over again.

The problem sits in how tracing is seen. To kernel hackers, it is seen as an
interesting kernel debugging tool, while for the vast majority of LTTng
users, it is seen as a useful system wide information gathering tool to debug
_their_ system wide problems involving programs, librairies and drivers.

Therefore, I am reluctant to put a system monitoring tool in a filesystem
clearly indicated for kernel debugging, as the main audience for LTTng is
not kernel hackers, but user space application programmers.


Mathieu


OpenPGP public key:              http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint:     8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68 

  reply	other threads:[~2006-02-21 16:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-19 17:17 [PATCH, RFC] sysfs: relay channel buffers as sysfs attributes Paul Mundt
2006-02-19 17:21 ` Christoph Hellwig
2006-02-19 17:56 ` Greg KH
2006-02-19 18:52   ` Paul Mundt
2006-02-20  5:29     ` Tom Zanussi
2006-02-20  9:20       ` Jens Axboe
2006-02-20 11:17       ` Paul Mundt
2006-02-20 13:05       ` Mathieu Desnoyers
2006-02-20 14:17         ` Christoph Hellwig
2006-02-20 17:15         ` Paul Mundt
2006-02-20 17:37           ` Mathieu Desnoyers
2006-02-20 22:27             ` Greg KH
2006-02-21 15:21             ` Paul Mundt
2006-02-21 16:48               ` Mathieu Desnoyers [this message]
2006-02-21 17:43                 ` Greg KH
2006-02-22 21:27                   ` Karim Yaghmour
2006-02-22 21:32                     ` Greg KH
2006-02-20 22:24     ` Greg KH
2006-02-21 15:10       ` [PATCH] sysfs: Add __ATTR_RELAY() helper for relay attributes Paul Mundt

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=20060221164852.GA6489@Krystal \
    --to=compudj@krystal.dyndns.org \
    --cc=axboe@suse.de \
    --cc=greg@kroah.com \
    --cc=karim@opersys.com \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zanussi@us.ibm.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