forked from luck/tmp_suning_uos_patched
c783390a0e
Add support for XLR and XLS processors in MIPS Oprofile code. These processors are multi-threaded and have two counters per core. Each counter can track either all the events in the core (global mode), or events in just one thread. We use the counters in the global mode, and use only the first thread in each core to handle the configuration etc. Signed-off-by: Madhusudan Bhat <mbhat@netlogicmicro.com> Signed-off-by: Jayachandran C <jchandra@broadcom.com> Patchwork: http://patchwork.linux-mips.org/patch/4471 Signed-off-by: John Crispin <blogic@openwrt.org>
18 lines
637 B
Makefile
18 lines
637 B
Makefile
obj-$(CONFIG_OPROFILE) += oprofile.o
|
|
|
|
DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
|
|
oprof.o cpu_buffer.o buffer_sync.o \
|
|
event_buffer.o oprofile_files.o \
|
|
oprofilefs.o oprofile_stats.o \
|
|
timer_int.o )
|
|
|
|
oprofile-y := $(DRIVER_OBJS) common.o backtrace.o
|
|
|
|
oprofile-$(CONFIG_CPU_MIPS32) += op_model_mipsxx.o
|
|
oprofile-$(CONFIG_CPU_MIPS64) += op_model_mipsxx.o
|
|
oprofile-$(CONFIG_CPU_R10000) += op_model_mipsxx.o
|
|
oprofile-$(CONFIG_CPU_SB1) += op_model_mipsxx.o
|
|
oprofile-$(CONFIG_CPU_XLR) += op_model_mipsxx.o
|
|
oprofile-$(CONFIG_CPU_RM9000) += op_model_rm9000.o
|
|
oprofile-$(CONFIG_CPU_LOONGSON2) += op_model_loongson2.o
|