Merge pull request #201127 from aaronjheng/zhf/perf

perf-linux: fix build on linux 5.4
This commit is contained in:
Sergei Trofimovich 2022-11-14 08:16:41 +00:00 committed by GitHub
commit f690a10b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,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"