teak-llvm/lldb/packages/Python/lldbsuite/test
Todd Fiala 2cd84c905d added Linux support for test timeout sampling
This is the Linux counterpart to the sampling support I added
on the macOS side.

This change also introduces zip-file compression if the size of
the sample output is greater than 10 KB.  The Linux side can be
quite large and the textual content is averaging over a 10x
compression factor on tests that I force to time out.  When
compression takes place, the filename becomes:

    {session_dir}/{TestFilename.py}-{pid}.sample.zip

This support relies on the linux 'perf' tool.  If it isn't
present, the behavior is to ignore pre-kill processing of
the timed out test process.

Note calling the perf tool under the timeout command appears
to nuke the profiled process.  This was causing the timeout
kill logic to fail due to the process having disappeared.
I modified the kill logic to catch the case of the process
not existing, and I have it ignore the kill request in that
case.  Any other exception is still raised.

Reviewers: labath

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D24890

llvm-svn: 282436
2016-09-26 20:25:47 +00:00
..
android/platform *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
api Reduce the number of simultaneous debug sessions to 10 and remove 2016-09-13 02:45:45 +00:00
arm_emulation *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
attic *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
benchmarks *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
driver/batch_mode *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
example *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
expression_command Added a setting that enables saving all .o files from a given JIT expression. 2016-09-26 20:18:51 +00:00
functionalities Fix serialization of Python breakpoint commands. 2016-09-26 19:47:37 +00:00
help *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
issue_verification test infra: catch bad decorators and import-time errors 2016-05-13 21:36:26 +00:00
lang *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
linux Remove an ancient XFAIL from TestBuiltinTrap 2016-09-26 13:50:06 +00:00
logging *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
macosx TestQueues could error out because the one second sleep main.c was 2016-09-13 23:29:46 +00:00
make Force c++14 when running tests on Windows. 2016-09-13 23:45:11 +00:00
plugins *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
python_api Fix TestSymbolContextTwoFiles on Android after rL281595 2016-09-15 10:49:55 +00:00
settings add stop column highlighting support 2016-09-21 20:13:14 +00:00
source-manager add stop column highlighting support 2016-09-21 20:13:14 +00:00
terminal *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
test_runner added Linux support for test timeout sampling 2016-09-26 20:25:47 +00:00
tools Fix parsing expressions to evaluate with spaces and optional args (MI) 2016-09-22 05:08:41 +00:00
types *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
warnings/uuid *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
__init__.py Get rid of global variables in dotest.py 2015-12-08 01:15:30 +00:00
.categories Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
bench-history Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
bench.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
concurrent_base.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
configuration.py Allow for tests to be disabled at runtime 2016-09-23 21:32:47 +00:00
crashinfo.c Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
darwin_log.py add availability check to DarwinLog event tests 2016-09-16 03:07:14 +00:00
decorators.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
dosep.py added Linux support for test timeout sampling 2016-09-26 20:25:47 +00:00
dotest_args.py Allow for tests to be disabled at runtime 2016-09-23 21:32:47 +00:00
dotest.py Allow for tests to be disabled at runtime 2016-09-23 21:32:47 +00:00
lldb_pylint_helper.py Updated lldb_pylint_helper to work with recent Python package changes. 2015-11-10 20:01:33 +00:00
lldbbench.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbcurses.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbinline.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbpexpect.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbplatform.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbplatformutil.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbtest_config.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbtest.py add stop column highlighting support 2016-09-21 20:13:14 +00:00
lldbutil.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lock.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Makefile Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
README-TestSuite Centralize the handling of attach permissions on linux in tests 2016-01-11 10:24:50 +00:00
redo.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
test_categories.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
test_result.py Allow for tests to be disabled at runtime 2016-09-23 21:32:47 +00:00