git: 40fdda022a16 - main - dtrace: correct profile aframes value for riscv
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Jan 2023 15:06:55 UTC
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=40fdda022a16ec1a5ec18e7111a8cb8c147aefaf
commit 40fdda022a16ec1a5ec18e7111a8cb8c147aefaf
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2023-01-11 18:06:17 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-01-12 15:06:07 +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
---
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 ce9ba591ebb7..57793d116283 100644
--- a/sys/cddl/dev/profile/profile.c
+++ b/sys/cddl/dev/profile/profile.c
@@ -115,8 +115,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 {