Re: [PATCH v2 2/6] tracing: add flag to control different traces

2020-07-27 Thread Tingwei Zhang
Hi Steve, On Tue, Jul 28, 2020 at 02:45:50AM +0800, Steven Rostedt wrote: > On Sun, 26 Jul 2020 10:59:27 +0800 > Tingwei Zhang wrote: > > > > diff --git a/include/linux/trace.h b/include/linux/trace.h > > index 7fd86d3c691f..d2fdf9be84b5 100644 > > --- a/include/linux/trace.h > > +++ b/include/l

Re: [PATCH v2 2/6] tracing: add flag to control different traces

2020-07-27 Thread Steven Rostedt
On Sun, 26 Jul 2020 10:59:27 +0800 Tingwei Zhang wrote: > diff --git a/include/linux/trace.h b/include/linux/trace.h > index 7fd86d3c691f..d2fdf9be84b5 100644 > --- a/include/linux/trace.h > +++ b/include/linux/trace.h > @@ -3,6 +3,9 @@ > #define _LINUX_TRACE_H > > #ifdef CONFIG_TRACING > +

[PATCH v2 2/6] tracing: add flag to control different traces

2020-07-25 Thread Tingwei Zhang
More traces like event trace or trace marker will be supported. Add flag for difference traces, so that they can be controlled separately. Move current function trace to it's own flag instead of global ftrace enable flag. Signed-off-by: Tingwei Zhang --- include/linux/trace.h | 5 + kernel/