函数逻辑报告 |
Source Code:kernel\cgroup\rstat.c |
Create Date:2022-07-27 12:13:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:see cgroup_rstat_flush()
函数原型:static void cgroup_rstat_flush_locked(struct cgroup *cgrp, bool may_sleep)__releases(&cgroup_rstat_lock) __acquires(&cgroup_rstat_lock)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cgroup * | cgrp | |
bool | may_sleep |
157 | lockdep_assert_held( & cgroup_rstat_lock) |
160 | cpu_lock等于per_cpu_ptr( & cgroup_rstat_cpu_lock, cpu) |
164 | raw_spin_lock(cpu_lock) |
168 | cgroup_base_stat_flush(pos, cpu) |
171 | 遍历RCU(css, & rstat_css_list, rstat_css_node) |
173 | css_rstat_flush(css, cpu) |
176 | raw_spin_unlock(cpu_lock) |
181 | spin_unlock_irq( & cgroup_rstat_lock) |
182 | 如果非cond_resched()则cpu_relax() |
184 | spin_lock_irq( & cgroup_rstat_lock) |
名称 | 描述 |
---|---|
cgroup_rstat_flush | group_rstat_flush - flush stats in @cgrp's subtree*@cgrp: target cgroup* Collect all per-cpu stats in @cgrp's subtree into the global counters* and propagate them upwards |
cgroup_rstat_flush_irqsafe | group_rstat_flush_irqsafe - irqsafe version of cgroup_rstat_flush()*@cgrp: target cgroup* This function can be called from any context. |
cgroup_rstat_flush_hold | group_rstat_flush_begin - flush stats in @cgrp's subtree and hold*@cgrp: target cgroup* Flush stats in @cgrp's subtree and prevent further flushes. Must be* paired with cgroup_rstat_flush_release().* This function may block. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |