Function report |
Source Code:block\blk-cgroup.c |
Create Date:2022-07-28 17:40:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blkcg_print_stat
Proto:static int blkcg_print_stat(struct seq_file *sf, void *v)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct seq_file * | sf | |
| void * | v |
| 744 | blkcg = css_to_blkcg(seq_css(sf)) |
| 757 | bool has_stats = false |
| 760 | spin_lock_irq( & queue_lock) |
| 762 | If Not is this blkg online? protected by both blkcg and q locks Then Go to skip |
| 765 | dname = blkg_dev_name(blkg) |
| 777 | Do |
| 778 | seq = u64_stats_fetch_begin( & sync) |
| 780 | rbytes = bytes[BLKG_IOSTAT_READ] |
| 781 | wbytes = bytes[BLKG_IOSTAT_WRITE] |
| 782 | dbytes = bytes[BLKG_IOSTAT_DISCARD] |
| 783 | rios = ios[BLKG_IOSTAT_READ] |
| 784 | wios = ios[BLKG_IOSTAT_WRITE] |
| 785 | dios = ios[BLKG_IOSTAT_DISCARD] |
| 786 | When u64_stats_fetch_retry( & sync, seq) cycle |
| 789 | has_stats = true |
| 796 | If blkcg_debug_stats && atomic_read( & use_delay) Then |
| 797 | has_stats = true |
| 805 | pol = blkcg_policy[i] |
| 808 | If Not pd[i] || Not pd_stat_fn Then Continue |
| 817 | If has_stats Then |
| 821 | Else |
| 825 | skip : |
| 826 | spin_unlock_irq( & queue_lock) |
| 830 | Return 0 |
| 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 |