linux/tools/perf/arch/powerpc/util
Likhitha Korrapati 7e442be701 perf tools: Fix is_compat_mode build break in ppc64
Commit 54f9aa1092 ("tools/perf/powerpc/util: Add support to
handle compatible mode PVR for perf json events") introduced
to select proper JSON events in case of compat mode using
auxiliary vector. But this caused a compilation error in ppc64
Big Endian.

arch/powerpc/util/header.c: In function 'is_compat_mode':
arch/powerpc/util/header.c:20:21: error: cast to pointer from
integer of different size [-Werror=int-to-pointer-cast]
   20 |         if (!strcmp((char *)platform, (char *)base_platform))
      |                     ^
arch/powerpc/util/header.c:20:39: error: cast to pointer from
integer of different size [-Werror=int-to-pointer-cast]
   20 |         if (!strcmp((char *)platform, (char *)base_platform))
      |

Commit saved the getauxval(AT_BASE_PLATFORM) and getauxval(AT_PLATFORM)
return values in u64 which causes the compilation error.

Patch fixes this issue by changing u64 to "unsigned long".

Fixes: 54f9aa1092 ("tools/perf/powerpc/util: Add support to handle compatible mode PVR for perf json events")
Signed-off-by: Likhitha Korrapati <likhitha@linux.ibm.com>
Reviewed-by: Athira Rajeev <atrajeev@linux.ibm.com>
Link: https://lore.kernel.org/r/20250321100726.699956-1-likhitha@linux.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2025-03-23 23:14:19 -07:00
..
Build perf dwarf-regs: Move powerpc dwarf-regs out of arch 2024-11-09 08:39:13 -08:00
book3s_hcalls.h
book3s_hv_exits.h
event.c perf tools: Move 'struct perf_sample' to a separate header file to disentangle headers 2022-10-31 11:06:41 -03:00
evsel.c perf powerpc: Add support for PERF_SAMPLE_WEIGHT_STRUCT 2021-03-26 08:49:48 -03:00
header.c perf tools: Fix is_compat_mode build break in ppc64 2025-03-23 23:14:19 -07:00
kvm-stat.c perf kvm powerpc: Fix build 2024-02-07 08:55:11 -08:00
mem-events.c perf mem: Clean up perf_mem_event__supported() 2024-01-24 14:04:46 -08:00
mem-events.h perf mem: Clean up perf_mem_events__name() 2024-01-24 14:04:28 -08:00
perf_regs.c perf tools arch powerpc: Add register mask for power11 PVR in extended regs 2024-12-18 16:24:31 -03:00
pmu.c perf mem: Clean up perf_mem_events__name() 2024-01-24 14:04:28 -08:00
skip-callchain-idx.c perf dso: Fix address sanitizer build 2024-07-12 09:38:41 -07:00
sym-handling.c perf map: Add helper for ->map_ip() and ->unmap_ip() 2023-04-06 22:10:17 -03:00
unwind-libdw.c perf tools: Fix compile error on sample->user_regs 2025-02-14 12:33:41 -08:00
unwind-libunwind.c
utils_header.h perf tools: Fix various typos in comments 2021-03-23 17:13:43 -03:00