no chinese output
This commit is contained in:
@@ -115,7 +115,7 @@ static int task_info_extract(void *buf, unsigned int len, void *) {
|
||||
tsk_info = (variable_monitor_task *)buf;
|
||||
seq++;
|
||||
|
||||
printf("##CGROUP:[%s] %d [%03d] 采样命中[%s]\n",
|
||||
printf("##CGROUP:[%s] %d [%03d] [%s]\n",
|
||||
tsk_info->task.cgroup_buf, tsk_info->task.pid, seq,
|
||||
tsk_info->task.state == 0 ? "R" : "D");
|
||||
|
||||
@@ -185,13 +185,13 @@ static void do_pid(char *arg) {
|
||||
|
||||
sscanf(optarg, "%d", &pid);
|
||||
if (pid <= 0) {
|
||||
printf("参数错误\n");
|
||||
printf("arg err\n");
|
||||
return;
|
||||
}
|
||||
printf("获取线程信息: %d\n", pid);
|
||||
printf("Get pid info: %d\n", pid);
|
||||
ret = diag_call_ioctl(IOCTL_PID, (long)&pid);
|
||||
if (ret) {
|
||||
printf("获取线程信息错误: %d\n", ret);
|
||||
printf("Get pid info err: %d\n", ret);
|
||||
}
|
||||
sleep(3);
|
||||
|
||||
@@ -204,13 +204,13 @@ static void do_tgid(char *arg) {
|
||||
|
||||
sscanf(optarg, "%d", &pid);
|
||||
if (pid <= 0) {
|
||||
printf("参数错误\n");
|
||||
printf("arg err\n");
|
||||
return;
|
||||
}
|
||||
printf("获取 tgid 信息: %d\n", pid);
|
||||
printf("Get tgid info: %d\n", pid);
|
||||
ret = diag_call_ioctl(IOCTL_TGID, (long)&pid);
|
||||
if (ret) {
|
||||
printf("获取线程信息错误: %d\n", ret);
|
||||
printf("Get tgid info err: %d\n", ret);
|
||||
}
|
||||
sleep(3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user