summaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2020-01-19 20:41:17 +0000
committerriastradh <riastradh@NetBSD.org>2020-01-19 20:41:17 +0000
commitdd497e99b8dac6f10311995cb2845e6fb9c56ebc (patch)
tree7cd8fc645184650c72db029e086eee47d1bf3bb2 /sys/modules
parent22ebf242b0ac551a348e4d6aff02bbfaa39a77e2 (diff)
Remove filemon(4).
Discussed on tech-kern: https://mail-index.NetBSD.org/tech-kern/2020/01/13/msg025938.html This was never (intentionally) enabled by default, and the design has some shortcomings. You can get mostly the same results with ktrace, as in usr.bin/make/filemon/filemon_ktrace.c which is now used instead of filemon for make's meta mode. If applications require higher performance than ktrace, or nesting that ktrace doesn't support, we might consider adding something back into the vfs system calls themselves, without hijacking the syscall table. (Might want a more reliable output format too, e.g. one that can handle newlines in file names.)
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile3
-rw-r--r--sys/modules/filemon/Makefile20
-rw-r--r--sys/modules/filemon/filemon.ioconf7
3 files changed, 1 insertions, 29 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 902331539c8..0acfcc92c4d 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.235 2020/01/19 01:25:08 thorpej Exp $
+# $NetBSD: Makefile,v 1.236 2020/01/19 20:41:19 riastradh Exp $
.include <bsd.own.mk>
@@ -54,7 +54,6 @@ SUBDIR+= exec_script
SUBDIR+= fdesc
SUBDIR+= ffs
SUBDIR+= filecore
-SUBDIR+= filemon
SUBDIR+= flash
SUBDIR+= fss
SUBDIR+= gpio
diff --git a/sys/modules/filemon/Makefile b/sys/modules/filemon/Makefile
deleted file mode 100644
index e2a0e41c7ce..00000000000
--- a/sys/modules/filemon/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-# $NetBSD: Makefile,v 1.6 2019/12/23 06:45:38 maxv Exp $
-
-.include "../Makefile.inc"
-
-.PATH: ${S}/dev/filemon
-
-KMOD = filemon
-IOCONF= filemon.ioconf
-SRCS = filemon.c filemon_wrapper.c
-NOMAN = no
-
-COPTS.filemon_wrapper.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
-
-# Due to security concerns, we don't install the filemon module. We
-# do, however, want to keep building it to prevent bit-rot. Define
-# an empty install target for this.
-
-kmodinstall:
-
-.include <bsd.kmodule.mk>
diff --git a/sys/modules/filemon/filemon.ioconf b/sys/modules/filemon/filemon.ioconf
deleted file mode 100644
index d65fd2ed771..00000000000
--- a/sys/modules/filemon/filemon.ioconf
+++ /dev/null
@@ -1,7 +0,0 @@
-# $NetBSD: filemon.ioconf,v 1.3 2019/12/23 06:45:38 maxv Exp $
-
-ioconf filemon
-
-include "conf/files"
-
-pseudo-device filemon