perf-linux: fix build on linux 5.4

This commit is contained in:
Aaron Jheng 2022-11-14 04:30:27 +00:00
parent b016e85f39
commit ff7f75dfcc
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3

View File

@ -69,7 +69,7 @@ stdenv.mkDerivation {
postPatch = ''
patchShebangs scripts tools/perf/pmu-events/jevents.py
'' + lib.optionalString (lib.versionAtLeast kernel.version "5.8") ''
substituteInPlace tools/perf/scripts/python/flamegraph.py \
--replace "/usr/share/d3-flame-graph/d3-flamegraph-base.html" \
"${d3-flame-graph-templates}/share/d3-flame-graph/d3-flamegraph-base.html"