From: Zhaolei Date: Fri, 7 Aug 2009 10:55:48 +0000 (+0800) Subject: ftrace: Unify effect of writing to trace_options and option/* X-Git-Tag: v2.6.31-rc8~32^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2d84b65b9778e8a35dd904f7d3993f0a60c9756;p=pandora-kernel.git ftrace: Unify effect of writing to trace_options and option/* "echo noglobal-clock > trace_options" can be used to change trace clock but "echo 0 > options/global-clock" can't. The flag toggling will be silently accepted without actually changing the clock callback. We can fix it by using set_tracer_flags() in trace_options_core_write(). Changelog: v1->v2: Simplified switch() after Li Zefan 's suggestion Signed-off-by: Zhao Lei Cc: Steven Rostedt Cc: Li Zefan Signed-off-by: Frederic Weisbecker --- Reading git-diff-tree failed