git: 996d5457165d - stable/13 - dtrace: correct profile aframes value for riscv
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Jan 2023 16:45:19 UTC
The branch stable/13 has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=996d5457165d8c86d0356b283d183e31c3107af5
commit 996d5457165d8c86d0356b283d183e31c3107af5
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2023-01-11 18:06:17 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-01-23 16:42:36 +0000
dtrace: correct profile aframes value for riscv
Experimentation shows this is the correct value; the dtrace/interrupt
handler frames are omitted, while the backtrace of the active thread is
recorded in its entirety.
Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37662
(cherry picked from commit 40fdda022a16ec1a5ec18e7111a8cb8c147aefaf)
---
sys/cddl/dev/profile/profile.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/cddl/dev/profile/profile.c b/sys/cddl/dev/profile/profile.c
index 530a8fcd1749..48decf3a89cf 100644
--- a/sys/cddl/dev/profile/profile.c
+++ b/sys/cddl/dev/profile/profile.c
@@ -127,8 +127,7 @@ struct profile_probe_percpu;
#endif
#ifdef __riscv
-/* TODO: verify */
-#define PROF_ARTIFICIAL_FRAMES 10
+#define PROF_ARTIFICIAL_FRAMES 12
#endif
typedef struct profile_probe {