Hi, On Tue, May 6, 2008 at 1:03 AM, Roland McGrath <roland@redhat.com> wrote:I would let the upper layer handle this. Perfmon2 takes care of this today. But the consumer may be the kernel, so you could not charge this onto the current/asking task. Exactly! In Perfmon2, we want to keep control of the buffer allocation. Thus we want to be able to pass the buffer base address and size, that's all. Perfmon2 does allow the buffer to be remapped to user level. I agree. I think I have discussed this with Markus already because I ran into some issue when experimenting with ds.c for perfmon PEBS support. I am not sure I undertstand what you mean by multiplexing? Are you talking about per-thread vs. system-wide? Perfmon2 does support both modes incl. for PEBS, although in system-wide mode, there is not enough information saved in the PEBS buffer to determine which task generated the sample. The interest for using ds for perfmon2 is: - hides the details about the DS layout (different from P4 to Intel Core) - ensures mutual exclusion on the DS/PEBS resource - manages DS save/restore on context switch So it removes a lot of code. But perfmon2 does not use: - buffer allocation - PEBS record abstraction - BTS (not yet) --
| Yu Zhao | [PATCH 2/16 v6] PCI: define PCI resource names in an 'enum' |
| Greg Kroah-Hartman | [PATCH 011/196] sysfs: Fix a copy-n-paste typo in comment |
| Laurent Riffard | Re: 2.6.23-mm1: BUG in reiserfs_delete_xattrs |
| Ben Crowhurst | Kernel Development & Objective-C |
git: | |
| Kyle Rose | [OT] Re: C++ *for Git* |
| cte | linking libgit.a in C++ projects |
| Linus Torvalds | Re: CRLF problems with Git on Win32 |
| Pierre Habouzit | Re: [PATCH] bundle, fast-import: detect write failure |
| Thor Lancelot Simon | Re: sysctl knob to let sugid processes dump core (pr 15994) |
| YAMAMOTO Takashi | Re: Patches for EST and SMP |
| Bill Studenmund | Re: @booted_kernel magic symlink? |
| Adam Hamsik | Re: Thread benchmarks, round 2 |
| Chris | OpenBSD 4.4 installation error: write failed; file system full |
| Samuel Moñux | Cyrus IMAP performance problems [Long] |
| Steve B | Intel Atom and D945GCLF2 |
| James Hartley | scp batch mode? |
