函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:race_buffered_event_enable - enable buffering events* When events are being filtered, it is quicker to use a temporary* buffer to write the event data into if there's a likely chance* that it will not be committed

函数原型:void trace_buffered_event_enable(void)

返回类型:void

参数:

2479  WARN_ON_ONCE(!是互斥锁)
2481  如果trace_buffered_event_ref自加则返回
2484  for_each_tracing_cpu(cpu)
2485  page等于Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.
2487  如果非page则转到:failed
2490  event等于page_address(page)
2491  memset(event, 0, event的长度)
2493  per_cpu(trace_buffered_event, cpu)等于event
2495  禁止抢占()
2496  如果cpu恒等于当前cpu ID()且Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(trace_buffered_event)不等于per_cpu(trace_buffered_event, cpu)则WARN_ON_ONCE(1)
2500  禁用抢占和中断()
2503  返回
2504  failed :
2505  race_buffered_event_disable - disable buffering events* When a filter is removed, it is faster to not use the buffered* events, and to commit directly into the ring buffer. Free up* the temp buffers when there are no more users. This requires
调用者
名称描述
__ftrace_event_enable_disable
event_set_filtered_flag