函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ftrace_event_set_open

函数原型:static int ftrace_event_set_open(struct inode *inode, struct file *file)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *file
1828  seq_ops等于show_set_event_seq_ops
1829  tr等于s or device private pointer
1832  ret等于tracing_check_open_get_tr(tr)
1833  如果ret则返回:ret
1836  如果f_mode按位与le is open for writing f_flags按位与O_TRUNCftrace_clear_events(tr)
1840  ret等于ftrace_event_open(inode, file, seq_ops)
1841  如果ret小于0则race_array_put - Decrement the reference counter for this trace array.* NOTE: Use this when we no longer need the trace array returned by* trace_array_get_by_name(). This ensures the trace array can be later* destroyed.
1843  返回:ret