Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/profile Disable autoload if there ar...
details: https://anonhg.NetBSD.org/src/rev/0c30d2ea2ca3
branches: trunk
changeset: 814777:0c30d2ea2ca3
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 09 15:17:58 2016 +0000
description:
Disable autoload if there are any profile probes.
diffstat:
external/cddl/osnet/dev/profile/profile.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 6e9115986164 -r 0c30d2ea2ca3 external/cddl/osnet/dev/profile/profile.c
--- a/external/cddl/osnet/dev/profile/profile.c Sat Apr 09 15:09:42 2016 +0000
+++ b/external/cddl/osnet/dev/profile/profile.c Sat Apr 09 15:17:58 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: profile.c,v 1.5 2016/04/04 05:15:07 riastradh Exp $ */
+/* $NetBSD: profile.c,v 1.6 2016/04/09 15:17:58 riastradh Exp $ */
/*
* CDDL HEADER START
@@ -576,6 +576,11 @@
profile_unload();
return 0;
+ case MODULE_CMD_AUTOUNLOAD:
+ if (profile_total)
+ return EBUSY;
+ return 0;
+
default:
return ENOTTY;
}
Home |
Main Index |
Thread Index |
Old Index