Thread (23 messages) 23 messages, 4 authors, 2020-01-31

Re: [PATCH v4 04/12] tracing: Add dynamic event command creation interface

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2020-01-30 02:58:57
Also in: lkml

On Thu, 30 Jan 2020 11:40:28 +0900
Masami Hiramatsu [off-list ref] wrote:
quoted
+int dynevent_arg_add(struct dynevent_cmd *cmd,
+		     struct dynevent_arg *arg)
+{
+	int ret = 0;
+	int delta;
+	char *q;
+
+	if (arg->check_arg) {
+		ret = arg->check_arg(arg);  
Hmm, this seems a bit odd. The check_arg() arg object member check
the validity of the object itself. What about moving those checker
into dynevent_cmd instead of dynevent_arg?
(Or, just pass the appropriate checker as the 3rd parameter of
 this function)
Masami,

Thanks for reviewing these patches.

Tom,

Please send updates on top of this series. I've already pulled them in
my queue and there going through my test suite now. It will be easier
just to add changes on top than to send another version at this point.

You can see what I'm testing via my repo on branch ftrace/core.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help