From: Li Zefan Date: Wed, 24 Jun 2009 01:54:54 +0000 (+0800) Subject: ftrace: Fix t_hash_start() X-Git-Tag: v2.6.31-rc2~78^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d82d62444f87e5993af2fa82ed636b2206e052ea;p=pandora-kernel.git ftrace: Fix t_hash_start() When the output of set_ftrace_filter is larger than PAGE_SIZE, t_hash_start() will be called the 2nd time, and then we start from the head of a hlist, which is wrong and causes some entries to be outputed twice. The worse is, if the hlist is large enough, reading set_ftrace_filter won't stop but in a dead loop. Reviewed-by: Liming Wang Signed-off-by: Li Zefan Cc: Steven Rostedt Cc: Frederic Weisbecker LKML-Reference: <4A41876E.2060407@cn.fujitsu.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed