mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
7cf8b4b933
without VIMAGE virtualization in the kernel. If we cannot resolve a symbol try to see if we can find it with prefix of the virtualized subsystem, currently only "vnet_entry" by identifying either the vnet of the current process for a live system or the vnet of proc0 (or of dumptid if compiled in a non-default way). The way this is done currently allows us to only touch libkvm but no single application. Once we are going to virtualize more subsystems we will have to review this decision for better scaling. Submitted by: rwatson (initial version of kvm_vnet.c, lots of ideas) Reviewed by: rwatson Approved by: re (kib)
29 lines
810 B
Makefile
29 lines
810 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
|
# $FreeBSD$
|
|
|
|
LIB= kvm
|
|
SHLIBDIR?= /lib
|
|
CFLAGS+=-DLIBC_SCCS -I${.CURDIR}
|
|
|
|
.if ${MACHINE} == "sun4v"
|
|
CFLAGS+=-DSUN4V
|
|
.endif
|
|
|
|
SRCS= kvm.c kvm_${MACHINE_ARCH}.c kvm_cptime.c kvm_file.c kvm_getloadavg.c \
|
|
kvm_getswapinfo.c kvm_pcpu.c kvm_proc.c kvm_vnet.c
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "arm"
|
|
SRCS+= kvm_minidump_${MACHINE_ARCH}.c
|
|
.endif
|
|
INCS= kvm.h
|
|
|
|
MAN= kvm.3 kvm_getcptime.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 \
|
|
kvm_getpcpu.3 kvm_getprocs.3 kvm_getswapinfo.3 kvm_nlist.3 kvm_open.3 \
|
|
kvm_read.3
|
|
|
|
MLINKS+=kvm_getpcpu.3 kvm_getmaxcpu.3
|
|
MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3
|
|
MLINKS+=kvm_open.3 kvm_close.3 kvm_open.3 kvm_openfiles.3
|
|
MLINKS+=kvm_read.3 kvm_write.3
|
|
|
|
.include <bsd.lib.mk>
|