Chris, On Wed, Dec 3, 2008 at 9:57 PM, Chris J Arges <[EMAIL PROTECTED]> wrote: > Hi, I'm working on putting together the minimal patchset for perfmon3 on > power, and I'm running into an issue. > Good to hear you're working on the PPC patchset! Hope you are synchronizing with other people interested in PPC.
> With the set of 5 pfm syscalls, the base syscall number of power is 319 for > perfmon3. I'm trying to run examples/self and after debugging the app, I > found that it is incorrectly detecting the _pfmlib_sys_base as 323. In the > full perfmon3 implementation this isn't an issue as the syscall base is > found in /sys/kernel/perfmon/syscall and it is correctly returned here. For > the minimal perfmon3, it uses the hardcoded values which check the kernel > version number (2.6.28 in my case) and then return the appropriate code. > The base syscall number for minimal perfmon3 and full permfon ought to be the same. If not, then there is a bug. Perfmon syscalls are added at the end of the regular syscalls, so should be the same unless you are not using the same kernel code base. > Now the question is... if both a minimal perfmon3, a full perfmon3, and a > full perfmon2 exist, would using just the kernel version to find a hardcoded > value be still ok to do... or would there be another switch I could add that > would check for perfmon version. Also, would it make sense to have the > perfmon fs syscall entry for a more accurate way to detect the syscall base. > Full perfmon2 and perfmon3 will keep the /sys/kernel/perfmon/syscall API,but the minimal patchset will not as it is going to go upstream. Once upstream base syscall will be defined forever. Something, I'd like to point out with the syscalls. If you have followed LKML last week, there was an additional review by the x86 maintainers and it is likely the number of syscalls will change again from 5 to 6. I am currently changing the patchset to integrate all the comments. Hopefully this should be done by the end of next week at the latest. ------------------------------------------------------------------------- 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