Function report |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-28 11:13:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:groupstats_build - build and fill cgroupstats*@stats: cgroupstats to fill information into*@dentry: A dentry entry belonging to the cgroup for which stats have* been requested.* Build and fill cgroupstats so that taskstats can export it to user* space.
Proto:int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroupstats * | stats | |
struct dentry * | dentry |
692 | kn = kernfs_node_from_dentry(dentry) |
698 | If s_type != cgroup_fs_type || Not kn || kernfs_type(kn) != KERNFS_DIR Then Return -EINVAL |
710 | cgrp = fetch RCU-protected pointer for dereferencing( * (void__rcu__force * * ) & priv) |
711 | If Not cgrp || cgroup_is_dead(cgrp) Then |
714 | Return -ENOENT |
721 | Case run state == Used in tsk->state: |
722 | Number of tasks running ++ |
723 | Break |
724 | Case run state == TASK_INTERRUPTIBLE |
725 | Number of tasks sleeping ++ |
726 | Break |
727 | Case run state == TASK_UNINTERRUPTIBLE |
729 | Break |
730 | Case run state == TASK_STOPPED |
732 | Break |
733 | Default |
734 | If delayacct_is_task_waiting_on_io(tsk) Then Number of tasks waiting on IO ++ |
736 | Break |
742 | Return 0 |
Name | Describe |
---|---|
cgroupstats_user_cmd |
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 |