|
GadgetSeed
0.9.6
|
タスク関連コマンド [詳解]
#include "sysconfig.h"#include "shell.h"#include "str.h"#include "tkprintf.h"#include "tprintf.h"#include "task/task.h"#include "task/syscall.h"#include "task/calltrace.h"#include "dtprintf.h"
マクロ定義 | |
| #define | GSC_KERNEL_MESSAGEOUT_MEMORY_SIZE (1024 * 3) |
| $gsc カーネルメッセージ出力メモリサイズ | |
| #define | GSC_MAX_TASK_INFO_NUM 10 |
| $gsc topコマンドで表示可能な最大タスク数 | |
関数 | |
| static int | task_top (int argc, uchar *argv[]) |
| static int | task_list (int argc, uchar *argv[]) |
| static int | task_queue (int argc, uchar *argv[]) |
| static int | command_task_kill (int argc, uchar *argv[]) |
変数 | |
| static unsigned char | kmess_buff [GSC_KERNEL_MESSAGEOUT_MEMORY_SIZE] |
| static struct st_task_info | task_info_list [GSC_MAX_TASK_INFO_NUM] |
| static unsigned int | last_run_time [GSC_MAX_TASK_INFO_NUM] |
| static const struct st_shell_command | com_task_top |
| 実行中タスクのCPU使用率を表示する [詳解] | |
| static const struct st_shell_command | com_task_list |
| 実行中タスクの状態を表示する [詳解] | |
| static const struct st_shell_command | com_task_queue |
| 各タスクキューに登録されているタスクを表示する [詳解] | |
| static const struct st_shell_command | com_task_kill |
| 任意のタスクを終了させる [詳解] | |
| static const struct st_shell_command *const | com_task_com_list [] |
| const struct st_shell_command | com_task |
| タスク状態取得 [詳解] | |
タスク関連コマンド
task コマンドには以下のサブコマンドがあります。
| サブコマンド | 機能 | 詳細 |
|---|---|---|
| top | 実行中タスクのCPU使用率を表示する | com_task_top |
| list | 実行中タスクの状態を表示する | com_task_list |
| queue | 各タスクキューに登録されているタスクを表示する | com_task_queue |
| kill | 任意のタスクを終了させる | com_task_kill |
| calltrace | com_task_calltrace |
com_task.c に定義があります。
| const struct st_shell_command com_task |
タスク状態取得
com_task.c の 226 行目に定義があります。
|
static |
com_task.c の 215 行目に定義があります。
|
static |
任意のタスクを終了させる
com_task.c の 168 行目に定義があります。
|
static |
実行中タスクの状態を表示する
com_task.c の 134 行目に定義があります。
|
static |
各タスクキューに登録されているタスクを表示する
com_task.c の 156 行目に定義があります。
|
static |
実行中タスクのCPU使用率を表示する
com_task.c の 111 行目に定義があります。