Gary,

On Fri, Aug 15, 2008 at 11:22 PM,  <[EMAIL PROTECTED]> wrote:
>
> I am trying to put the perfmon v2.2 patches into a redhat 2.6.18 kernel and
> not having a lot of success.
> I have been able to build and load the kernel but both pfmon and some of
> the examples delivered
> with libpfm have problems running.
>
> I have tried with libpfm/pfmon versions of 3.4 and 3.5 but both seem to get
> the same results.
>
> I found the following statement in the libpfm README file:
>
> To run the programs in the examples subdir, you MUST be using a linux
> kernel version of
>  2.6.24 or later with the corresponding perfmon new code base patch
> installed.
>
> Is this comment accurate and if so does it also apply to other tools that
> use libpfm ???
>
The comment refers mostly to the syscall numbers. The libpfm has knowledge
of syscall number for 2.6.24 and up. Older kernels will likely need adjustments
in pfmlib_os_linux.c. This may be your problem, so let's check that first.

You need to make sure that the pfm_create_context syscall number matches
the one used in the kernel. On x86-64, it is in
include/asm-x86_64/unistd.h. If not
then add a case to the corresponding switch statement in pfmlib_os_linux.c for
your arch.

-------------------------------------------------------------------------
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

Reply via email to