代码拉取完成,页面将自动刷新
ifeq ($(KERNEL_VERSION),)
KERNEL_VERSION = $(shell uname -r)
endif
KERNEL_BUILD_PATH := /usr/src/kernels/$(KERNEL_VERSION)
ifneq ($(KERNEL_BUILD_PATH), $(wildcard $(KERNEL_BUILD_PATH)))
KERNEL_BUILD_PATH := /lib/modules/$(KERNEL_VERSION)/build
endif
ifneq ($(KERNELRELEASE),)
#common
sysak-objs += ./common/chrdev.o ./common/event.o ./common/hook.o ./common/stack.o ./common/proc.o
sysak-objs += ./common/blackbox.o
sysak-objs += ./common/ksymbol.o
sysak-objs += ./entry.o sysak_mods.o
#modules
#sysak-objs += modules/test_module/test.o
ifneq ($(findstring tracesig,$(TARGET_LIST)),)
sysak-objs += modules/signal/trace_sig.o
endif
ifneq ($(findstring memleak,$(TARGET_LIST)),)
sysak-objs += modules/memleak/memleak.o
sysak-objs += modules/memleak/objects.o
sysak-objs += modules/memleak/hashlist.o
endif
ifneq ($(findstring runlatency,$(TARGET_LIST)),)
sysak-objs += modules/sched/noschedule.o modules/sched/trace_irqoff.o modules/sched/trace_runqlat.o
endif
ifneq ($(findstring taskctl,$(TARGET_LIST)),)
sysak-objs += modules/task_ctl/task_ctrl.o
endif
ifneq ($(findstring schedtrace,$(TARGET_LIST)),)
sysak-objs += modules/schedtrace/schedtrace.o
endif
ifneq ($(findstring mmaptrace,$(TARGET_LIST)),)
sysak-objs += modules/mmaptrace/mmaptrace.o
endif
ifneq ($(findstring ulockcheck,$(TARGET_LIST)),)
sysak-objs += modules/ulockcheck/ulockcheck.o
endif
ifneq ($(findstring iosdiag,$(TARGET_LIST)),)
sysak-objs += modules/iosdiag/iosdiag.o modules/iosdiag/rq_hang.o modules/iosdiag/virtio_blk.o modules/iosdiag/nvme.o modules/iosdiag/scsi.o
endif
ifneq ($(findstring memhunter,$(TARGET_LIST)),)
sysak-objs += modules/memhunter/memhunter.o
sysak-objs += modules/memhunter/common.o
sysak-objs += modules/memhunter/memcg.o
sysak-objs += modules/memhunter/memcg_dia.o
sysak-objs += modules/memhunter/filecache.o
endif
obj-m += sysak.o
EXTRA_CFLAGS := -I$(MODULE_SRC)
EXTRA_CFLAGS += -I$(MODULE_SRC)/include
ifneq ($(findstring iosdiag,$(TARGET_LIST)),)
EXTRA_CFLAGS += -I$(MODULE_SRC)/modules/iosdiag -I$(MODULE_SRC)/modules/iosdiag/include/$(KERNEL_VERSION)
endif
else
export MODULE_SRC=$(shell pwd)
sysak_mod:
make -C $(KERNEL_BUILD_PATH) M=$(MODULE_SRC)
clean:
make -C $(KERNEL_BUILD_PATH) M=$(MODULE_SRC) clean
endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。