configure : add option --enable-rusage
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
ENABLE_RUSAGE=@ENABLE_RUSAGE@
|
||||
VPATH=@abs_srcdir@
|
||||
SRC=$(VPATH)
|
||||
IHKDIR=$(IHKBASE)/$(TARGETDIR)
|
||||
@ -5,8 +6,12 @@ OBJS = init.o mem.o debug.o mikc.o listeners.o ap.o syscall.o cls.o host.o
|
||||
OBJS += process.o copy.o waitq.o futex.o timer.o plist.o fileobj.o shmobj.o
|
||||
OBJS += zeroobj.o procfs.o devobj.o sysfs.o xpmem.o rusage.o freeze.o
|
||||
DEPSRCS=$(wildcard $(SRC)/*.c)
|
||||
DOPT=
|
||||
ifeq ($(ENABLE_RUSAGE),yes)
|
||||
DOPT=-DENABLE_RUSAGE
|
||||
endif
|
||||
|
||||
CFLAGS += -I$(SRC)/include -D__KERNEL__ -g -fno-omit-frame-pointer -fno-inline -fno-inline-small-functions
|
||||
CFLAGS += -I$(SRC)/include -D__KERNEL__ $(DOPT) -g -fno-omit-frame-pointer -fno-inline -fno-inline-small-functions
|
||||
LDFLAGS += -e arch_start
|
||||
IHKOBJ = ihk/ihk.o
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
#include <cls.h>
|
||||
|
||||
extern int nmi_mode;
|
||||
extern mod_nmi_ctx(void *, void(*)());
|
||||
extern void mod_nmi_ctx(void *, void(*)());
|
||||
extern void lapic_ack();
|
||||
extern void __freeze();
|
||||
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
#ifndef __RUSAGE_H
|
||||
#define __RUSAGE_H
|
||||
|
||||
#define ENABLE_RUSAGE
|
||||
|
||||
#define RUSAGE_DEFAULT_SIZE 10
|
||||
|
||||
enum RUSAGE_MEMBER {
|
||||
|
||||
Reference in New Issue
Block a user