summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_dynevent.h
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@kernel.org>2020-01-31 22:55:32 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-02-01 19:09:23 +0100
commit74403b6c50dd7a633d3f22f59f975d6081eae093 (patch)
tree063ed11d68b2f8bbc668e8fdfdb188fb22771e93 /kernel/trace/trace_dynevent.h
parenttracing: Consolidate some synth_event_trace code (diff)
downloadlinux-74403b6c50dd7a633d3f22f59f975d6081eae093.tar.xz
linux-74403b6c50dd7a633d3f22f59f975d6081eae093.zip
tracing: Remove check_arg() callbacks from dynevent args
It's kind of strange to have check_arg() callbacks as part of the arg objects themselves; it makes more sense to just pass these in when the args are added instead. Remove the check_arg() callbacks from those objects which also means removing the check_arg() args from the init functions, adding them to the add functions and fixing up existing callers. Link: http://lkml.kernel.org/r/c7708d6f177fcbe1a36b6e4e8e150907df0fa5d2.1580506712.git.zanussi@kernel.org Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_dynevent.h')
-rw-r--r--kernel/trace/trace_dynevent.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/kernel/trace/trace_dynevent.h b/kernel/trace/trace_dynevent.h
index b593fc34c5b1..d6857a254ede 100644
--- a/kernel/trace/trace_dynevent.h
+++ b/kernel/trace/trace_dynevent.h
@@ -126,28 +126,27 @@ typedef int (*dynevent_check_arg_fn_t)(void *data);
struct dynevent_arg {
const char *str;
char separator; /* e.g. ';', ',', or nothing */
- dynevent_check_arg_fn_t check_arg;
};
extern void dynevent_arg_init(struct dynevent_arg *arg,
- dynevent_check_arg_fn_t check_arg,
char separator);
extern int dynevent_arg_add(struct dynevent_cmd *cmd,
- struct dynevent_arg *arg);
+ struct dynevent_arg *arg,
+ dynevent_check_arg_fn_t check_arg);
struct dynevent_arg_pair {
const char *lhs;
const char *rhs;
char operator; /* e.g. '=' or nothing */
char separator; /* e.g. ';', ',', or nothing */
- dynevent_check_arg_fn_t check_arg;
};
extern void dynevent_arg_pair_init(struct dynevent_arg_pair *arg_pair,
- dynevent_check_arg_fn_t check_arg,
char operator, char separator);
+
extern int dynevent_arg_pair_add(struct dynevent_cmd *cmd,
- struct dynevent_arg_pair *arg_pair);
+ struct dynevent_arg_pair *arg_pair,
+ dynevent_check_arg_fn_t check_arg);
extern int dynevent_str_add(struct dynevent_cmd *cmd, const char *str);
#endif