函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__remove_instance

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

返回类型:int

参数:

类型参数名称
struct trace_array *tr
8602  如果ref大于1或current_traceref则返回:负EBUSY
8605  删除链表项
8608 i小于TRACE_FLAGS_MAX_SIZE循环
8609  如果1左移i位按位与race_flags that are default zero for instances 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 i小于nr_topts循环
8622  kfree(topts)
8624  kfree(topts)
8626  释放CPU掩码
8627  kfree(name)
8628  kfree(tr)
8629  tr = NULL
8631  返回:0
调用者
名称描述
trace_array_destroy
instance_rmdir