Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Dec 2010 16:16:22 +0300
From:      "K. Yura" <yy.guest@gmail.com>
To:        questions@FreeBSD.org
Subject:   FreeBSD .dlink 8.1-RELEASE FreeBSD 8.1-RELEASE #1: Tue Nov 9 21:13:03 MSK 2010 root@.dlink:/usr/obj/usr/src/sys/GENERIC i386
Message-ID:  <AANLkTinr-Vgew_%2ByUV8bfhqVCb44kAZ0ZpSZqkm%2BN6Gp@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Can't use watch. How to install snp snoop device?

===============================================================
[root@ /dev]# cd /usr/src/sys/modules/snp
[root@ /usr/src/sys/modules/snp]# make
Warning: Object directory not changed from original /usr/src/sys/modules/snp
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc
 -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100
 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mp
referred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
-ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -
Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-ext
ensions -c /usr/src/sys/modules/snp/../../dev/snp/snp.c
ld  -d -warn-common -r -d -o snp.kld snp.o
:> export_syms
awk -f /usr/src/sys/modules/snp/../../conf/kmod_syms.awk snp.kld  export_sym
s | xargs -J% objcopy % snp.kld
ld -Bshareable  -d -warn-common -o snp.ko snp.kld
objcopy --strip-debug snp.ko
[root@ /usr/src/sys/modules/snp]# make install
install -o root -g wheel -m 555   snp.ko /boot/kernel
kldxref /boot/kernel
[root@ /usr/src/sys/modules/snp]# w
 3:35PM  up  4:17, 3 users, load averages: 0.00, 0.00, 0.00
USER             TTY      FROM              LOGIN@  IDLE WHAT
root             v0       -                11:37AM  3:58 -bash (bash)
root             pts/0    192.168.0.10      1:30PM     - w
root             pts/1    192.168.0.10      1:31PM  1:50 -bash (bash)
[root@ /usr/src/sys/modules/snp]# cd
[root@ ~]# watch -W ttyv0
watch: snp module not available: Operation not permitted
watch: fatal: cannot open snoop device
---------------------------------------------------------------
=========================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinr-Vgew_%2ByUV8bfhqVCb44kAZ0ZpSZqkm%2BN6Gp>