teak-llvm/lldb/packages/Python/lldbsuite/test/functionalities
Walter Erquinigo af1d27e301 [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: 374631
2019-10-12 02:36:16 +00:00
..
abbreviation [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
alias
archives Revert: [lldb] [testsuite] Remove redundant MAKE_DSYM := NO 2019-09-27 18:52:34 +00:00
asan [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
avoids-fd-leak [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
backticks [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
breakpoint Remove merge marker :-) 2019-10-10 18:30:47 +00:00
completion [lldb][NFC] Relax completion tests for log command to make them pass on Linux 2019-09-24 08:41:10 +00:00
conditional_break [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
darwin_log [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
data-formatter Disable the empty string check in TestDataFormatterStdString 2019-09-27 11:39:27 +00:00
dead-strip Revert: [lldb] [testsuite] Remove redundant MAKE_DSYM := NO 2019-09-27 18:52:34 +00:00
deleted-executable [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
dynamic_value_child_count [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
exec [Testsuite] Get rid of most of the recursive shared library Makefiles 2019-10-08 16:23:28 +00:00
fat_archives [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
float-display [lldb] Limit the amount of zeroes we use for padding when printing small floats 2019-09-04 11:41:23 +00:00
gdb_remote_client [platform process list] add a flag for showing the processes of all users 2019-10-12 02:36:16 +00:00
history [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
inferior-assert [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
inferior-changed [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
inferior-crashing Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
inline-stepping Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
jitloader_gdb [Testsuite] Get rid of most of the recursive shared library Makefiles 2019-10-08 16:23:28 +00:00
load_unload [Testsuite] Get rid of most of the recursive shared library Makefiles 2019-10-08 16:23:28 +00:00
load_using_paths [Testsuite] Get rid of most of the recursive shared library Makefiles 2019-10-08 16:23:28 +00:00
longjmp [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
memory [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
memory-region [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
modern-type-lookup [lldb][modern-type-lookup] No longer import temporary declarations into the persistent AST 2019-10-04 08:26:17 +00:00
mtc/simple TestMTCSimple: Make Makefile portable. 2019-10-10 21:21:16 +00:00
multidebugger_commands [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
multiword-commands [lldb] Print an error message for an empty subcommand 2019-09-27 08:49:41 +00:00
non-overlapping-index-variable-i [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
object-file [Platform] Remove Kalimba Platform 2019-03-27 16:23:50 +00:00
param_entry_vals/basic_entry_values_x86_64 [test] Skip entry value test when clang < 10.0.0 2019-10-09 20:21:33 +00:00
paths [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
plugins Revert: [lldb] [testsuite] Remove redundant MAKE_DSYM := NO 2019-09-27 18:52:34 +00:00
postmortem Fix a crasher due to an assert when two files have the same UUID but different paths. 2019-10-09 22:03:15 +00:00
pre_run_dylibs [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
process_group [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
process_save_core [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
ptr_refs [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
recursion [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
rerun [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
return-value [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
set-data Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
show_location [LLDB] - Improved DWARF5 support. 2018-09-13 17:06:47 +00:00
signal [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
source-map Add the source directory for https://reviews.llvm.org/D57552. 2019-02-06 00:52:04 +00:00
stats_api [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
step_scripted Pass an SBStructuredData to scripted ThreadPlans on use. 2019-10-03 22:50:18 +00:00
step-avoids-no-debug [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
tail_call_frames Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
target_var [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
target-new-solib-notifications [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
testid
thread Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
tsan [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
tty [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
type_completion [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
type_lookup Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
ubsan [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
unwind [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
value_md5_crash [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
var_path [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
wrong_commands [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00