Function report |
Source Code:kernel\power\qos.c |
Create Date:2022-07-28 09:56:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pm_qos_debug_show
Proto:static int pm_qos_debug_show(struct seq_file *s, void *unused)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct seq_file * | s | |
| void * | unused |
| 147 | tot_reqs = 0 |
| 148 | active_reqs = 0 |
| 150 | If IS_ERR_OR_NULL(qos) Then |
| 154 | c = constraints |
| 155 | If IS_ERR_OR_NULL(c) Then |
| 161 | spin_lock_irqsave( & pm_qos_lock, flags) |
| 164 | Go to out |
| 168 | Case type == return the smallest value |
| 169 | type = "Minimum" |
| 170 | Break |
| 171 | Case type == return the largest value |
| 172 | type = "Maximum" |
| 173 | Break |
| 174 | Case type == PM_QOS_SUM |
| 175 | type = "Sum" |
| 176 | Break |
| 177 | Default |
| 178 | type = "Unknown" |
| 182 | state = "Default" |
| 184 | If prio != default_value Then |
| 185 | active_reqs++ |
| 186 | state = "Active" |
| 188 | tot_reqs++ |
| 189 | seq_printf(s, "%d: %d: %s\n", tot_reqs, prio, state) |
| 193 | seq_printf(s, "Type=%s, Value=%d, Requests: active=%d / total=%d\n", type, locked internal variant , active_reqs, tot_reqs) |
| 196 | out : |
| 197 | spin_unlock_irqrestore( & pm_qos_lock, flags) |
| 198 | Return 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |