MIPS: perf: Add hardware perf events support for Loongson-3