函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__irqsoff_tracer_init

函数原型:static int __irqsoff_tracer_init(struct trace_array *tr)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
557  如果irqsoff_busy则返回:负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  如果start_irqsoff_tracer(tr, (flags & TRACE_ARRAY_FL_GLOBAL && is_graph(tr)))则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  返回:0
调用者
名称描述
irqsoff_tracer_init
preemptoff_tracer_init
preemptirqsoff_tracer_init