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

From: Stephen Rothwell
Date: Sun Oct 13 2024 - 05:30:25 EST


Hi Ian,

On Fri, 11 Oct 2024 00:05:21 -0700 Ian Rogers <irogers@xxxxxxxxxx> 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

Attachment: pgpQmy0GjfWBL.pgp
Description: OpenPGP digital signature