Skip to content

Perf stack unwinding with pointer authentication

James Clark linux-arm-kernel linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest1 patch 11 repliesIn review

Changes in v2 from the cover letter

* Use weak symbols instead of #ifdefs which simplified things
* Remove the new files as everything fits well into existing ones
* Never allow opening the event if CONFIG_ARM64_PTR_AUTH isn't set
* Include only the kernel side change in this set, the perf tool changes are here [1] which I will also rebase and resubmit
* Rebase onto tip/perf/core (82aad7ff7ac)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1perf arm64: Send pointer auth masks to ring bufferarch/arm64/include/asm/perf_event.h arch/arm64/kernel/perf_event.c include/linux/perf_event.h +2 more+110 -111 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/1] Perf stack unwinding with pointer authentication

Hi,

I've taken up this change from Andrew and made some improvements. It also didn't apply cleanly anymore so I thought I would resend.

I know there were some discussions with Vince Weaver about having something arch specific in perf_event_open, so it would be good to get some more feedback on that. I'm happy to change it so that it's just called PERF_SAMPLE_PTRAUTH, but given how arch specific the output is, I'm not sure if that is best.

Thanks
James

Changes since V1:

* Use weak symbols instead of #ifdefs which simplified things
* Remove the new files as everything fits well into existing ones
* Never allow opening the event if CONFIG_ARM64_PTR_AUTH isn't set
* Include only the kernel side change in this set, the perf tool changes are here [1] which I will also rebase and resubmit
* Rebase onto tip/perf/core (82aad7ff7ac)

[1]: https://lore.kernel.org/lkml/[email protected]/T/#t

Andrew Kilroy (1):
perf arm64: Send pointer auth masks to ring buffer

 arch/arm64/include/asm/perf_event.h | 32 +++++++++++++++++++++++++++++
 arch/arm64/kernel/perf_event.c      | 32 +++++++++++++++++++++++++++++
 include/linux/perf_event.h          | 12 +++++++++++
 include/uapi/linux/perf_event.h     |  4 +++-
 kernel/events/core.c                | 31 ++++++++++++++++++++++++++++
 5 files changed, 110 insertions(+), 1 deletion(-)
Signature · 1 line
2.28.0