Function report | 
Source Code:kernel\trace\trace_hwlat.c | 
Create Date:2022-07-28 12:10:41 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:trace_hwlat_sample
Proto:static void trace_hwlat_sample(struct hwlat_sample *sample)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct hwlat_sample * | sample | 
| 105 | tr = hwlat_trace | 
| 106 | call = event_hwlat | 
| 113 | pc = We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt. | 
| 114 | local_save_flags(flags) | 
| 116 | event = trace_buffer_lock_reserve(buffer, TRACE_HWLAT, size of entry , flags, pc) | 
| 118 | If Not event Then Return | 
| 120 | entry = g_buffer_event_data - return the data of the event*@event: the event to get the data from | 
| 121 | seqnum = unique sequence | 
| 128 | If Not call_filter_check_discard(call, entry, buffer, event) Then Similar to trace_buffer_unlock_commit_regs() but do not dump stack. | 
| Name | Describe | 
|---|---|
| get_sample | get_sample - sample the CPU TSC and look for likely hardware latencies* Used to repeatedly capture the CPU TSC (or similar), looking for potential* hardware-induced latency. Called with interrupts disabled and with* hwlat_data.lock held. | 
| 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  |