Commit 4504ad0
Add ps output to show_tech.py
Summary:
# Description
Adding the output of `ps w` to meru and fbdarwin show_tech.py in order to capture the running processes for use in troubleshooting the system state.
X-link: https://github.com/facebookexternal/openbmc.arista/pull/422
Test Plan:
Ran the new show_tech.py and verified the ps output exists. Ran the CIT tests.
## meru
```
root@bmc:~# show_tech.py | grep -A 20 "CURRENTLY"
##### CURRENTLY RUNNING PROCESSES #####
ps w
PID USER VSZ STAT COMMAND
1 root 12104 S {systemd} /init
2 root 0 SW [kthreadd]
3 root 0 SW [pool_workqueue_]
4 root 0 IW< [kworker/R-rcu_g]
5 root 0 IW< [kworker/R-rcu_p]
6 root 0 IW< [kworker/R-slub_]
7 root 0 IW [kworker/0:0-eve]
8 root 0 IW< [kworker/0:0H-ev]
9 root 0 IW [kworker/0:1-mm_]
10 root 0 IW [kworker/u4:0]
11 root 0 IW< [kworker/R-mm_pe]
12 root 0 IW [rcu_tasks_rude_]
13 root 0 IW [rcu_tasks_trace]
14 root 0 SW [ksoftirqd/0]
15 root 0 IW [rcu_sched]
16 root 0 SW [migration/0]
17 root 0 SW [cpuhp/0]
18 root 0 SW [cpuhp/1]
```
```
root@bmc:~# python3 /usr/local/bin/tests2/cit_runner.py --platform meru
...
----------------------------------------------------------------------
Ran 15 tests in 172.478s
OK
```
## fbdarwin
```
root@bmc:~# show_tech.py | grep -A 20 "CURRENTLY"
##### CURRENTLY RUNNING PROCESSES #####
ps w
PID USER VSZ STAT COMMAND
1 root 11972 S {systemd} /init
2 root 0 SW [kthreadd]
3 root 0 SW [pool_workqueue_]
4 root 0 IW< [kworker/R-rcu_g]
5 root 0 IW< [kworker/R-rcu_p]
6 root 0 IW< [kworker/R-slub_]
7 root 0 IW [kworker/0:0-pm]
8 root 0 IW< [kworker/0:0H-ev]
9 root 0 IW [kworker/0:1-eve]
10 root 0 IW [kworker/u4:0]
11 root 0 IW< [kworker/R-mm_pe]
12 root 0 IW [rcu_tasks_rude_]
13 root 0 IW [rcu_tasks_trace]
14 root 0 SW [ksoftirqd/0]
15 root 0 IW [rcu_sched]
16 root 0 SW [migration/0]
17 root 0 SW [cpuhp/0]
18 root 0 SW [cpuhp/1]
```
```
root@bmc:~# python3 /usr/local/bin/tests2/cit_runner.py --platform fbdarwin
...
----------------------------------------------------------------------
Ran 22 tests in 147.338s
OK (skipped=3)
```
Reviewed By: somasun
Differential Revision: D80857201
Pulled By: joancaneus
fbshipit-source-id: 6ae0af7af3e9649fc8eb453da22e4fe882baa3331 parent b4e1161 commit 4504ad0
File tree
2 files changed
+14
-2
lines changed- meta-facebook
- meta-fbdarwin/recipes-utils/show-tech/files
- meta-meru/recipes-utils/show-tech/files
2 files changed
+14
-2
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
| |||
180 | 186 | | |
181 | 187 | | |
182 | 188 | | |
183 | | - | |
| 189 | + | |
184 | 190 | | |
185 | 191 | | |
186 | 192 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
165 | 171 | | |
166 | 172 | | |
167 | 173 | | |
| |||
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
208 | | - | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| |||
0 commit comments