diff options
author | Jordan Niethe <[email protected]> | 2020-05-06 13:40:40 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2020-05-19 00:10:38 +1000 |
commit | 0b582db5490a1f250ef63337dd46d5c7599dae80 (patch) | |
tree | 862022b76f1c5bc7795344a8652cfc59d74f0cab /tools/perf/scripts/python/stackcollapse.py | |
parent | 7fccfcfba04f9cb46438f368755d368f6c57f3a0 (diff) |
powerpc: Make test_translate_branch() independent of instruction length
test_translate_branch() uses two pointers to instructions within a
buffer, p and q, to test patch_branch(). The pointer arithmetic done on
them assumes a size of 4. This will not work if the instruction length
changes. Instead do the arithmetic relative to the void * to the buffer.
Signed-off-by: Jordan Niethe <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Reviewed-by: Alistair Popple <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions