Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The session stat is refilled and resorted at each stat file opening

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

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *file
237  session = s or device private pointer
239  ret = security_locked_down(LOCKDOWN_TRACEFS)
240  If ret Then Return ret
243  ret = Initialize the stat rbtree at each trace_stat file opening.* All of these copies and sorting are required on all opening* since the stats could have changed between two file sessions.
244  If ret Then Return ret
247  ret = seq_open(file, & trace_stat_seq_ops)
248  If ret Then
249  reset_stat_session(session)
250  Return ret
253  m = needed for tty driver, and maybe others
254  private = session
255  Return ret