Re: Perf and ftrace [was Re: PyTimechart]
From: Peter Zijlstra
Date: Fri May 14 2010 - 03:54:25 EST
On Thu, 2010-05-13 at 12:31 -0400, Mathieu Desnoyers wrote:
>
> In addition, this would play well with mmap() too: we can simply add a
> ring_buffer_get_mmap_offset() method to the backend (exported through another
> ioctl) that would let user-space know the start of the mmap'd buffer range
> currently owned by the reader. So we can inform user-space of the currently
> owned page range without even changing the underlying memory map.
I still think keeping refs to splice pages is tricky at best. Suppose
they're spliced into the pagecache of a file, it could stay there for a
long time under some conditions.
Also, the splice-client (say the pagecache) and the mmap will both want
the pageframe to contain different information.
--
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/