diff options
author | Serhei Makarov <serhei@serhei.io> | 2023-11-08 10:35:23 -0500 |
---|---|---|
committer | Serhei Makarov <serhei@serhei.io> | 2023-11-08 10:35:23 -0500 |
commit | fb6fdfe211384968ec42a33a351975d4dbf3ec2c (patch) | |
tree | 9860304bba92b545e59c8ebe0b9c883f16d01c58 | |
parent | fc2b1a0940a1f503150a274abe9205a84976f94d (diff) |
eu-stacktrace WIP: update SysprofCaptureStackUser format
-rw-r--r-- | src/stacktrace.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stacktrace.c b/src/stacktrace.c index 142c807d..cd38c998 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 |