Re: [tip:perf/urgent] perf tools: Allow building for ARM

From: Jamie Iles
Date: Fri Dec 11 2009 - 08:04:44 EST


On Fri, Dec 11, 2009 at 12:54:33PM +0000, tip-bot for Jamie Iles wrote:
> Commit-ID: 58e9f94138c1d9c47f6a63632ca7a78fc6dcc15f
> Gitweb: http://git.kernel.org/tip/58e9f94138c1d9c47f6a63632ca7a78fc6dcc15f
> Author: Jamie Iles <jamie.iles@xxxxxxxxxxxx>
> AuthorDate: Fri, 11 Dec 2009 12:20:09 +0000
> Committer: Ingo Molnar <mingo@xxxxxxx>
> CommitDate: Fri, 11 Dec 2009 13:50:21 +0100
>
> perf tools: Allow building for ARM
>
> Add definitions of rmb() and cpu_relax() and include the ARM
> unistd.h header. The __kuser_memory_barrier helper in the helper
> page is used to provide the correct memory barrier depending on
> the CPU type.
>
> [ The rmb() will work on v6 and v7, segfault on v5. Dynamic
> detection to add v5 support will be added later. ]
Sorry Ingo, my comment probably wasn't clear enough. The helper that Mikael
suggested should work for _all_ ARM processors including v5 and earlier. It
will just be a branch to a nop.

Jamie
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/