ifneq ($(KERNELRELEASE),)
- obj-m += marker-loader.o
+
+export MARKER_CFLAGS
+
+MARKER_CFLAGS := -DCALL="__mark_$(TARGET)_call" -DJUMP_OVER="__mark_$(TARGET)_jump_over"
+MARKER_CFLAGS += -DJUMP_CALL="__mark_$(TARGET)_jump_call" -DJUMP_INLINE="__mark_$(TARGET)_jump_inline"
+
+EXTRA_CFLAGS += $(MARKER_CFLAGS)
+
+obj-m += marker-loader.o
+
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
}
-#define PROBE_NAME subsys_mark1
-
-#define CALL __mark_subsys_mark1_call
-#define JUMP_OVER __mark_subsys_mark1_jump_over
-#define JUMP_CALL __mark_subsys_mark1_jump_call
-#define JUMP_INLINE __mark_subsys_mark1_jump_inline
+//#define CALL __mark_subsys_mark1_call
+//#define JUMP_OVER __mark_subsys_mark1_jump_over
+//#define JUMP_CALL __mark_subsys_mark1_jump_call
+//#define JUMP_INLINE __mark_subsys_mark1_jump_inline
static void *saved_over;