Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/lib/libdtrace fix the remaining problem ...
details: https://anonhg.NetBSD.org/src/rev/0c6a1914089f
branches: trunk
changeset: 340865:0c6a1914089f
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 07 00:35:23 2015 +0000
description:
fix the remaining problem with pcinfo; the dtracetoolkit execsnoop script
works.
diffstat:
external/cddl/osnet/lib/libdtrace/psinfo.d | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (25 lines):
diff -r 9c8a99ef767a -r 0c6a1914089f external/cddl/osnet/lib/libdtrace/psinfo.d
--- a/external/cddl/osnet/lib/libdtrace/psinfo.d Wed Oct 07 00:34:37 2015 +0000
+++ b/external/cddl/osnet/lib/libdtrace/psinfo.d Wed Oct 07 00:35:23 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psinfo.d,v 1.4 2015/10/06 22:12:09 christos Exp $ */
+/* $NetBSD: psinfo.d,v 1.5 2015/10/07 00:35:23 christos Exp $ */
/*
* CDDL HEADER START
@@ -87,13 +87,10 @@
pr_wchan = (uintptr_t)T->l_wchan;
};
-/* XXX: does not work with multprocessor, since it needs curcpu() */
-/*
-inline psinfo_t *curpsinfo = xlate <psinfo_t *> (curlwp->l_proc);
+inline psinfo_t *curpsinfo = xlate <psinfo_t *> (curthread->l_proc);
#pragma D attributes Stable/Stable/Common curpsinfo
#pragma D binding "1.0" curpsinfo
-inline lwpsinfo_t *curlwpsinfo = xlate <lwpsinfo_t *> (curlwp);
+inline lwpsinfo_t *curlwpsinfo = xlate <lwpsinfo_t *> (curthread);
#pragma D attributes Stable/Stable/Common curlwpsinfo
#pragma D binding "1.0" curlwpsinfo
-*/
Home |
Main Index |
Thread Index |
Old Index