no chinese output
This commit is contained in:
@@ -156,7 +156,7 @@ void diag_printf_raw_stack(int pid, int ns_pid, const char *comm,
|
||||
entry_cb_arg_t unwind_arg;
|
||||
static u64 regs_buf[3];
|
||||
|
||||
printf(" 用户态堆栈SP:%lx, BP:%lx, IP:%lx\n", raw_stack->sp,
|
||||
printf(" USER STACK SP:%lx, BP:%lx, IP:%lx\n", raw_stack->sp,
|
||||
raw_stack->bp, raw_stack->ip);
|
||||
stack_sample.user_stack.offset = 0;
|
||||
stack_sample.user_stack.size = raw_stack->stack_size;
|
||||
@@ -252,9 +252,9 @@ std::string state_str(int __state){
|
||||
}
|
||||
|
||||
void printk_task_brief(task_detail *detail) {
|
||||
printf(" 进程信息: [%s / %s], PID: %d / %d\n", detail->cgroup_buf, detail->comm, detail->tgid,
|
||||
printf(" TASK INFO: [%s / %s], PID: %d / %d\n", detail->cgroup_buf, detail->comm, detail->tgid,
|
||||
detail->pid);
|
||||
printf(" 进程状态: type: %s, state: %s, state %d\n", sys_task_str(detail->sys_task), state_str(detail->state).c_str(),
|
||||
printf(" TASK STATE: type: %s, state: %s, state %d\n", sys_task_str(detail->sys_task), state_str(detail->state).c_str(),
|
||||
detail->state);
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@ void diag_printf_kern_stack(kern_stack_detail *kern_stack) {
|
||||
int i;
|
||||
symbol sym;
|
||||
|
||||
printf(" 内核态堆栈:\n");
|
||||
printf(" KERNEL STACK:\n");
|
||||
for (i = 0; i < BACKTRACE_DEPTH; i++) {
|
||||
if (kern_stack->stack[i] == (size_t)-1 || kern_stack->stack[i] == 0) {
|
||||
break;
|
||||
@@ -281,7 +281,7 @@ void diag_printf_proc_chains(proc_chains_detail *proc_chains) {
|
||||
int detail = 1;
|
||||
int i;
|
||||
|
||||
printf(" 进程链信息:\n");
|
||||
printf(" PROC CHAINS:\n");
|
||||
for (i = 0; i < PROCESS_CHAINS_COUNT; i++) {
|
||||
if (proc_chains->chains[i][0] == 0) break;
|
||||
if (proc_chains->full_argv[i] == 0 && detail) {
|
||||
|
||||
@@ -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