Hi, On Wed, Nov 26, 2008 at 12:31 AM, Andrej van der Zee <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for your reply. > >> The second waitpid() near the end is to reclaim the child's resources. >> And yes, the counters values (perfmon2 state) remains available until >> the last file descriptor on it closes. > > So what is the context actually inside the kernel? I can see that it > is used in all calls to access the PMUs registers through its file > descriptor, but I guess it is not a "regular" file, is it? > Yes, the file descriptor does not point to an actual file. Just like for sockets or pipes, it is a pseudo file.
The perfmon context encapsulates the full PMU state and other support information such as pointer to the sampling buffer and such. > Cheers, > Andrej > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel