aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2023-03-11 16:23:38 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2023-03-15 20:31:32 +0000
commit72d1ee8d6d76bd7a1e123d354a5fb356e3cc7908 (patch)
treeb4f93b21f55f5d321cc8f35db9a7202781aebea1
parentfcd94047f33beb98f1eee4d09e29d6c8de31c4a6 (diff)
downloadsrc-72d1ee8d6d76bd7a1e123d354a5fb356e3cc7908.tar.gz
src-72d1ee8d6d76bd7a1e123d354a5fb356e3cc7908.zip
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. Approved by: re (cperciva) (cherry picked from commit 635ecbf47015c259226cb47a3de8fc00c9ed5924) (cherry picked from commit 1026d170f4f70cdeb63cd05819c5557041e8ea94)
-rw-r--r--sys/cddl/dev/fbt/powerpc/fbt_isa.c2
-rw-r--r--sys/cddl/dev/profile/profile.c2
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 48decf3a89cf..99381ea7d745 100644
--- a/sys/cddl/dev/profile/profile.c
+++ b/sys/cddl/dev/profile/profile.c
@@ -108,7 +108,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;