函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_hwlat.c Create Date:2022-07-27 13:17:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:trace_hwlat_sample

函数原型:static void trace_hwlat_sample(struct hwlat_sample *sample)

返回类型:void

参数:

类型参数名称
struct hwlat_sample *sample
105  tr等于hwlat_trace
106  call等于event_hwlat
107  buffer等于buffer
113  pc等于抢占计数值
114  local_save_flags(flags)
116  event等于trace_buffer_lock_reserve(buffer, TRACE_HWLAT, entry的长度, flags, pc)
118  如果非event则返回
120  entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from
121  seqnum等于unique sequence
122  duration等于delta
123  outer_duration等于delta (outer loop)
124  timestamp等于wall time
125  nmi_total_ts等于Total time spent in NMIs
126  nmi_count等于# NMIs during this sample
128  如果非call_filter_check_discard(call, entry, buffer, event)则Similar to trace_buffer_unlock_commit_regs() but do not dump stack.
调用者
名称描述
get_sampleget_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.