[RFC][PATCH 0/2] Perf misaligned address fixes

From: Numfor Mbiziwo-Tiapo
Date: Wed Jul 24 2019 - 18:50:00 EST


These patches are all errors found by running perf test with the
ubsan (undefined behavior sanitizer version of perf).

They are solutions to misaligned address errors caught by ubsan
but they would break compatibility between perf data files.

To build perf with ubsan run:
make -C tools/perf USE_CLANG=1 EXTRA_CFLAGS="-fsanitize=undefined"

Perf will throw errors that have been fixed in these patches
that have not yet been merged:

https://lore.kernel.org/patchwork/patch/1104065/
https://lore.kernel.org/patchwork/patch/1104066/

Please feel free to leave comments.

Numfor Mbiziwo-Tiapo (2):
Fix event.c misaligned address error
Fix evsel.c misaligned address errors

tools/perf/util/event.h | 1 +
tools/perf/util/evsel.c | 28 ++++++++++++++++------------
2 files changed, 17 insertions(+), 12 deletions(-)

--
2.22.0.657.g960e92d24f-goog