Re: [PATCH v3 1/5] tracing: Define new ftrace event "func_repeats"

2021-04-13 Thread Steven Rostedt
On Tue, 13 Apr 2021 15:17:36 -0400 Steven Rostedt wrote: > Running this with trace-cmd record, this displays: > > -0 [001] 261.848848: function: > next_zone > -0 [001] 261.848849: func_repeats: next_zone > <-need_update

Re: [PATCH v3 1/5] tracing: Define new ftrace event "func_repeats"

2021-04-13 Thread Steven Rostedt
On Tue, 13 Apr 2021 15:17:36 -0400 Steven Rostedt wrote: > Running this with trace-cmd record, this displays: > > -0 [001] 261.848848: function: > next_zone > -0 [001] 261.848849: func_repeats: next_zone > <-need_update

Re: [PATCH v3 1/5] tracing: Define new ftrace event "func_repeats"

2021-04-13 Thread Steven Rostedt
On Fri, 9 Apr 2021 21:10:27 +0300 "Yordan Karadzhov (VMware)" wrote: > --- > kernel/trace/trace.h | 3 +++ > kernel/trace/trace_entries.h | 22 + > kernel/trace/trace_output.c | 47 > 3 files changed, 72 insertions(+) > > diff --gi

Re: [PATCH v3 1/5] tracing: Define new ftrace event "func_repeats"

2021-04-13 Thread Steven Rostedt
On Fri, 9 Apr 2021 21:10:27 +0300 "Yordan Karadzhov (VMware)" wrote: > The event aims to consolidate the function tracing record in the cases > when a single function is called number of times consecutively. > > while (cond) > do_func(); > > This may happen in various scena

[PATCH v3 1/5] tracing: Define new ftrace event "func_repeats"

2021-04-09 Thread Yordan Karadzhov (VMware)
The event aims to consolidate the function tracing record in the cases when a single function is called number of times consecutively. while (cond) do_func(); This may happen in various scenarios (busy waiting for example). The new ftrace event can be used to show repeated