From: Andrew Morton <akpm@osdl.org>
To: "Stone, Joshua I" <joshua.i.stone@intel.com>
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 13:36:33 -0800 [thread overview]
Message-ID: <20060314133633.2814cdf7.akpm@osdl.org> (raw)
In-Reply-To: <CBDB88BFD06F7F408399DBCF8776B3DC06A92A13@scsmsx403.amr.corp.intel.com>
"Stone, Joshua I" <joshua.i.stone@intel.com> wrote:
>
> Andrew Morton wrote:
> > "Stone, Joshua I" <joshua.i.stone@intel.com> wrote:
> >> I have noticed that the hrtimer APIs in 2.6.16 RCs are not exported,
> >> and therefore modules are unable to use hrtimers. I have not seen
> >> any discussion on this point, so I presume that this is either an
> >> oversight, or there has not been any case presented for exporting
> >> hrtimers.
> >>
> >> I would like to add hrtimer support to SystemTap, which by design
> >> requires the use of dynamically loaded kernel modules. Can the
> >> appropriate exports for hrtimers please be added?
> >
> > Please send a patch, so we can see what's needed.
> >
> > EXPORT_SYMBOL_GPL would be preferred.
>
> This patch adds the exports needed for modules to use the
> hrtimer APIs.
>
> --- linux-2.6.16-rc6/kernel/hrtimer.c 2006-03-14 10:44:13.000000000
> -0800
> +++ linux-2.6.16-rc6-hrtexp/kernel/hrtimer.c 2006-03-14
> 11:13:48.000000000 -0800
Wordwrapped...
> +EXPORT_SYMBOL_GPL(ktime_add_ns);
> +EXPORT_SYMBOL_GPL(hrtimer_forward);
> +EXPORT_SYMBOL_GPL(hrtimer_start);
> +EXPORT_SYMBOL_GPL(hrtimer_try_to_cancel);
> +EXPORT_SYMBOL_GPL(hrtimer_cancel);
> +EXPORT_SYMBOL_GPL(hrtimer_get_remaining);
> +EXPORT_SYMBOL_GPL(hrtimer_get_next_event);
> +EXPORT_SYMBOL_GPL(hrtimer_init);
> +EXPORT_SYMBOL_GPL(hrtimer_get_res);
> +EXPORT_SYMBOL_GPL(hrtimer_nanosleep);
gee, that's a lot of exports. I don't know whether all of these would be
considered stable over the long-term?
Can you tell us a bit about why systemtap modules need the hrtimer
capability? How it's being used and for what, etc?
Thanks.
next prev parent reply other threads:[~2006-03-14 21:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-14 21:01 Stone, Joshua I
2006-03-14 21:36 ` Andrew Morton [this message]
2006-03-14 22:03 ` Christoph Hellwig
2006-03-14 22:11 Stone, Joshua I
2006-03-14 22:18 ` Thomas Gleixner
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=20060314133633.2814cdf7.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=joshua.i.stone@intel.com \
--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®