Re: [PATCH 6/6] kexec jump: fix for ftrace

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Huang Ying
Date: Thursday, August 7, 2008 - 7:59 pm

On Thu, 2008-08-07 at 09:38 -0400, Vivek Goyal wrote:
[...]

The ftracer issue for kexec is reported by Dhaval Giani and fixed by
Ingo as in following thread:

http://lkml.org/lkml/2008/2/19/175

After some testing, I found that if we enable ftrace before
restore_processor_state(), system will hang. I think maybe ftracer
depends on some processor state that we destroyed during kexec and
restored by restore_processor_state(). So I move save_processor_state()
and restore_processor_state() into machine_kexec() and enable ftrace
after restore_processor_state().

The #ifdef CONFIG_FTRACE should be removed. I think an interface like
irq_save/restore is good for this.

saved_ftrace_enabled = ftrace_save_enabled()
<...>
ftrace_restore_enabled(saved_ftrace_enabled)

Best Regards,
Huang Ying


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 6/6] kexec jump: fix for ftrace, Huang Ying, (Thu Aug 7, 2:05 am)
Re: [PATCH 6/6] kexec jump: fix for ftrace, Pavel Machek, (Thu Aug 7, 2:24 am)
Re: [PATCH 6/6] kexec jump: fix for ftrace, Vivek Goyal, (Thu Aug 7, 6:38 am)
Re: [PATCH 6/6] kexec jump: fix for ftrace, Huang Ying, (Thu Aug 7, 7:59 pm)