teak-llvm/lldb/packages/Python/lldbsuite/test
Walter Erquinigo 914f38295e [platform process list] add a flag for showing the processes of all users
Summary:
For context: https://reviews.llvm.org/D68293

We need a way to show all the processes on android regardless of the user id.
When you run `platform process list`, you only see the processes with the same user as the user that launched lldb-server. However, it's quite useful to see all the processes, though, and it will lay a foundation for full apk debugging support from lldb.

Before:
```
PID    PARENT USER       TRIPLE                   NAME
====== ====== ========== ======================== ============================
3234   1                 aarch64-unknown-linux-android adbd
8034   3234              aarch64-unknown-linux-android sh
9096   3234              aarch64-unknown-linux-android sh
9098   9096              aarch64-unknown-linux-android lldb-server
(lldb) ^D
```

Now:
```
(lldb) platform process list -x
205 matching processes were found on "remote-android"
PID    PARENT USER       TRIPLE                   NAME
====== ====== ========== ======================== ============================
1      0                                          init
524    1                                          init
525    1                                          init
531    1                                          ueventd
568    1                                          logd
569    1                 aarch64-unknown-linux-android servicemanager
570    1                 aarch64-unknown-linux-android hwservicemanager
571    1                 aarch64-unknown-linux-android vndservicemanager
577    1                 aarch64-unknown-linux-android qseecomd
580    577               aarch64-unknown-linux-android qseecomd
...
23816  979                                        com.android.providers.calendar
24600  979                                        com.verizon.mips.services
27888  979                                        com.hualai
28043  2378                                       com.android.chrome:sandboxed_process0
31449  979                                        com.att.shm
31779  979                                        com.samsung.android.authfw
31846  979                                        com.samsung.android.server.iris
32014  979                                        com.samsung.android.MtpApplication
32045  979                                        com.samsung.InputEventApp
```

Reviewers: labath,xiaobai,aadsm,clayborg

Subscribers:

> llvm-svn: 374584

llvm-svn: 374620
2019-10-12 00:44:50 +00:00
..
android/platform [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
api [lldb] [testsuite] Mark TestSBCommandReturnObject as failing on Windows 2019-10-04 20:49:44 +00:00
arm Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
benchmarks [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
commands [lldb] Mark import-std-module/empty-module as libc++ test 2019-10-11 17:34:44 +00:00
driver/batch_mode Don't stop execution in batch mode when process stops with SIGINT or SIGSTOP 2019-09-26 10:57:11 +00:00
functionalities [platform process list] add a flag for showing the processes of all users 2019-10-12 00:44:50 +00:00
iohandler/completion dotest: improvements to the pexpect tests 2019-08-30 09:07:42 +00:00
issue_verification [dotest] Delete trivial inline test makefiles 2019-09-05 06:55:23 +00:00
lang Speed up accelerator table lookups 2019-10-10 17:59:15 +00:00
linux Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
macosx [Make] Remove spurious line break 2019-10-10 21:49:25 +00:00
make Remove CC autodetection from Makefile.rules 2019-10-10 17:59:18 +00:00
plugins [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
python_api IOHandler: fall back on File::Read if a FILE* isn't available. 2019-10-11 17:43:32 +00:00
sample_test Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
sanity [test] Fix various module cache bugs and inconsistencies 2019-08-29 18:37:05 +00:00
source-manager [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
terminal [dotest] Centralize initialization commands even more 2019-09-05 07:35:45 +00:00
test_runner [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
tools Skip Apple simulator test for all remote testing scenarios. 2019-10-09 20:39:04 +00:00
types [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
__init__.py
.categories
bench.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
concurrent_base.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
configuration.py [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
darwin_log.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
decorators.py [DWARF] Evaluate DW_OP_entry_value 2019-09-11 21:23:45 +00:00
dotest_args.py [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
dotest.py [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
lldb_pylint_helper.py
lldbbench.py
lldbdwarf.py
lldbinline.py [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
lldbpexpect.py Port TestBatchMode to PExpectTest class 2019-09-04 09:20:08 +00:00
lldbplatform.py [dotest] Remove dead code 2019-07-26 01:58:18 +00:00
lldbplatformutil.py TestMTCSimple.py: allow the test to run on Darwin embedded platforms 2019-10-09 23:52:31 +00:00
lldbtest_config.py [dotest] Add the ability to set environment variables for the inferior. 2019-06-26 16:12:08 +00:00
lldbtest.py [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
lldbutil.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
lock.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
README-TestSuite
redo.py
test_categories.py [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
test_result.py [dotest] Remove -q (quiet) flag. 2019-08-28 16:28:58 +00:00