All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Setup panic params early
@ 2013-11-27  6:17 Felipe Contreras
  2013-11-27  6:17 ` [PATCH v4 1/2] panic: setup panic_timeout early Felipe Contreras
  2013-11-27  6:17 ` [PATCH v4 2/2] panic: setup panic_on_oops early Felipe Contreras
  0 siblings, 2 replies; 5+ messages in thread
From: Felipe Contreras @ 2013-11-27  6:17 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ingo Molnar, Linus Torvalds, Andrew Morton, Levente Kurusa,
	Jason Baron, Felipe Contreras

Exactly the same as v3, but with an unlrelated patch on top as well.

Felipe Contreras (2):
  panic: setup panic_timeout early
  panic: setup panic_on_oops early

 kernel/panic.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

-- 
1.8.4.2+fc1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v4 1/2] panic: setup panic_timeout early
  2013-11-27  6:17 [PATCH v4 0/2] Setup panic params early Felipe Contreras
@ 2013-11-27  6:17 ` Felipe Contreras
  2013-11-27 15:47   ` Jason Baron
  2013-11-27  6:17 ` [PATCH v4 2/2] panic: setup panic_on_oops early Felipe Contreras
  1 sibling, 1 reply; 5+ messages in thread
From: Felipe Contreras @ 2013-11-27  6:17 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ingo Molnar, Linus Torvalds, Andrew Morton, Levente Kurusa,
	Jason Baron, Felipe Contreras

Otherwise we might not reboot when the user needs it the most (early
on).

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 kernel/panic.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index b6c482c..3456652 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -468,9 +468,14 @@ EXPORT_SYMBOL(__stack_chk_fail);
 
 #endif
 
-core_param(panic, panic_timeout, int, 0644);
 core_param(pause_on_oops, pause_on_oops, int, 0644);
 
+static int __init set_panic_timeout(char *val)
+{
+	return kstrtoint(val, 0, &panic_timeout);
+}
+early_param("panic_timeout", set_panic_timeout);
+
 static int __init oops_setup(char *s)
 {
 	if (!s)
-- 
1.8.4.2+fc1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v4 2/2] panic: setup panic_on_oops early
  2013-11-27  6:17 [PATCH v4 0/2] Setup panic params early Felipe Contreras
  2013-11-27  6:17 ` [PATCH v4 1/2] panic: setup panic_timeout early Felipe Contreras
@ 2013-11-27  6:17 ` Felipe Contreras
  1 sibling, 0 replies; 5+ messages in thread
From: Felipe Contreras @ 2013-11-27  6:17 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ingo Molnar, Linus Torvalds, Andrew Morton, Levente Kurusa,
	Jason Baron, Felipe Contreras

For consistency.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 kernel/panic.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index 3456652..2256838 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -468,7 +468,11 @@ EXPORT_SYMBOL(__stack_chk_fail);
 
 #endif
 
-core_param(pause_on_oops, pause_on_oops, int, 0644);
+static int __init set_panic_on_oops(char *val)
+{
+	return kstrtoint(val, 0, &panic_on_oops);
+}
+early_param("panic_on_oops", set_panic_on_oops);
 
 static int __init set_panic_timeout(char *val)
 {
-- 
1.8.4.2+fc1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v4 1/2] panic: setup panic_timeout early
  2013-11-27  6:17 ` [PATCH v4 1/2] panic: setup panic_timeout early Felipe Contreras
@ 2013-11-27 15:47   ` Jason Baron
  2013-11-27 16:43     ` Felipe Contreras
  0 siblings, 1 reply; 5+ messages in thread
From: Jason Baron @ 2013-11-27 15:47 UTC (permalink / raw)
  To: Felipe Contreras, linux-kernel@vger.kernel.org
  Cc: Ingo Molnar, Linus Torvalds, Andrew Morton, Levente Kurusa

On 11/27/2013 01:17 AM, Felipe Contreras wrote:
> Otherwise we might not reboot when the user needs it the most (early
> on).
>
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> ---
>  kernel/panic.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/kernel/panic.c b/kernel/panic.c
> index b6c482c..3456652 100644
> --- a/kernel/panic.c
> +++ b/kernel/panic.c
> @@ -468,9 +468,14 @@ EXPORT_SYMBOL(__stack_chk_fail);
>  
>  #endif
>  
> -core_param(panic, panic_timeout, int, 0644);
>  core_param(pause_on_oops, pause_on_oops, int, 0644);
>  
> +static int __init set_panic_timeout(char *val)
> +{
> +	return kstrtoint(val, 0, &panic_timeout);
> +}
> +early_param("panic_timeout", set_panic_timeout);
> +
>  static int __init oops_setup(char *s)
>  {
>  	if (!s)

hmm....so this changes the comand-line parameter panic=x  to:
panic_timeout=x. The naming might not be the best, but we are
really stuck with it at this point.

Thanks,

-Jason
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v4 1/2] panic: setup panic_timeout early
  2013-11-27 15:47   ` Jason Baron
@ 2013-11-27 16:43     ` Felipe Contreras
  0 siblings, 0 replies; 5+ messages in thread
From: Felipe Contreras @ 2013-11-27 16:43 UTC (permalink / raw)
  To: Jason Baron
  Cc: linux-kernel@vger.kernel.org, Ingo Molnar, Linus Torvalds,
	Andrew Morton, Levente Kurusa

On Wed, Nov 27, 2013 at 9:47 AM, Jason Baron <jbaron@akamai.com> wrote:
> On 11/27/2013 01:17 AM, Felipe Contreras wrote:
>> Otherwise we might not reboot when the user needs it the most (early
>> on).
>>
>> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
>> ---
>>  kernel/panic.c | 7 ++++++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/kernel/panic.c b/kernel/panic.c
>> index b6c482c..3456652 100644
>> --- a/kernel/panic.c
>> +++ b/kernel/panic.c
>> @@ -468,9 +468,14 @@ EXPORT_SYMBOL(__stack_chk_fail);
>>
>>  #endif
>>
>> -core_param(panic, panic_timeout, int, 0644);
>>  core_param(pause_on_oops, pause_on_oops, int, 0644);
>>
>> +static int __init set_panic_timeout(char *val)
>> +{
>> +     return kstrtoint(val, 0, &panic_timeout);
>> +}
>> +early_param("panic_timeout", set_panic_timeout);
>> +
>>  static int __init oops_setup(char *s)
>>  {
>>       if (!s)
>
> hmm....so this changes the comand-line parameter panic=x  to:
> panic_timeout=x. The naming might not be the best, but we are
> really stuck with it at this point.

Hmm, right, it should be "panic".

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-27 16:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27  6:17 [PATCH v4 0/2] Setup panic params early Felipe Contreras
2013-11-27  6:17 ` [PATCH v4 1/2] panic: setup panic_timeout early Felipe Contreras
2013-11-27 15:47   ` Jason Baron
2013-11-27 16:43     ` Felipe Contreras
2013-11-27  6:17 ` [PATCH v4 2/2] panic: setup panic_on_oops early Felipe Contreras

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.