Hello Gary,

On Wed, Jul 16, 2008 at 1:16 AM,  <[EMAIL PROTECTED]> wrote:

> file "perfmon-new-base-060926.tar.gz" from sourceforge and expanded it into
> a new
> There were probably about 20 to 30 source files where the patches failed to
> apply.

That's not surprising if you're trying on a very old kernel.

> Some of these could be resolved by just relocating the patch but some also
> required changing
> the value assigned to new variables defined in the perfmon patches.  As an
> example the
> variable TIF_PERFMON_WORK was assigned a value of 9 in the download but
> Redhat
> has already added a different variable with a value of 9 so I changed
> TIF_PERFMON_WORK
> to use a value of 10 which seemed to be available.  A few of the patches
> provided in the download

That should work. There are certain architectures, e.g., Itanium where you have
to be careful because the value has to be below 8, otherwise it won't be taken
care of by the assembly code in entry.S.


> will not apply at all.  They are to modules "arch/x86_64/ia32/ptrace32.c",
> "arch/x86_64/kernel/ptrace.c",
> and "arch/ia64/kernel/ptrace.c".  It appears that Redhat has significantly
> rewritten code in these areas
> so it is not at all clear if or where these changes should be applied.
>
On non-IA64 architectures, the only dependency on ptrace is for
ptrace_check_attach()
and ptrace_may_attach() if I recall.

> Three questions:
>
> Has anyone already installed the perfmon v2.2 patches in a 2.6.18 kernel
> delivered with RHEL5 ?
>
Well, I think this is not impossible and should not require a lot of
effort especially
if you do not use the latest perfmon patches, e.g., the ones depending
on hr_timers.
New files should apply, the rest does require manual merge for sure.

> Is this approach (changing variable values) a reasonable way to handle
> conflicts with Redhat changes to the same modules ?

Yes.

>
> Since I need this to run on both x86_64 and ia64 platforms, is it correct
> that the changes to the ptrace modules are probably important to me ?
>

Don't know exactly what they are so it is hard for me to comment.

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