On Mon, 8 Jul 2019 at 18:58, Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> wrote: > > On Mon, Jul 8, 2019 at 8:11 AM Matt Hart <matthew.hart@xxxxxxxxxx> wrote: > > > > Hi all, > > > > I bisected a perf build error on ARMv7 to this patch: > > libbpf.c: In function ‘perf_event_open_probe’: > > libbpf.c:4112:17: error: cast from pointer to integer of different > > size [-Werror=pointer-to-int-cast] > > attr.config1 = (uint64_t)(void *)name; /* kprobe_func or uprobe_path */ > > ^ > > > > Is this a known issue? > > No, thanks for reporting! > > It should be > > attr.config1 = (uint64_t)(uintptr_t)(void *)name; > > to avoid warning on 32-bit architectures. Tested with manual change and can confirm perf now builds without errors. > > I'll post a fix later today, but if you could verify this fixes > warning for you, I'd really appreciate that! Thanks!