Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2023 16:43:25 GMT
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 635ecbf47015 - main - dtrace/powerpc: Adjust AFRAMES for fbt and profile
Message-ID:  <202303111643.32BGhPFN087323@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhibbits:

URL: https://cgit.FreeBSD.org/src/commit/?id=635ecbf47015c259226cb47a3de8fc00c9ed5924

commit 635ecbf47015c259226cb47a3de8fc00c9ed5924
Author:     Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2023-03-11 16:23:38 +0000
Commit:     Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2023-03-11 16:35:27 +0000

    dtrace/powerpc: Adjust AFRAMES for fbt and profile
    
    FBT_AFRAMES was skipping over too many frames, while PROFILE_AFRAMES was
    skipping over too few.  Adjust them empirically.
---
 sys/cddl/dev/fbt/powerpc/fbt_isa.c | 2 +-
 sys/cddl/dev/profile/profile.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/cddl/dev/fbt/powerpc/fbt_isa.c b/sys/cddl/dev/fbt/powerpc/fbt_isa.c
index 0da74c9cf076..eb7feceb269d 100644
--- a/sys/cddl/dev/fbt/powerpc/fbt_isa.c
+++ b/sys/cddl/dev/fbt/powerpc/fbt_isa.c
@@ -48,7 +48,7 @@
 
 #define	FBT_ENTRY	"entry"
 #define	FBT_RETURN	"return"
-#define	FBT_AFRAMES	7
+#define	FBT_AFRAMES	5
 
 int
 fbt_invop(uintptr_t addr, struct trapframe *frame, uintptr_t rval)
diff --git a/sys/cddl/dev/profile/profile.c b/sys/cddl/dev/profile/profile.c
index 57793d116283..439a62f4b9da 100644
--- a/sys/cddl/dev/profile/profile.c
+++ b/sys/cddl/dev/profile/profile.c
@@ -101,7 +101,7 @@
 /*
  * This value is bogus just to make module compilable on powerpc
  */
-#define	PROF_ARTIFICIAL_FRAMES	3
+#define	PROF_ARTIFICIAL_FRAMES	8
 #endif
 
 struct profile_probe_percpu;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303111643.32BGhPFN087323>