Subject: Re: [PATCH] perf tools: Fix build failures on ppc64le

From: Stephen Rothwell <[email-masked]>
Date: Sun, 13 Oct 2024 20:29:44 +1100

Hi Ian,

On Fri, 11 Oct 2024 00:05:21 -0700 Ian Rogers <[email-masked]> wrote:
>
> Elsewhere for PPC we carry:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/perf/tests/bp_account.c#n3
> ```
> /*
>  * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select
>  * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
>  */
> #define __SANE_USERSPACE_TYPES__
> ```
> Given the comment I suspect we need to do similar to fix this.
> Stephen, could you test?

I added that to the start of tools/perf/util/evsel.c and it builds fine.

Thanks
-- 
Cheers,
Stephen Rothwell