--- /dev/null
+KERNEL_OBJECTS := swap_buffer.o swap_buffer_module.o buffer_queue.o
+MODULE_NAME=buffer
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
--- /dev/null
+KERNEL_OBJECTS := swap_driver.o swap_driver.mod.c swap_driver.mod.o swap_driver_module.o device_driver.o driver_to_buffer.o
+MODULE_NAME=driver_new
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
--- /dev/null
+KERNEL_OBJECTS := dbi_kprobes_deps.o dbi_insn_slots.o arch/asm/dbi_kprobes.o dbi_kprobes.o arch/asm/trampoline_arm.o
+MODULE_NAME=kprobe
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
--- /dev/null
+KERNEL_OBJECTS := swap_ks_features.o ks_features.o
+MODULE_NAME=ks_features
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
--- /dev/null
+KERNEL_OBJECTS := ksyms.o swap_ksyms.o
+MODULE_NAME=ksyms
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
--- /dev/null
+KERNEL_OBJECTS := swap_msg_parser.o msg_parser.o msg_buf.o msg_cmd.o features.o us_inst.o swap_message_parser.o
+MODULE_NAME=parser
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
--- /dev/null
+KERNEL_OBJECTS := swap_sampler.o swap_sampler_module.o
+MODULE_NAME=sampler
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
--- /dev/null
+KERNEL_OBJECTS := swap_uprobe.o swap_uprobes.o arch/asm/swap_uprobes.o arch/asm/trampoline_thumb.o
+MODULE_NAME=uprobe
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
--- /dev/null
+KERNEL_OBJECTS := swap_us_manager.o us_manager.o us_slot_manager.o helper.o \
+ sspt/ip.o sspt/sspt_page.o sspt/sspt_file.o sspt/sspt_proc.o \
+ pf/proc_filters.o pf/pf_group.o \
+ img/img_proc.o img/img_file.o img/img_ip.o
+MODULE_NAME=us_manager
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
--- /dev/null
+KERNEL_OBJECTS := swap_writer.o swap_writer_module.o
+MODULE_NAME=writer
+
+all:
+ make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) SUBDIRS=$(TOP)/$(MODULE_NAME) extra_cflags=-I$(TOP) modules
+
+clean:
+ @for f in $(KERNEL_OBJECTS) ; do rm $(TOP)/$(MODULE_NAME)/$$f ; done
arg_in_regs = cnt < 3 ? cnt : 3;
-#if define(CONFIG_ARM)
+#if defined(CONFIG_ARM)
/* All args, except first 4, are passed on the stack */
stack_args = 4;
}
-#elif define(CONFIG_X86_32)
+#elif defined(CONFIG_X86_32)
if (user_mode(regs)) {
/* If we're in user mode on x86 arch, get arguments from stack */
/* ARCH-DEPENDED OPERATIONS */
-#if define(CONFIG_ARM)
+#if defined(CONFIG_ARM)
#define get_regs_ip(regs) regs->ARM_pc
#define get_regs_ret_func(regs) regs->ARM_lr
#define get_regs_r2(regs) regs->ARM_r2
#define get_regs_r3(regs) regs->ARM_r3
-#elif define(CONFIG_X86_32)
+#elif defined(CONFIG_X86_32)
#define get_regs_ip(regs) regs->ip
#define get_regs_ret_func(regs) regs->bp + 8