Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__remove_instance

Proto:static int __remove_instance(struct trace_array *tr)

Type:int

Parameter:

TypeParameterName
struct trace_array *tr
8602  If ref > 1 || current_trace && ref Then Return -EBUSY
8605  deletes entry from list
8608  When i < TRACE_FLAGS_MAX_SIZE cycle
8609  If 1 << i & race_flags that are default zero for instances Then set_tracer_flag(tr, 1 << i, 0)
8613  Used to clear out the tracer before deletion of an instance.* Must have trace_types_lock held.
8614  clear_ftrace_function_probes(tr)
8615  Must be called with event_mutex held
8616  ftrace_clear_pids(tr)
8617  ftrace_destroy_function_files(tr)
8618  tracefs_remove_recursive(dir)
8619  free_trace_buffers(tr)
8621  When i < nr_topts cycle
8622  kfree(topts)
8624  kfree(topts)
8626  free_cpumask_var( only trace on set CPUs )
8627  kfree(name)
8628  kfree(tr)
8629  tr = NULL
8631  Return 0
Caller
NameDescribe
trace_array_destroy
instance_rmdir