summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/import.py
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2022-06-21 19:02:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-08 08:27:16 +0100
commita6987c6eb1bbf0f032ba0a686e714a1504c9a506 (patch)
treefe54a4353bbd478c0e4ad0a9046cc4c7662ce1df /scripts/lib/devtool/import.py
parent2fd4a2008870224748b440711951101d08eca1e4 (diff)
downloadpoky-a6987c6eb1bbf0f032ba0a686e714a1504c9a506.tar.gz
perf: sort-pmuevents: really keep array terminators
Commit e1382583cd50 ("perf: sort-pmuevents: don't drop elements") tried to fix a case where the array terminator elements were dropped from the sorted list breaking the build, but it only worked for the case where the terminator is the only element of the array. When the array has other elements the terminator will still be silently dropped, causing invalid memory accesses at runtime when the perf utility iterates over the array. Fix this by treating any unmatched entry as an array terminator and also add a comment to make it a little more clear how things are ending up at the right position in the sorted list. (From OE-Core rev: 70d4a09c1f9fada1a02cf7b3886ffaf39d1b9baf) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 69c35a48c5100b884f1b633142b07222b9390e92) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/import.py')
0 files changed, 0 insertions, 0 deletions