函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The session stat is refilled and resorted at each stat file opening

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

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *file
237  session等于s or device private pointer
239  ret等于security_locked_down(LOCKDOWN_TRACEFS)
240  如果ret则返回: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  如果ret则返回:ret
247  ret等于seq_open(file, & trace_stat_seq_ops)
248  如果ret
249  reset_stat_session(session)
250  返回:ret
253  m等于 needed for tty driver, and maybe others
254  private等于session
255  返回:ret