Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 11:58:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:trace_save_tgid
Proto:static int trace_save_tgid(struct task_struct *tsk)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | tsk |
| 2319 | If Not process id Then Return 1 |
| 2322 | If Value for the false possibility is greater at compile time(!tgid_map || process id > This controls the default maximum pid allocated to a process) Then Return 0 |
| 2325 | tgid_map[process id] = thread group id |
| 2326 | Return 1 |
| Name | Describe |
|---|---|
| tracing_record_taskinfo | racing_record_taskinfo - record the task info of a task*@task: task to record*@flags: TRACE_RECORD_CMDLINE for recording comm* TRACE_RECORD_TGID for recording tgid |
| tracing_record_taskinfo_sched_switch | racing_record_taskinfo_sched_switch - record task info for sched_switch*@prev: previous task during sched_switch*@next: next task during sched_switch*@flags: TRACE_RECORD_CMDLINE for recording comm* TRACE_RECORD_TGID for recording tgid |
| 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 |