Function report |
Source Code:block\blk-throttle.c |
Create Date:2022-07-28 17:43:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:throtl_tg_is_idle
Proto:static bool throtl_tg_is_idle(struct throtl_grp *tg)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct throtl_grp * | tg |
| 1834 | time = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, 5 s , 4 * us ) |
| 1835 | ret = us == DFL_LATENCY_TARGET || us == DFL_IDLE_THRESHOLD || (ktime_get_ns() >> 10) - ns / 1024 > time || ns / 1024 > us || us && total bios && bios exceeding latency threshold * 5 < total bios |
| 1841 | hrotl_log - log debug message via blktrace*@sq: the service_queue being reported*@fmt: printf format string*@args: printf args* The messages are prefixed with "throtl BLKG_NAME" if @sq belongs to a* throtl_grp; otherwise, just "throtl".( & this group's service queue , "avg_idle=%ld, idle_threshold=%ld, bad_bio=%d, total_bio=%d, is_idle=%d, scale=%d", ns / 1024 , us , bios exceeding latency threshold , total bios , ret, scale) |
| 1845 | Return ret |
| Name | Describe |
|---|---|
| throtl_tg_can_upgrade | |
| throtl_tg_can_downgrade |
| 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 |