public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* 64-bit integeer data types and the Linux kernel
@ 2007-05-02 16:33 Quentin Barnes
  2007-05-02 16:54 ` Martin Hunt
  0 siblings, 1 reply; 2+ messages in thread
From: Quentin Barnes @ 2007-05-02 16:33 UTC (permalink / raw)
  To: systemtap

I've been going over some of my ARM port work of the Systemtap
runtime environment in anticipation of sending it out to this list.
The port work brought up a Linux kernel question I had a few years
ago and never got a satisfactory answer.

I noticed in runtime/arith.c, Systemtap has to supply 64-bit support
arithmetic for some architectures.  (I've added ARM support now.)

Why does Systemtap have to do this?  (Rhetorical question!)  Because
the kernel doesn't always have these missing 64-bit integer routines
for all architectures.  Okay, why doesn't the kernel fully support
64-bit integer types for all architectures?

I never got an answer to that last question when I asked it three
years ago when helping someone port a driver who needed to do a
divide of a 64-bit integer.  Can anyone these days give me the
reason or logic as to why?

If it is because of space concerns, then why can't it be made a
configurable kernel option that Systemtap or anyone else can enable
as need be?  (That's a real question.  Can anyone answer that
question for me?)  Has anyone tried this angle with regards to
Systemtap's needs?

I tried googling to see if I could find an old discussion on this
but got way too many hits and none seemed pertinent.  If someone
could point me to old postings on this issue, I'd appreciate it.

Quentin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 64-bit integeer data types and the Linux kernel
  2007-05-02 16:33 64-bit integeer data types and the Linux kernel Quentin Barnes
@ 2007-05-02 16:54 ` Martin Hunt
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Hunt @ 2007-05-02 16:54 UTC (permalink / raw)
  To: Quentin Barnes; +Cc: systemtap

On Wed, 2007-05-02 at 11:33 -0500, Quentin Barnes wrote:

> Why does Systemtap have to do this?  (Rhetorical question!)  Because
> the kernel doesn't always have these missing 64-bit integer routines
> for all architectures.  Okay, why doesn't the kernel fully support
> 64-bit integer types for all architectures?

There was some discussion about fixing this a month ago or so. 
http://lkml.org/lkml/2007/2/23/321



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-02 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-02 16:33 64-bit integeer data types and the Linux kernel Quentin Barnes
2007-05-02 16:54 ` Martin Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).