User: Password:
|
|
Subscribe / Log in / New account

Re: [PATCH 08/12] perf: Carve out mmap helpers for general use

From:  Arnaldo Carvalho de Melo <acme-AT-infradead.org>
To:  Borislav Petkov <bp-AT-amd64.org>
Subject:  Re: [PATCH 08/12] perf: Carve out mmap helpers for general use
Date:  Fri, 21 Jan 2011 15:29:37 -0200
Message-ID:  <20110121172937.GC15066@ghostprotocols.net>
Cc:  peterz-AT-infradead.org, mingo-AT-elte.hu, tony.luck-AT-intel.com, rostedt-AT-goodmis.org, fweisbec-AT-gmail.com, linux-edac-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, Borislav Petkov <borislav.petkov-AT-amd.com>
Archive-link:  Article

Em Fri, Jan 21, 2011 at 04:09:31PM +0100, Borislav Petkov escreveu:
> From: Borislav Petkov <borislav.petkov@amd.com>
> 
> Export the mmap_read* helpers into tools/lib/perf/mmap.[ch]

Borislav, can you take a look at:

http://git.kernel.org/?p=linux/kernel/git/acme/linux-2.6.git;...

More specifically take a look at the function test__basic_mmap in:

http://git.kernel.org/?p=linux/kernel/git/acme/linux-2.6.git;...

434 /*
435  * This test will generate random numbers of calls to some getpid syscalls,
436  * then establish an mmap for a group of events that are created to monitor
437  * the syscalls.
438  *
439  * It will receive the events, using mmap, use its PERF_SAMPLE_ID generated
440  * sample.id field to map back to its respective perf_evsel instance.
441  *
442  * Then it checks if the number of syscalls reported as perf events by
443  * the kernel corresponds to the number of syscalls made.
444  */

I'll read the rest of your patchset to see if there are more things like
this.

- Arnaldo


(Log in to post comments)


Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds