How to build perf for spacemit x60 and use it with dav1d

This time we are going to explore how to use Perf command. This allows us to determine which functions have the most significant impact on decoding with dav1d. How to build perf cd linux/tools/perf/pmu-events ./jevents.py riscv spacemit/x60 . pmu-events.c It will fail, so remove the failing codes in jevents.py. if len(archs) < 2 : raise IOError ( f 'Missing architecture directory \' { _args . arch…