mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Werner Almesberger <wa@almesberger.net>
To: Patrick Mochel <mochel@osdl.org>
Cc: Rusty Lynch <rusty@linux.co.intel.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [BUG] sysfs on 2.5.48 unable to remove files while in use
Date: Sun, 24 Nov 2002 10:04:45 -0300	[thread overview]
Message-ID: <20021124100445.Q1407@almesberger.net> (raw)
In-Reply-To: <Pine.LNX.4.33.0211211637560.913-200000@localhost.localdomain>; from mochel@osdl.org on Thu, Nov 21, 2002 at 05:03:44PM -0600

Patrick Mochel wrote:
>  * This uses a sysfs control file to manage a list of probes. 
>  * The sysfs directory is at
>  *
>  * /sys/noisy/

I really like the idea of controlling kprobes through sysfs.
However, ...

>  * A Noisy Probe can be added by echoing into the file, like:
>  *
>  *	$ echo "add <address> <message>" > /sys/noisy/ctl

do you really need a "magic" file for this ? I don't know how
well sysfs supports mkdir/rmdir (if at all), but they would
seem to provide a much more natural interface. (VFS allows
rmdir to remove non-empty directories, so you wouldn't have
to rm -r.)

I don't think you need probe installation and message setting
to be atomic, so you could just assign a unique default
message, e.g. the probe address.

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/

  parent reply	other threads:[~2002-11-24 12:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-21 15:39 Rusty Lynch
2002-11-21 17:04 ` Patrick Mochel
2002-11-21 17:20   ` Rusty Lynch
2002-11-21 20:45 ` Patrick Mochel
2002-11-21 22:07   ` Rusty Lynch
2002-11-21 23:03     ` Patrick Mochel
2002-11-23  0:32       ` Rusty Lynch
2002-11-25 17:29         ` Patrick Mochel
2002-11-24 13:04       ` Werner Almesberger [this message]
2002-11-24 13:38         ` Alexander Viro
2002-11-24 14:32           ` Werner Almesberger
2002-11-25 18:34             ` Patrick Mochel
2002-11-25 19:13               ` Werner Almesberger
2002-11-25 19:40               ` Roman Zippel
2002-11-24 14:51           ` Roman Zippel

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=20021124100445.Q1407@almesberger.net \
    --to=wa@almesberger.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mochel@osdl.org \
    --cc=rusty@linux.co.intel.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

all inboxes | Powered by JetHome®