SYMVERS=/boot/System.map-`uname -r` GENERIC=$(firstword $(shell grep copy_user_generic $(SYMVERS))) UNROLLED=$(firstword $(shell grep copy_user_generic_unrolled $(SYMVERS))) STRING=$(firstword $(shell grep copy_user_generic_string $(SYMVERS))) C=$(firstword $(shell grep copy_user_generic_c $(SYMVERS))) ifeq ($(UNROLLED),) UNROLLED=$(GENERIC)# This is RHEL-4 endif ifeq ($(STRING),) STRING=$(C)# This is RHEL-4 endif all: prep test prep: cat copy.gen | sed s#_UNROLLED_#0x$(UNROLLED)# | sed s#_STRING_#0x$(STRING)# > copy.stp test: stap -vg copy.stp