From: Douglas Raillard <[email protected]>

Rename the freshly exposed function to comply with the existing naming
convention for synth event public API.

Signed-off-by: Douglas Raillard <[email protected]>
---
 include/linux/trace_events.h      |  2 +-
 kernel/trace/trace_events_hist.c  |  8 ++++----
 kernel/trace/trace_events_synth.c | 10 +++++-----
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h
index cbe389d0e144..e069d84a73f0 100644
--- a/include/linux/trace_events.h
+++ b/include/linux/trace_events.h
@@ -519,7 +519,7 @@ extern int dynevent_create(struct dynevent_cmd *cmd);
 
 struct synth_event;
 
-extern struct synth_event *find_synth_event(const char *name);
+extern struct synth_event *synth_event_find(const char *name);
 
 extern void trace_synth(struct synth_event *event, u64 *var_ref_vals,
                               unsigned int *var_ref_idx);
diff --git a/kernel/trace/trace_events_hist.c b/kernel/trace/trace_events_hist.c
index a2bc7a972763..7067f6fedb1a 100644
--- a/kernel/trace/trace_events_hist.c
+++ b/kernel/trace/trace_events_hist.c
@@ -3964,7 +3964,7 @@ static int trace_action_create(struct hist_trigger_data 
*hist_data,
        else
                synth_event_name = data->action_name;
 
-       event = find_synth_event(synth_event_name);
+       event = synth_event_find(synth_event_name);
        if (!event) {
                hist_err(tr, HIST_ERR_SYNTH_EVENT_NOT_FOUND, 
errpos(synth_event_name));
                return -EINVAL;
@@ -6580,7 +6580,7 @@ static void hist_unreg_all(struct trace_event_file *file)
                        trace_event_trigger_enable_disable(file, 0);
 
                        se_name = trace_event_name(file->event_call);
-                       se = find_synth_event(se_name);
+                       se = synth_event_find(se_name);
                        if (se)
                                se->ref--;
 
@@ -6699,7 +6699,7 @@ static int event_hist_trigger_parse(struct event_command 
*cmd_ops,
 
                event_trigger_unregister(cmd_ops, file, glob+1, trigger_data);
                se_name = trace_event_name(file->event_call);
-               se = find_synth_event(se_name);
+               se = synth_event_find(se_name);
                if (se)
                        se->ref--;
                ret = 0;
@@ -6735,7 +6735,7 @@ static int event_hist_trigger_parse(struct event_command 
*cmd_ops,
                goto out_unreg;
 
        se_name = trace_event_name(file->event_call);
-       se = find_synth_event(se_name);
+       se = synth_event_find(se_name);
        if (se)
                se->ref++;
  out:
diff --git a/kernel/trace/trace_events_synth.c 
b/kernel/trace/trace_events_synth.c
index 9f0817eec3c2..4a9a44d37ffc 100644
--- a/kernel/trace/trace_events_synth.c
+++ b/kernel/trace/trace_events_synth.c
@@ -830,7 +830,7 @@ static struct tracepoint *alloc_synth_tracepoint(char *name)
        return tp;
 }
 
-struct synth_event *find_synth_event(const char *name)
+struct synth_event *synth_event_find(const char *name)
 {
        struct dyn_event *pos;
        struct synth_event *event;
@@ -845,7 +845,7 @@ struct synth_event *find_synth_event(const char *name)
 
        return NULL;
 }
-EXPORT_SYMBOL_GPL(find_synth_event);
+EXPORT_SYMBOL_GPL(synth_event_find);
 
 typedef void (*synth_probe_func_t) (void *__data, u64 *var_ref_vals,
                                    unsigned int *var_ref_idx);
@@ -1317,7 +1317,7 @@ static int __create_synth_event(const char *name, const 
char *raw_fields)
 
        mutex_lock(&event_mutex);
 
-       event = find_synth_event(name);
+       event = synth_event_find(name);
        if (event) {
                synth_err(SYNTH_ERR_EVENT_EXISTS, errpos(name));
                ret = -EEXIST;
@@ -1513,7 +1513,7 @@ int synth_event_delete(const char *event_name)
        int ret = -ENOENT;
 
        mutex_lock(&event_mutex);
-       se = find_synth_event(event_name);
+       se = synth_event_find(event_name);
        if (se) {
                mod = se->mod;
                ret = destroy_synth_event(se);
@@ -1622,7 +1622,7 @@ static int synth_event_run_command(struct dynevent_cmd 
*cmd)
        if (ret)
                return ret;
 
-       se = find_synth_event(cmd->event_name);
+       se = synth_event_find(cmd->event_name);
        if (WARN_ON(!se))
                return -ENOENT;
 
-- 
2.43.0


Reply via email to