On Thu, Dec 3, 2020 at 2:08 PM Jiri Olsa <jolsa@xxxxxxxxxx> wrote: > > We can't assume the address size is always size of unsigned > long, we have to use directly the ELF's address size. > > Changing addrs array to __u64 and convert 32 bit address > values when copying from ELF section. > > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> > --- It looks ok to me, but I didn't expect that changes would be so numerous... Makes me wonder if pahole ever supported working with ELF files of different bitness. I'll defer to Arnaldo to make a call on whether this is necessary. > btf_encoder.c | 24 +++++++++++++++++------- > 1 file changed, 17 insertions(+), 7 deletions(-) > [...]