Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ftrace_event_set_open

Proto:static int ftrace_event_set_open(struct inode *inode, struct file *file)

Type:int

Parameter:

TypeParameterName
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  If ret Then Return ret
1836  If f_mode & le is open for writing && f_flags & O_TRUNC Then ftrace_clear_events(tr)
1840  ret = ftrace_event_open(inode, file, seq_ops)
1841  If ret < 0 Then 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  Return ret