kernel: fix portability issue with perf on linux 5.4