git: 64a790d26480 - main - DTrace: remove sparc64 remnants in non-contrib code
Ed Maste
emaste at FreeBSD.org
Mon Mar 22 13:35:10 UTC 2021
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=64a790d264808116469914c19265e905b3929e00
commit 64a790d264808116469914c19265e905b3929e00
Author: Ed Maste <emaste at FreeBSD.org>
AuthorDate: 2021-03-21 01:19:35 +0000
Commit: Ed Maste <emaste at FreeBSD.org>
CommitDate: 2021-03-22 13:34:57 +0000
DTrace: remove sparc64 remnants in non-contrib code
Sponsored by: The FreeBSD Foundation
---
sys/cddl/dev/profile/profile.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/sys/cddl/dev/profile/profile.c b/sys/cddl/dev/profile/profile.c
index 4fc9f6f22eef..6074354af18d 100644
--- a/sys/cddl/dev/profile/profile.c
+++ b/sys/cddl/dev/profile/profile.c
@@ -83,15 +83,6 @@
* appears as its own stack frame. All of this means that we need to add one
* frame for amd64, and then take one away for both amd64 and i386.
*
- * On SPARC, the picture is further complicated because the compiler
- * optimizes away tail-calls -- so the following frames are optimized away:
- *
- * profile_fire
- * cyclic_expire
- *
- * This gives three frames. However, on DEBUG kernels, the cyclic_expire
- * frame cannot be tail-call eliminated, yielding four frames in this case.
- *
* All of the above constraints lead to the mess below. Yes, the profile
* provider should ideally figure this out on-the-fly by hiting one of its own
* probes and then walking its own stack trace. This is complicated, however,
@@ -103,14 +94,6 @@
#else
#ifdef __i386
#define PROF_ARTIFICIAL_FRAMES 6
-#else
-#ifdef __sparc
-#ifdef DEBUG
-#define PROF_ARTIFICIAL_FRAMES 4
-#else
-#define PROF_ARTIFICIAL_FRAMES 3
-#endif
-#endif
#endif
#endif
More information about the dev-commits-src-main
mailing list