]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit060036ef44d8e650a4042c63ccdf7a4a7e217167
tree56ac34a43869dad656b67ed820bed0e65026c59a
parent1a19ad7ee149a704999318492935f017137bbf24
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]