Skip to content

RFC Perf misaligned address fixes

Numfor Mbiziwo-Tiapo lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Fix event.c misaligned address errortools/perf/util/event.h+1 -02 replies
2/2Fix evsel.c misaligned address errorstools/perf/util/evsel.c+16 -120 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchNumfor Mbiziwo-Tiapo
1/2Not-Quite-Signed-off-by
2/2Not-Quite-Signed-off-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
2.22.0.657.g960e92d24f-goog