Re: [PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-08-17 Thread Guilherme G. Piccoli
On 16/08/2022 12:52, Steven Rostedt wrote: > On Tue, 16 Aug 2022 10:57:20 -0400 > Alan Stern wrote: > >>> static int trace_die_panic_handler(struct notifier_block *self, >>> unsigned long ev, void *unused) >>> { >>> if (!ftrace_dump_on_oops) >>> return

Re: [PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-08-16 Thread Steven Rostedt
On Tue, 16 Aug 2022 10:57:20 -0400 Alan Stern wrote: > > static int trace_die_panic_handler(struct notifier_block *self, > > unsigned long ev, void *unused) > > { > > if (!ftrace_dump_on_oops) > > return NOTIFY_DONE; > > > > /* The die notifier

Re: [PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-08-16 Thread Steven Rostedt
On Tue, 19 Jul 2022 16:53:21 -0300 "Guilherme G. Piccoli" wrote: Sorry for the late review, but this fell to the bottom of my queue :-/ > +/* > + * The idea is to execute the following die/panic callback early, in order > + * to avoid showing irrelevant information in the trace (like other

Re: [PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-08-16 Thread Alan Stern
On Tue, Aug 16, 2022 at 10:14:45AM -0400, Steven Rostedt wrote: > On Tue, 19 Jul 2022 16:53:21 -0300 > "Guilherme G. Piccoli" wrote: > > > Sorry for the late review, but this fell to the bottom of my queue :-/ > > > +/* > > + * The idea is to execute the following die/panic callback early, in

Re: [PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-08-15 Thread Guilherme G. Piccoli
On 19/07/2022 16:53, Guilherme G. Piccoli wrote: > Currently the tracing dump_on_oops feature is implemented > through separate notifiers, one for die/oops and the other > for panic - given they have the same functionality, let's > unify them. > > Also improve the function comment and change the

Re: [PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-08-03 Thread Guilherme G. Piccoli
On 03/08/2022 06:52, Baoquan He wrote: > [...] >> >> Although the switch-case code of original trace_die_handler() is werid, >> this unification is not much more comfortable. Just personal feeling >> from code style, not strong opinion. Leave it to trace reviewers. > > Please ignore this

Re: [PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-08-03 Thread Baoquan He
On 08/03/22 at 05:36pm, Baoquan He wrote: > On 07/19/22 at 04:53pm, Guilherme G. Piccoli wrote: > > Currently the tracing dump_on_oops feature is implemented > > through separate notifiers, one for die/oops and the other > > for panic - given they have the same functionality, let's > > unify them.

Re: [PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-08-03 Thread Baoquan He
On 07/19/22 at 04:53pm, Guilherme G. Piccoli wrote: > Currently the tracing dump_on_oops feature is implemented > through separate notifiers, one for die/oops and the other > for panic - given they have the same functionality, let's > unify them. > > Also improve the function comment and change

[PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-07-20 Thread Guilherme G. Piccoli
Currently the tracing dump_on_oops feature is implemented through separate notifiers, one for die/oops and the other for panic - given they have the same functionality, let's unify them. Also improve the function comment and change the priority of the notifier to make it execute earlier, avoiding