summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-10-20 09:32:09 -0700
committerThomas Gleixner <tglx@kernel.org>2026-11-09 16:34:51 +0100
commit2727aca4439ee4b9085141a3babadc8de580397f (patch)
tree2e825831180c2f5bfab347b028e5622a0a40e14e /tools/perf/scripts/python
parent6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff)
vdso: Add VDSO_UNALIGNED_PACKED config option
Commit a339671db64b ("vdso: Switch get/put_unaligned() from packed struct to memcpy()") switched __get_unaligned_t() and __put_unaligned_t() from using a __packed struct to __builtin_memcpy() to avoid strict aliasing undefined behavior. On targets without efficient unaligned memory accesses (such as ARMv5), GCC may not inline __builtin_memcpy() into byte shifts and instead emit stack spills or much slower out-of-line memcpy() calls. Add CONFIG_VDSO_UNALIGNED_PACKED, defaulting to !HAVE_EFFICIENT_UNALIGNED_ACCESS, to use the __packed struct implementation on strict-alignment targets while keeping __builtin_memcpy() elsewhere and in tools/. Fixes: a339671db64b ("vdso: Switch get/put_unaligned() from packed struct to memcpy()") Reported-by: Stefan Kerkmann <s.kerkmann@pengutronix.de> Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20261020163210.742728-1-irogers@google.com Closes: https://lore.kernel.org/lkml/47f8c30b-e326-4ff0-a2bc-5683209a9e2d@pengutronix.de/
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions