Re: [PATCH] ftrace: fix task's invalid comm of <...> when big pid

2018-03-30 Thread Wang Yu
在 18/3/29 下午10:26, Steven Rostedt 写道: On Thu, 29 Mar 2018 10:16:22 +0800 Wang Yu wrote: What you can do is make that map_pid_to_cmdline array bigger. -- Steve I am sorry about it, and as the number of cpu cores increases, the current PID_MAX_DEFAULT is too small, our online machines set

Re: [PATCH] ftrace: fix task's invalid comm of <...> when big pid

2018-03-28 Thread Wang Yu
于 18/3/28 下午11:44, Steven Rostedt 写道: On Wed, 28 Mar 2018 11:35:22 -0400 Steven Rostedt wrote: On Wed, 28 Mar 2018 20:32:27 +0800 Wang Yu wrote: when pid is bigger than PID_MAX_DEFAULT, the comm of task is <...>, it is better use pid_max to compare Signed-off-by: Wang Yu ---

[PATCH] ftrace: fix task's invalid comm of <...> when big pid

2018-03-28 Thread Wang Yu
when pid is bigger than PID_MAX_DEFAULT, the comm of task is <...>, it is better use pid_max to compare Signed-off-by: Wang Yu --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 kernel/trace/trace.c diff --git a/kernel/trace/

about ext3_readpage

2007-11-13 Thread Wang Yu
Hi, all when I read ext3_readpage function following ext3_readpage->mpage_readpage->do_mpage_readpage, there are: nblocks = map_bh->b_size >> blkbits; if (buffer_mapped(map_bh) && block_in_file > *first_logical_block && block_in_file < (*first_logical_block + nblock