spdk_top: Add TAB hotkey to switch tabs
Signed-off-by: Maciej Szwed <maciej.szwed@intel.com> Change-Id: I5a9a035b74c9b7e289c3995ba246273f56ad128a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1967 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
a0962c2040
commit
66b777e605
@ -1767,6 +1767,15 @@ show_stats(void)
|
||||
current_page = 0;
|
||||
switch_tab(active_tab);
|
||||
break;
|
||||
case '\t':
|
||||
if (active_tab < NUMBER_OF_TABS - 1) {
|
||||
active_tab++;
|
||||
} else {
|
||||
active_tab = THREADS_TAB;
|
||||
}
|
||||
current_page = 0;
|
||||
switch_tab(active_tab);
|
||||
break;
|
||||
case 's':
|
||||
change_sorting(active_tab);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user