git: 1b69d2aedc68 - stable/13 - DTrace: remove sparc64 remnants in non-contrib code
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Feb 2022 20:01:07 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=1b69d2aedc687b441ff2e2fb2298fc8ebaec9edd commit 1b69d2aedc687b441ff2e2fb2298fc8ebaec9edd Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2021-03-21 01:19:35 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-02-08 20:00:55 +0000 DTrace: remove sparc64 remnants in non-contrib code Sponsored by: The FreeBSD Foundation (cherry picked from commit 64a790d264808116469914c19265e905b3929e00) --- 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 ca373f50a1a0..1e7a84c272cd 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