Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_hwlat.c Create Date:2022-07-28 12:11:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hwlat_tracer_init

Proto:static int hwlat_tracer_init(struct trace_array *tr)

Type:int

Parameter:

TypeParameterName
struct trace_array *tr
582  If hwlat_busy Then Return -EBUSY
585  hwlat_trace = tr
587  disable_migrate = false
588  al since reset = 0
589  max_latency = 0
590  Save the previous tracing_thresh value = tracing_thresh
593  If Not tracing_thresh Then tracing_thresh = If the user changed threshold, remember it
596  If racer_tracing_is_on - show real state of ring buffer enabled*@tr : the trace array to know if ring buffer is enabled* Shows real state of the ring buffer if it is enabled or not. Then hwlat_tracer_start(tr)
599  hwlat_busy = true
601  Return 0