From fb6fdfe211384968ec42a33a351975d4dbf3ec2c Mon Sep 17 00:00:00 2001 From: Serhei Makarov Date: Wed, 8 Nov 2023 10:35:23 -0500 Subject: [PATCH] eu-stacktrace WIP: update SysprofCaptureStackUser format --- src/stacktrace.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/stacktrace.c b/src/stacktrace.c index 142c807dc..cd38c9982 100644 --- a/src/stacktrace.c +++ b/src/stacktrace.c @@ -100,10 +100,21 @@ typedef struct SysprofCaptureFrame frame; uint64_t size; int32_t tid; + uint32_t padding; unsigned char data[0]; } SysprofCaptureStackUser SYSPROF_ALIGNED_END(1); +/* Does not appear standalone; instead, appended to the end of a SysprofCaptureStackUser frame. */ +SYSPROF_ALIGNED_BEGIN(1) +typedef struct +{ + uint32_t n_regs; + uint32_t padding; + uint64_t regs[0]; +} SysprofCaptureUserRegs +SYSPROF_ALIGNED_END(1); + #endif // ifndef SYSPROF_CAPTURE_FRAME_STACK_USER #endif // ifdef HAVE_SYSPROF_4_HEADERS -- 2.47.2