From: Frederic Weisbecker Date: Sun, 16 Nov 2008 04:57:26 +0000 (+0100) Subject: tracing/ftrace: change the type of the init() callback X-Git-Tag: v2.6.29-rc1~586^2~56^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c80025a49855b12fa09bb6db71820e3367b1369;p=pandora-kernel.git tracing/ftrace: change the type of the init() callback Impact: extend the ->init() method with the ability to fail This bring a way to know if the initialization of a tracer successed. A tracer must return 0 on success and a traditional error (ie: -ENOMEM) if it fails. If a tracer fails to init, it is free to print a detailed warn. The tracing api will not and switch to a new tracer will just return the error from the init callback. Note: this will be used for the return tracer. Signed-off-by: Frederic Weisbecker Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed