Function report | 
Source Code:kernel\trace\trace_hwlat.c | 
Create Date:2022-07-28 12:10:53 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:start_kthread - Kick off the hardware latency sampling/detector kthread* This starts the kernel thread that will sit and sample the CPU timestamp* counter (TSC or similar) and look for potential hardware latencies.
Proto:static int start_kthread(struct trace_array *tr)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct trace_array * | tr | 
| 356 | current_mask = save_cpumask | 
| 360 | If WARN_ON(sampling thread) Then Return 0 | 
| 364 | current_mask = save_cpumask | 
| 365 | get_online_cpus() | 
| 367 | put_online_cpus() | 
| 377 | pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer | 
| 380 | sampling thread = kthread | 
| 383 | Return 0 | 
| Name | Describe | 
|---|---|
| hwlat_tracer_start | 
| 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  |