Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:void trace_buffered_event_disable(void)

Type:void

Parameter:Nothing

2532  WARN_ON_ONCE(!mutex_is_locked( & event_mutex))
2534  If WARN_ON_ONCE(!trace_buffered_event_ref) Then Return
2537  If --trace_buffered_event_ref Then Return
2540  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
2542  smp_call_function_many(): Run a function on a set of other CPUs
2544  preempt_enable()
2547  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
2549  for_each_tracing_cpu(cpu)
2550  free_page((unsignedlong)per_cpu(trace_buffered_event, cpu))
2551  per_cpu(trace_buffered_event, cpu) = NULL
2557  smp_wmb()
2559  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
2561  smp_call_function_many(): Run a function on a set of other CPUs
2563  preempt_enable()
Caller
NameDescribe
trace_buffered_event_enablerace_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
__ftrace_event_enable_disable
filter_disable