Function report |
Source Code:kernel\debug\kdb\kdb_support.c |
Create Date:2022-07-28 11:43:17 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kdb_task_state_string
Proto:unsigned long kdb_task_state_string(const char *s)
Type:unsigned long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | s |
| 563 | res = 0 |
| 564 | If Not s Then |
| 571 | Case s == 'D' |
| 572 | res |= TASK_UNINTERRUPTIBLE |
| 573 | Break |
| 574 | Case s == 'R' |
| 577 | Case s == 'S' |
| 578 | res |= TASK_INTERRUPTIBLE |
| 579 | Break |
| 580 | Case s == 'T' |
| 581 | res |= TASK_STOPPED |
| 582 | Break |
| 583 | Case s == 'C' |
| 584 | res |= TASK_TRACED |
| 585 | Break |
| 586 | Case s == 'Z' |
| 587 | res |= EXIT_ZOMBIE << 16 |
| 588 | Break |
| 589 | Case s == 'E' |
| 590 | res |= Used in tsk->exit_state: << 16 |
| 591 | Break |
| 592 | Case s == 'U' |
| 593 | res |= unrunnable is < 0 |
| 594 | Break |
| 595 | Case s == 'I' |
| 598 | Case s == 'M' |
| 601 | Case s == 'A' |
| 602 | res = ~0UL |
| 603 | Break |
| 604 | Default |
| 605 | kdb_printf("%s: unknown flag '%c' ignored\n", __func__, * s) |
| 607 | Break |
| 609 | ++s |
| 611 | Return res |
| Name | Describe |
|---|---|
| kdb_ps_suppressed | The user may not realize that ps/bta with no parameters does not print idle* or sleeping system daemon processes, so tell them how many were suppressed. |
| kdb_ps | |
| kdb_task_state | kdb_task_state - Return true if a process has the desired state* given by the mask.* Inputs:* p struct task for the process* mask mask from kdb_task_state_string to select processes* Returns: |
| kdb_bt |
| 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 |