函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_tracer_flag

函数原型:int set_tracer_flag(struct trace_array *tr, unsigned int mask, int enabled)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
unsigned intmask
intenabled
4690  如果mask恒等于TRACE_ITER_RECORD_TGIDmask恒等于TRACE_ITER_RECORD_CMDlockdep_assert_held( & event_mutex)
4695  如果非非trace_flags按位与mask的值恒等于非非enabled则返回:0
4699  如果flag_changed则如果flag_changed(tr, mask, !!enabled)则
4701  返回:负EINVAL
4703  如果enabledtrace_flags或等于mask
4705  否则trace_flags与等于mask的反
4708  如果mask恒等于TRACE_ITER_RECORD_CMDtrace_event_enable_cmd_record(enabled)
4711  如果mask恒等于TRACE_ITER_RECORD_TGID
4712  如果非tgid_maptgid_map等于kvcalloc(This controls the default maximum pid allocated to a process + 1, tgid_map的长度, GFP_KERNEL)
4716  如果非tgid_map
4717  trace_flags与等于TRACE_ITER_RECORD_TGID的反
4718  返回:负ENOMEM
4721  trace_event_enable_tgid_record(enabled)
4724  如果mask恒等于TRACE_ITER_EVENT_FORKtrace_event_follow_fork(tr, enabled)
4727  如果mask恒等于TRACE_ITER_FUNC_FORKftrace_pid_follow_fork(tr, enabled)
4730  如果mask恒等于TRACE_ITER_OVERWRITE
4731  ring_buffer_change_overwrite(buffer, enabled)
4737  如果mask恒等于TRACE_ITER_PRINTK
4738  trace_printk_start_stop_comm(enabled)
4739  trace_printk_control(enabled)
4742  返回:0
调用者
名称描述
trace_set_options
trace_options_core_write
__remove_instance
__irqsoff_tracer_init
__irqsoff_tracer_reset
__wakeup_tracer_init
wakeup_tracer_reset