New function to check if the page is readable before reading. Noop on

Sat Apr 23 17:49:33 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof-module.c (page_readable): New function to check if the
	page is readable before reading. Noop on kernel <= 2.6.11

	* sysprof-module.c (get_mm, put_mm): New functions to confine
	#ifdefs.
This commit is contained in:
Søren Sandmann
2005-04-23 21:53:16 +00:00
committed by Søren Sandmann Pedersen
parent 7b67e2c6b9
commit 753eb9378b
3 changed files with 71 additions and 19 deletions

View File

@ -14,7 +14,7 @@ BINARY := sysprof
MODULE := sysprof-module
KDIR := /lib/modules/$(shell uname -r)/build
INCLUDE := -isystem $(KDIR)/include
MODCFLAGS := -O2 -DMODULE -D__KERNEL__ -Wall ${INCLUDE}
MODCFLAGS := -DMODULE -D__KERNEL__ -Wall ${INCLUDE}
MODULE := sysprof-module
all: check $(BINARY) $(MODULE).o