Re: [Perfctr-devel] Re: [perfmon] perfmon2 code review: 32-bit ABI on 64-bit OS



David Gibson wrote:
On Sat, Feb 11, 2006 at 02:33:54PM -0800, Stephane Eranian wrote:
[...]
The most challenging piece is the IP (program pointer) that is in every
sample. Today it is defined as unsigned long because this is fairly
natural for a code address. The 64bit OS captures addresses as 64-bit,
the 32-bit monitoring tool running on top has to consume them as 64-bit
addresses, so u64 would be fine.

But not on a 32-bit kernel with a 32-bit tool, addresses exported as u64
would certainly work but consume double to buffer space, and that is a
more serious issue in my mind.

Hmm.. does the sampling buffer collect on userspace PC values, or
kernel ones as well?

Either, or both, depending on the measurement settings.

I live in a 64-bit world, so my take on this issue would be to expose
the PC as a uint64_t, always. There is already so much overhead in the
default per-sample header that I wouldn't worry about it.

Now 64 bit might not always be enough. E.g., on PA-RISC. But _I_ do
not care much about Linux on PA.

Eric

--
Eric Gouriou eric.gouriou@xxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH] [13/16] HWPOISON: The high level memory error handler in the VM v3
    ... And anon_vma lock nests inside i_mmap_lock. ... right now to consume. ... will make the kernel bug. ... for pagecache pages), this may not be able to trigger the race I was ...
    (Linux-Kernel)
  • [patch] new version, u64 cast avoidance
    ... > It wouldn't be just about warnings if somebody uses current kernel ... If the u64 type is "unsigned long" on some platforms ... typedef unsigned int __u32; ... typedef unsigned int u32; ...
    (Linux-Kernel)
  • Re: BFS vs. mainline scheduler benchmarks and measurements
    ... You used a single pipe per child, this means the loop in run_child ... would consume what it just wrote out until it got force preempted by the ... videofile.mkv"' (mplayer in this case is a single-threaded application.) Caches were warmed-up first; the results below are from the second run of each test. ... The kernel .config file used by the running kernels and also for "make -j2" is: ...
    (Linux-Kernel)
  • Re: computer becomes slow when compiling something
    ... enabled kernel. ... can consume a lot of CPU in kernel on a very active system, ... Especially WITNESS. ... WITNESS and INVARIANTS. ...
    (freebsd-current)
  • Re: [RFC][PATCH 0/2] KABI example conversion and cleanup
    ... On Mar 26, 2006, at 16:18:29, Rob Landley wrote: headers, but then again __u64 etc are just fine, history has proven that already. ... Now that the kernel no longer targets gcc before 3.2, c99 names are merely ugly rather than an actual problem. ... they're still a problem in ABI headers because they have defined visibility. ... Including _cannot_ bring in automatically, that breaks the POSIX symbol visibility rules. ...
    (Linux-Kernel)