From: compudj Date: Wed, 20 Sep 2006 23:26:34 +0000 (+0000) Subject: update X-Git-Tag: v0.12.20~1362 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4ce6ce89020b59c9606365a696107aaede3ab98a;p=lttv.git update git-svn-id: http://ltt.polymtl.ca/svn@2127 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/marker-loader/Makefile b/marker-loader/Makefile index 6523d116..2b0e85bd 100644 --- a/marker-loader/Makefile +++ b/marker-loader/Makefile @@ -1,5 +1,14 @@ 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) diff --git a/marker-loader/marker-loader.c b/marker-loader/marker-loader.c index 5686c210..9fd079cc 100644 --- a/marker-loader/marker-loader.c +++ b/marker-loader/marker-loader.c @@ -21,12 +21,10 @@ void do_mark1(const char *format, int value) } -#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;