Re: [RFC][PATCH] hugetlbfs read support

Nishanth Aravamudan
2007-07-10T15:43:13Z

On 10.07.2007 [08:37:52 -0700], Bill Irwin wrote:
> On Mon, Jul 09, 2007 at 12:28:11PM -0700, Badari Pulavarty wrote:
> > Support for reading from hugetlbfs files. libhugetlbfs lets application
> > text/data to be placed in large pages. When we do that, oprofile doesn't
> > work - since it tries to read from it.
> > This code is very similar to what do_generic_mapping_read() does, but
> > I can't use it since it has PAGE_CACHE_SIZE assumptions. Christoph
> > Lamater's cleanup to pagecache would hopefully give me all of this.
> > Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
>
> What's the testing status of all this? I thoroughly approve of the
> concept, of course.

With this change, OProfile is able to do symbol lookup (which is
achieved via libbfd, which does reads() of the appropriate files) with
relinked binaries in post-processing. The file utility is also able to
recognize persistent text segments as ELF executables.

If you would like further testing, let me know what.

Thanks,
Nish

--
Nishanth Aravamudan <nacc@us.ibm.com>
IBM Linux Technology Center