Re: [PATCH 2/4] tracing: introduce trace_set_clr_module_event

From: Yuanhan Liu
Date: Tue Nov 09 2010 - 06:23:09 EST


On Tue, Nov 09, 2010 at 05:12:45PM +0800, Yuanhan Liu wrote:

[ snip ]

> + for_each_token(token, p) {
> + for_each_event(call, start, end) {
> + if (strcmp(token, "*") == 0 ||
> + strcmp(token, call->name) == 0)
> + ftrace_event_enable_disable(call, set);
> + else
> + pr_warning("Failed to find trace event: %s "
> + "in module %s\n", token, mod->name);
Oops, sorry for this obvious error, will fix it.

Besides that, any comments?

Thanks.

--
Yuanhan Liu
> +
> + }
> + }
> + kfree(buf);
> + return 0;
> +}
> +EXPORT_SYMBOL_GPL(trace_set_clr_module_event);
> +
> +
> #else
> static int trace_module_notify(struct notifier_block *self,
> unsigned long val, void *data)
> --
> 1.7.2.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/