From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: Re: [RFC][PATCH 06/10] tracing: Add trigger file for trace_markers tracefs/ftrace/print Date: Wed, 16 May 2018 06:37:57 -0400 Message-ID: <20180516063757.7d5a1ca5@gandalf.local.home> References: <20180511194927.190877137@goodmis.org> <20180511195340.876528094@goodmis.org> <20180514031322.GB9220@sejong> <20180514110436.336b214b@gandalf.local.home> <20180516074904.GA30309@danjae.aot.lge.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Tom Zanussi , Clark Williams , Karim Yaghmour , Brendan Gregg , Joel Fernandes , Masami Hiramatsu , linux-rt-users@vger.kernel.org, kernel-team@lge.com To: Namhyung Kim Return-path: In-Reply-To: <20180516074904.GA30309@danjae.aot.lge.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org On Wed, 16 May 2018 16:49:04 +0900 Namhyung Kim wrote: > > Which will do: > > > > event_trigger_write() { > > event_trigger_regex_write() { > > trigger_process_regex() { > > for p in trigger_commands { > > p->func(); /* trigger_snapshot_cmd->func */ > > event_trigger_callback() { > > cmd_ops->reg() /* register_trigger() */ { > > trace_event_trigger_enable_disable() { > > trace_event_enable_disable() { > > call->class->reg(); > > > > Without this patch, we jump to NULL and BOOM! > > Thanks for the explanation. I wonder we can skip calling > trace_event_enable_disable() for events which have the > TRACE_EVENT_FL_IGNORE_ENABLE flag. Sounds like something we can do in the future. I rather have do the minimal now as it will have the least side effects, and it's already getting late in the current rc series. I'm looking to get this into the next merge window. But after that, changing it this way would be a nice clean up. -- Steve