RE: [RFC][PATCH 1/2] Fix event.c misaligned address error

2019-09-12 Thread David Laight
From: Ian Rogers > Sent: 11 September 2019 10:09 > On Wed, Jul 24, 2019 at 3:50 PM Numfor Mbiziwo-Tiapo wrote: > > > > The ubsan (undefined behavior sanitizer) build of perf throws an > > error when the synthesize "Synthesize cpu map" function from > > perf test is run. > > > > This can be reprodu

Re: [RFC][PATCH 1/2] Fix event.c misaligned address error

2019-09-11 Thread Ian Rogers
An idea here is that, if this breaks backward compatibility, we introduce an aligned variant and work to deprecate the unaligned variant. I will look into making a patch set. Thanks, Ian On Wed, Jul 24, 2019 at 3:50 PM Numfor Mbiziwo-Tiapo wrote: > > The ubsan (undefined behavior sanitizer) buil

[RFC][PATCH 1/2] Fix event.c misaligned address error

2019-07-24 Thread Numfor Mbiziwo-Tiapo
The ubsan (undefined behavior sanitizer) build of perf throws an error when the synthesize "Synthesize cpu map" function from perf test is run. This can be reproduced by running (from the tip directory): make -C tools/perf USE_CLANG=1 EXTRA_CFLAGS="-fsanitize=undefined" (see cover letter for why