Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__irqsoff_tracer_init

Proto:static int __irqsoff_tracer_init(struct trace_array *tr)

Type:int

Parameter:

TypeParameterName
struct trace_array *tr
557  If irqsoff_busy Then Return -EBUSY
560  save_flags = trace_flags
563  set_tracer_flag(tr, TRACE_ITER_OVERWRITE, 1)
564  set_tracer_flag(tr, TRACE_ITER_LATENCY_FMT, 1)
566  max_latency = 0
567  irqsoff_trace = tr
569  smp_wmb()
571  ftrace_init_array_ops(tr, qsoff uses its own tracer function to keep the overhead down:)
574  If start_irqsoff_tracer(tr, (flags & TRACE_ARRAY_FL_GLOBAL && is_graph(tr))) Then printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
578  irqsoff_busy = true
579  Return 0
Caller
NameDescribe
irqsoff_tracer_init
preemptoff_tracer_init
preemptirqsoff_tracer_init