[Lldb-commits] [PATCH] D24890: implement timeout sample support for Linux

Todd Fiala via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 23 17:07:21 PDT 2016


tfiala created this revision.
tfiala added reviewers: labath, tberghammer.
tfiala added a subscriber: lldb-commits.

This is the Linux counterpart to the recently-added macOS-side support for sampling a test process that times out, prior to killing it.

This implementation is based on the Linux perf tools.  Each distribution will have a different way to install it.  The hook is skipped if Linux perf is not available.

On Ubuntu 16.04, the requisite support can be retrieved with:
```
sudo apt-get install perf-tools-unstable
```

Like the macOS side, the content out the time spent at each call point per backtrace is specified in a file in the session directory of the format:
{TestName.py}-{pid}.sample

https://reviews.llvm.org/D24890

Files:
  packages/Python/lldbsuite/pre_kill_hook/linux.py
  packages/Python/lldbsuite/pre_kill_hook/tests/test_darwin.py
  packages/Python/lldbsuite/pre_kill_hook/tests/test_linux.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24890.72382.patch
Type: text/x-patch
Size: 8504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160924/b01d806a/attachment.bin>


More information about the lldb-commits mailing list