apps/system: Update to print waitsem info in ps#7177
Open
seokhun-eom24 wants to merge 2 commits intoSamsung:masterfrom
Open
apps/system: Update to print waitsem info in ps#7177seokhun-eom24 wants to merge 2 commits intoSamsung:masterfrom
seokhun-eom24 wants to merge 2 commits intoSamsung:masterfrom
Conversation
e0d0468 to
dee7088
Compare
pcs1265
reviewed
Mar 9, 2026
Include waitsem information into proc_entry_stat. Signed-off-by: seokhun-eom <seokhun.eom@samsung.com>
Add PROC_STAT_WAITSEM to get waitsem information from procfs.
Update to print waitsem information in ps command.
[Example]
```
TASH>>ps
PID | PRIO | FLAG | TYPE | NP | STATUS | WAITSEM | CPU | IRQCOUNT | NAME
------|------|------|---------|----|----------|------------|-----|----------|-----
0 | 0 | FIFO | KTHREAD | N | RUNNING | 0 | 0 | 0 | CPU0 IDLE
1 | 0 | FIFO | KTHREAD | N | RUNNING | 0 | 1 | 0 | CPU1 IDLE
2 | 201 | RR | KTHREAD | | WAITSIG | 0 | 1 | 2 | hpwork
3 | 50 | RR | KTHREAD | | WAITSIG | 0 | 1 | 2 | lpwork
5 | 200 | RR | KTHREAD | | MQNEMPTY | 0 | 1 | 1 | km4_log_task
6 | 204 | RR | KTHREAD | | WAITSEM | 0x60191c58 | 1 | 1 | LCD Frame flusing
7 | 107 | RR | KTHREAD | | WAITSEM | 0x601babe0 | 1 | 1 | inic_msg_q_task
8 | 104 | RR | KTHREAD | | WAITSEM | 0x601bcb60 | 1 | 1 | inic_host_rx_tasklet
9 | 103 | RR | KTHREAD | | WAITSEM | 0x601beb20 | 1 | 1 | inic_ipc_api_host_task
11 | 100 | RR | KTHREAD | | WAITSIG | 0 | 0 | 2 | NDP_health_check
12 | 105 | RR | KTHREAD | | WAITSEM | 0x60119030 | 1 | 2 | LWIP_TCP/IP
13 | 100 | RR | KTHREAD | | WAITSEM | 0x60118498 | 0 | 1 | netmgr_event_handler
14 | 200 | RR | KTHREAD | | MQNEMPTY | 0 | 1 | 1 | log_dump
15 | 203 | RR | KTHREAD | | MQNEMPTY | 0 | 0 | 1 | binary_manager
18 | 180 | RR | TASK | | WAITSIG | 0 | 0 | 2 | app1
19 | 100 | RR | TASK | | WAITSIG | 0 | 0 | 1 | uwork
20 | 125 | RR | TASK | | WAITSEM | 0 | 0 | 1 | tash
21 | 100 | RR | PTHREAD | | WAITSEM | 0x63f831b0 | 0 | 1 | PlayerWorker
22 | 100 | RR | PTHREAD | | WAITSEM | 0x63f832c4 | 0 | 1 | RecorderWorker
23 | 100 | RR | PTHREAD | | WAITSEM | 0x63f8323c | 0 | 1 | PlayerObserverWorker
24 | 100 | RR | PTHREAD | | WAITSEM | 0x63f83344 | 0 | 1 | RecorderObserverWorker
25 | 199 | RR | PTHREAD | | WAITSEM | 0x63f83138 | 0 | 1 | FocusManagerWorker
26 | 100 | RR | TASK | | WAITSEM | 0x63a9009c | 0 | 1 | wifi msg handler
27 | 100 | RR | TASK | | WAITSEM | 0x63a917bc | 0 | 1 | ble msg handler
```
Signed-off-by: seokhun-eom <seokhun.eom@samsung.com>
dee7088 to
f5730ca
Compare
Contributor
Author
Thank you for the suggestion, I've split the commit. |
Contributor
|
@seokhun-eom24 You added a new row for waitsem. But there are other waits like mq and signal.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add PROC_STAT_WAITSEM to get waitsem information from procfs.
Update to print waitsem information in ps command.
[Example]