This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Fixed cPerf tests
ClosedPublic

Authored by kpdev42 on Dec 13 2021, 10:58 PM.

Details

Summary

Fixed binary mode for perf files.
Fixed permission denied error while writing test perf files on some systems.
Disabled the test test_random_guff2. It works fine on Windows but causes a Bus Error (SIGBUS) on some Linux systems. It cannot be handled correctly in all cases.
Note we have no fib-aarch64 and fib2-aarch64 binaries to generate the full dump of the symbol table using objdump –t
We have generated fib-aarch64.objdump.out from fib-aarch64.nm.out manually to fix tests.

OS Laboratory. Huawei Russian Research Institute. Saint-Petersburg

Diff Detail

Repository
rLNT LNT

Event Timeline

kpdev42 created this revision.Dec 13 2021, 10:58 PM
kpdev42 requested review of this revision.Dec 13 2021, 10:58 PM

On what system isn't the SIGBUS caught?

tests/testing/cPerf.py
223

./tests/testing/cPerf.py:223:1: E305 expected 2 blank lines after class or function definition, found 1

Add a newline after the end of the docstring.

slydiman added a subscriber: slydiman.EditedDec 14 2021, 2:43 AM

On what system isn't the SIGBUS caught?

I have reproduced it on Ubuntu 20.04 with python 3.9: bus error (core dumped).

kpdev42 updated this revision to Diff 394222.Dec 14 2021, 5:58 AM
kpdev42 edited the summary of this revision. (Show Details)

Add a newline after the end of the docstring

kpdev42 marked an inline comment as done.Dec 14 2021, 5:59 AM
thopre accepted this revision.Dec 14 2021, 6:34 AM

LGTM

This revision is now accepted and ready to land.Dec 14 2021, 6:34 AM
This revision was automatically updated to reflect the committed changes.