Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/sys DTrace: fix to only define sdt_p...
details: https://anonhg.NetBSD.org/src/rev/38f18cd81511
branches: trunk
changeset: 752600:38f18cd81511
user: darran <darran%NetBSD.org@localhost>
date: Mon Mar 01 23:42:41 2010 +0000
description:
DTrace: fix to only define sdt_provider_t if in the kernel. Not for
user space.
diffstat:
external/cddl/osnet/sys/sys/sdt.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 17c30c5f8033 -r 38f18cd81511 external/cddl/osnet/sys/sys/sdt.h
--- a/external/cddl/osnet/sys/sys/sdt.h Mon Mar 01 22:53:09 2010 +0000
+++ b/external/cddl/osnet/sys/sys/sdt.h Mon Mar 01 23:42:41 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdt.h,v 1.4 2010/03/01 11:19:40 darran Exp $ */
+/* $NetBSD: sdt.h,v 1.5 2010/03/01 23:42:41 darran Exp $ */
/*-
* Copyright (c) 2007 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -34,6 +34,7 @@
#include_next <sys/sdt.h>
#include <sys/dtrace.h>
+#ifdef _KERNEL
typedef struct {
char name[SDT_MAX_NAME_SIZE];
dtrace_provider_id_t id;
@@ -43,6 +44,7 @@
int sdt_register(sdt_provider_t *);
int sdt_unregister(sdt_provider_t *);
+#endif /* _KERNEL */
#undef DTRACE_PROBE
#undef DTRACE_PROBE1
Home |
Main Index |
Thread Index |
Old Index