Function report |
Source Code:kernel\cgroup\rstat.c |
Create Date:2022-07-28 11:11:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:see cgroup_rstat_flush()
Proto:static void cgroup_rstat_flush_locked(struct cgroup *cgrp, bool may_sleep)__releases(&cgroup_rstat_lock) __acquires(&cgroup_rstat_lock)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup * | cgrp | |
bool | may_sleep |
157 | lockdep_assert_held( & cgroup_rstat_lock) |
159 | for_each_possible_cpu(cpu) |
160 | cpu_lock = per_cpu_ptr( & cgroup_rstat_cpu_lock, cpu) |
164 | raw_spin_lock(cpu_lock) |
168 | cgroup_base_stat_flush(pos, cpu) |
173 | css_rstat_flush(css, cpu) |
176 | raw_spin_unlock(cpu_lock) |
181 | spin_unlock_irq( & cgroup_rstat_lock) |
182 | If Not cond_resched() Then cpu_relax() |
184 | spin_lock_irq( & cgroup_rstat_lock) |
Name | Describe |
---|---|
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. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |