From f678274477de28d08d849054bb4c55ac06f78b2c Mon Sep 17 00:00:00 2001 From: claudio Date: Fri, 10 Mar 2023 11:01:52 +0000 Subject: [PATCH] Update the stack offset for the profile probe to account for the clockintr API functions. Fixes flamegraphs on archs I could test. OK bluhm@ miod@ --- sys/dev/dt/dt_dev.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/dev/dt/dt_dev.c b/sys/dev/dt/dt_dev.c index db2d60b4a23..a6e2a0cfd38 100644 --- a/sys/dev/dt/dt_dev.c +++ b/sys/dev/dt/dt_dev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dt_dev.c,v 1.22 2022/02/27 10:14:01 bluhm Exp $ */ +/* $OpenBSD: dt_dev.c,v 1.23 2023/03/10 11:01:52 claudio Exp $ */ /* * Copyright (c) 2019 Martin Pieuchot @@ -54,7 +54,10 @@ * proc_trampoline+0x1c */ #if defined(__amd64__) -#define DT_FA_PROFILE 5 +#define DT_FA_PROFILE 7 +#define DT_FA_STATIC 2 +#elif defined(__i386__) +#define DT_FA_PROFILE 8 #define DT_FA_STATIC 2 #elif defined(__octeon__) #define DT_FA_PROFILE 6 @@ -63,7 +66,7 @@ #define DT_FA_PROFILE 6 #define DT_FA_STATIC 2 #elif defined(__sparc64__) -#define DT_FA_PROFILE 5 +#define DT_FA_PROFILE 7 #define DT_FA_STATIC 1 #else #define DT_FA_STATIC 0 -- 2.20.1