Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 disable 32 bit signal ktrace records; 32...



details:   https://anonhg.NetBSD.org/src/rev/423b401c97ad
branches:  trunk
changeset: 357985:423b401c97ad
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 06 19:15:27 2017 +0000

description:
disable 32 bit signal ktrace records; 32 bit traced process produce 64 bit
trace records, the only record that we can't parse is that one :-)
XXX: pullup-8

diffstat:

 sys/compat/netbsd32/netbsd32_netbsd.c |  10 +++++++---
 sys/compat/netbsd32/netbsd32_signal.c |  10 ++++++----
 2 files changed, 13 insertions(+), 7 deletions(-)

diffs (80 lines):

diff -r 97b5718e5510 -r 423b401c97ad sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c     Wed Dec 06 17:54:58 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c     Wed Dec 06 19:15:27 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_netbsd.c,v 1.207 2017/07/31 15:38:01 maxv Exp $       */
+/*     $NetBSD: netbsd32_netbsd.c,v 1.208 2017/12/06 19:15:27 christos Exp $   */
 
 /*
  * Copyright (c) 1998, 2001, 2008 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.207 2017/07/31 15:38:01 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.208 2017/12/06 19:15:27 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ddb.h"
@@ -159,7 +159,11 @@
        .e_usertrap =           NULL,
        .e_ucsize =             sizeof(ucontext32_t),
        .e_startlwp =           startlwp32,
-       .e_ktrpsig =            netbsd32_ktrpsig
+#ifdef notyet
+       .e_ktrpsig =            netbsd32_ktrpsig,
+#else
+       .e_ktrpsig =            NULL,
+#endif
 };
 
 /*
diff -r 97b5718e5510 -r 423b401c97ad sys/compat/netbsd32/netbsd32_signal.c
--- a/sys/compat/netbsd32/netbsd32_signal.c     Wed Dec 06 17:54:58 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_signal.c     Wed Dec 06 19:15:27 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_signal.c,v 1.43 2016/09/18 05:16:21 christos Exp $    */
+/*     $NetBSD: netbsd32_signal.c,v 1.44 2017/12/06 19:15:27 christos Exp $    */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_signal.c,v 1.43 2016/09/18 05:16:21 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_signal.c,v 1.44 2017/12/06 19:15:27 christos Exp $");
 
 #if defined(_KERNEL_OPT) 
 #include "opt_ktrace.h"
@@ -226,6 +226,7 @@
        }
 }
 
+#ifdef notyet
 #ifdef KTRACE
 static void
 netbsd32_ksi_to_ksi32(struct __ksiginfo32 *si32, const struct _ksiginfo *si)
@@ -268,6 +269,7 @@
        }
 }
 #endif
+#endif
 
 void
 netbsd32_si_to_si32(siginfo32_t *si32, const siginfo_t *si)
@@ -513,6 +515,7 @@
        /* and optional siginfo_t */
 };
 
+#ifdef notyet
 #ifdef KTRACE
 void
 netbsd32_ktrpsig(int sig, sig_t action, const sigset_t *mask,
@@ -548,5 +551,4 @@
        ktraddentry(l, kte, KTA_WAITOK);
 }
 #endif
-
-
+#endif



Home | Main Index | Thread Index | Old Index