Gary,

On Sat, Aug 16, 2008 at 1:33 AM,  <[EMAIL PROTECTED]> wrote:
> Stephane
>
> I actually had problems with syscall numbers not matching
> when I first loaded my rebuilt kernel.  Perhaps I did
> not "fix" this issue correctly.  My version of the patches
> that add the syscall numbers to the kernel look like this:
>
> diff -urp linux-2.6.18.base/include/asm-x86_64/unistd.h linux-2.6.18
> /include/asm-x86_64/unistd.h
> --- linux-2.6.18.base/include/asm-x86_64/unistd.h   2006-09-21
> 23:45:38.000000000 -0700
> +++ linux-2.6.18/include/asm-x86_64/unistd.h    2006-09-22
> 02:00:55.000000000 -0700
> @@ -619,10 +619,34 @@ __SYSCALL(__NR_sync_file_range, sys_sync
>  __SYSCALL(__NR_vmsplice, sys_vmsplice)
>  #define __NR_move_pages        279
>  __SYSCALL(__NR_move_pages, sys_move_pages)
> -
> +#define __NR_pfm_create_context    286
> + __SYSCALL(__NR_pfm_create_context, sys_pfm_create_context)
>
>
> Is it important that __NR_pfm_create_context be one larger than
> __NR_move_pages (which I think it was before I tried to fix this issue) ??
>
> The value being used by libpfm was 286 so I changed to kernel patch to
> match
> what libpfm was using.  Now I seem to be getting to the right kernel
> functions
> when libpfm does the syscalls but if there is another side effect of the
> syscall
> numbers not being contiguous, I should probably change libpfm and put the
> kernel
> back to 280.  What would you suggest for this ??
>
> When you say to add a case statement to the switch for my arch, are you
> referring to the switch in the function adjust_sys_base ??
>
Try making the syscall contiguous first. So adjust libpfm, no the kernel.
And yes, I was referring to the adjust_sys_base() function.

Also just to make sure I understand what you are doing. Can you confirm
you're backporting a kernel perfmon v2.2 patch into 2.6.18 and not the latest
perfmon v2.81?

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