linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] tracing: Drop static keyword for exported ftrace_set_clr_event()
@ 2019-08-30 19:32 Andy Shevchenko
  2019-08-30 21:04 ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2019-08-30 19:32 UTC (permalink / raw)
  To: Steven Rostedt, Ingo Molnar, linux-kernel; +Cc: Andy Shevchenko, Divya Indi

When we export something, it shan't be static.

Fixes: f45d1225adb0 ("tracing: Kernel access to Ftrace instances")
Cc: Divya Indi <divya.indi@oracle.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/linux/trace_events.h | 1 +
 kernel/trace/trace_events.c  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h
index 5150436783e8..30a8cdcfd4a4 100644
--- a/include/linux/trace_events.h
+++ b/include/linux/trace_events.h
@@ -548,6 +548,7 @@ extern int trace_event_get_offsets(struct trace_event_call *call);
 
 #define is_signed_type(type)	(((type)(-1)) < (type)1)
 
+int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set);
 int trace_set_clr_event(const char *system, const char *event, int set);
 
 /*
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 5a189fb8ec23..b89cdfe20bc1 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -787,7 +787,7 @@ static int __ftrace_set_clr_event(struct trace_array *tr, const char *match,
 	return ret;
 }
 
-static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set)
+int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set)
 {
 	char *event = NULL, *sub = NULL, *match;
 	int ret;
-- 
2.23.0.rc1


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

* Re: [PATCH v1] tracing: Drop static keyword for exported ftrace_set_clr_event()
  2019-08-30 19:32 [PATCH v1] tracing: Drop static keyword for exported ftrace_set_clr_event() Andy Shevchenko
@ 2019-08-30 21:04 ` Steven Rostedt
  2019-09-02  9:34   ` Andy Shevchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2019-08-30 21:04 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Ingo Molnar, linux-kernel, Divya Indi

On Fri, 30 Aug 2019 22:32:28 +0300
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> When we export something, it shan't be static.

I'm finally getting around to my patch queue (it's unfortunately much
bigger than I should be). But my punishment is duplicate patches.

Someone beat you to it...

 http://lkml.kernel.org/r/20190704172110.27041-1-efremov@linux.com

-- Steve

> 
> Fixes: f45d1225adb0 ("tracing: Kernel access to Ftrace instances")
> Cc: Divya Indi <divya.indi@oracle.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  include/linux/trace_events.h | 1 +
>  kernel/trace/trace_events.c  | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h
> index 5150436783e8..30a8cdcfd4a4 100644
> --- a/include/linux/trace_events.h
> +++ b/include/linux/trace_events.h
> @@ -548,6 +548,7 @@ extern int trace_event_get_offsets(struct trace_event_call *call);
>  
>  #define is_signed_type(type)	(((type)(-1)) < (type)1)
>  
> +int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set);
>  int trace_set_clr_event(const char *system, const char *event, int set);
>  
>  /*
> diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
> index 5a189fb8ec23..b89cdfe20bc1 100644
> --- a/kernel/trace/trace_events.c
> +++ b/kernel/trace/trace_events.c
> @@ -787,7 +787,7 @@ static int __ftrace_set_clr_event(struct trace_array *tr, const char *match,
>  	return ret;
>  }
>  
> -static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set)
> +int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set)
>  {
>  	char *event = NULL, *sub = NULL, *match;
>  	int ret;


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

* Re: [PATCH v1] tracing: Drop static keyword for exported ftrace_set_clr_event()
  2019-08-30 21:04 ` Steven Rostedt
@ 2019-09-02  9:34   ` Andy Shevchenko
  2019-09-04 10:19     ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2019-09-02  9:34 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Ingo Molnar, linux-kernel, Divya Indi

On Fri, Aug 30, 2019 at 05:04:24PM -0400, Steven Rostedt wrote:
> On Fri, 30 Aug 2019 22:32:28 +0300
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> 
> > When we export something, it shan't be static.
> 
> I'm finally getting around to my patch queue (it's unfortunately much
> bigger than I should be). But my punishment is duplicate patches.
> 
> Someone beat you to it...
> 
>  http://lkml.kernel.org/r/20190704172110.27041-1-efremov@linux.com

Looking to the original patch and taking into account that there is no user for
it, I guess the best option to simple revert original one (it will clean up
export table).

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v1] tracing: Drop static keyword for exported ftrace_set_clr_event()
  2019-09-02  9:34   ` Andy Shevchenko
@ 2019-09-04 10:19     ` Steven Rostedt
  0 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2019-09-04 10:19 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Ingo Molnar, linux-kernel, Divya Indi

On Mon, 2 Sep 2019 12:34:06 +0300
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> On Fri, Aug 30, 2019 at 05:04:24PM -0400, Steven Rostedt wrote:
> > On Fri, 30 Aug 2019 22:32:28 +0300
> > Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> >   
> > > When we export something, it shan't be static.  
> > 
> > I'm finally getting around to my patch queue (it's unfortunately much
> > bigger than I should be). But my punishment is duplicate patches.
> > 
> > Someone beat you to it...
> > 
> >  http://lkml.kernel.org/r/20190704172110.27041-1-efremov@linux.com  
> 
> Looking to the original patch and taking into account that there is no user for
> it, I guess the best option to simple revert original one (it will clean up
> export table).
> 

Except there will be.

 http://lkml.kernel.org/r/1565805327-579-1-git-send-email-divya.indi@oracle.com


-- Steve

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

end of thread, other threads:[~2019-09-04 10:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-30 19:32 [PATCH v1] tracing: Drop static keyword for exported ftrace_set_clr_event() Andy Shevchenko
2019-08-30 21:04 ` Steven Rostedt
2019-09-02  9:34   ` Andy Shevchenko
2019-09-04 10:19     ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).