From: "Stone, Joshua I" <joshua.i.stone@intel.com>
To: "Andrew Morton" <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>, "Thomas Gleixner" <tglx@linutronix.de>
Subject: RE: [PATCH] provide hrtimer exports for module use [Was: Exports for hrtimer APIs]
Date: Tue, 14 Mar 2006 14:11:44 -0800 [thread overview]
Message-ID: <CBDB88BFD06F7F408399DBCF8776B3DC06A92BAC@scsmsx403.amr.corp.intel.com> (raw)
Andrew Morton wrote:
> Wordwrapped...
Yes, Outlook/Exchange betrayed me... sorry.
> gee, that's a lot of exports. I don't know whether all of these
> would be considered stable over the long-term?
For that first patch, I simply looked for the functions that looked
appropriate for general users of hrtimers. If you would like to be more
conservative, these five are all I need for SystemTap:
EXPORT_SYMBOL_GPL(ktime_add_ns);
EXPORT_SYMBOL_GPL(hrtimer_forward);
EXPORT_SYMBOL_GPL(hrtimer_start);
EXPORT_SYMBOL_GPL(hrtimer_cancel);
EXPORT_SYMBOL_GPL(hrtimer_init);
> Can you tell us a bit about why systemtap modules need the hrtimer
> capability? How it's being used and for what, etc?
Sure - SystemTap uses timers to provide an asynchronous probe during
module execution. This might be utilized for polling kernel states, for
flushing trace data, and perhaps other similar uses. Currently we're
using the main timer APIs - add_timer, mod_timer, etc.
My motivation for moving to hrtimer is because of what I read in its
documentation - basically that the timer wheel is best for timeout cases
which are rarely recascaded. The way SystemTap uses timers is more for
defining intervals, and they are always cascaded until the module is
complete. The hrtimers seem more suited to this methodology.
Correct me if I'm wrong...
Josh
next reply other threads:[~2006-03-14 22:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-14 22:11 Stone, Joshua I [this message]
2006-03-14 22:18 ` Thomas Gleixner
-- strict thread matches above, loose matches on Subject: below --
2006-03-14 21:01 Stone, Joshua I
2006-03-14 21:36 ` Andrew Morton
2006-03-14 22:03 ` Christoph Hellwig
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=CBDB88BFD06F7F408399DBCF8776B3DC06A92BAC@scsmsx403.amr.corp.intel.com \
--to=joshua.i.stone@intel.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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®