forked from Minki/linux
18c07d23da
The implementation of show_stack will panic with wrong fp: addr = *fp++; because the fp isn't checked properly. The current implementations of show_stack, wchan and stack_trace haven't been designed properly, so just deprecate them. This patch is a reference to riscv's way, all codes are modified from arm's. The patch is passed with: - cat /proc/<pid>/stack - cat /proc/<pid>/wchan - echo c > /proc/sysrq-trigger Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
20 lines
631 B
Makefile
20 lines
631 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
extra-y := head.o vmlinux.lds
|
|
|
|
obj-y += entry.o atomic.o signal.o traps.o irq.o time.o vdso.o
|
|
obj-y += power.o syscall.o syscall_table.o setup.o
|
|
obj-y += process.o cpu-probe.o ptrace.o stacktrace.o
|
|
obj-y += probes/
|
|
|
|
obj-$(CONFIG_MODULES) += module.o
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o
|
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
|
obj-$(CONFIG_CSKY_PMU_V1) += perf_event.o
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_callchain.o
|
|
obj-$(CONFIG_HAVE_PERF_REGS) += perf_regs.o
|
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
|
CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
|
|
endif
|