LoongArch: Add perf events support
authorHuacai Chen <chenhuacai@loongson.cn>
Wed, 12 Oct 2022 08:36:14 +0000 (16:36 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 12 Oct 2022 08:36:14 +0000 (16:36 +0800)
commitb37042b2bb7cd751f03b73afb90364a418d870f4
tree56ac34a43869dad656b67ed820bed0e65026c59a
parent5f1e001be579c2b7f37e7d5ff87c208c33e90fca
LoongArch: Add perf events support

The perf events infrastructure of LoongArch is very similar to old MIPS-
based Loongson, so most of the codes are derived from MIPS.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kconfig
arch/loongarch/include/asm/perf_event.h
arch/loongarch/include/uapi/asm/perf_regs.h [new file with mode: 0644]
arch/loongarch/kernel/Makefile
arch/loongarch/kernel/perf_event.c [new file with mode: 0644]
arch/loongarch/kernel/perf_regs.c [new file with mode: 0644]