Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jan 2025 16:08:45 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 89073e0ad444 - stable/14 - dtrace: Fix the definition of pc_t
Message-ID:  <202501301608.50UG8jde044620@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=89073e0ad444b931cb3ca277daac99f83bb6e4c7

commit 89073e0ad444b931cb3ca277daac99f83bb6e4c7
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-01-22 14:34:29 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-01-30 15:23:04 +0000

    dtrace: Fix the definition of pc_t
    
    This type is used only to store PC values corresponding to a thread
    stack trace, so a pointer type is not quite right.  Switch to
    vm_offset_t, as in struct stack, to simplify a port of DTrace to CHERI.
    
    No functional change intended.
    
    MFC after:      1 week
    Sponsored by:   Innovate UK
    
    (cherry picked from commit 8ce6b4f2c48eca758fac90b58924f9b2e38fbc49)
---
 sys/cddl/contrib/opensolaris/uts/common/sys/dtrace_impl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace_impl.h b/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace_impl.h
index 45201447024e..cfb97c71f262 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace_impl.h
+++ b/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace_impl.h
@@ -51,7 +51,7 @@ extern "C" {
 #include <sys/file.h>
 
 #ifndef illumos
-typedef uintptr_t		pc_t;
+typedef vm_offset_t		pc_t;
 typedef	u_long			greg_t;
 #endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501301608.50UG8jde044620>