From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754847Ab2GIXrF (ORCPT ); Mon, 9 Jul 2012 19:47:05 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:44988 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752570Ab2GIXrC (ORCPT ); Mon, 9 Jul 2012 19:47:02 -0400 Date: Mon, 9 Jul 2012 16:44:58 -0700 From: Anton Vorontsov To: Steven Rostedt Cc: Greg Kroah-Hartman , Kees Cook , Colin Cross , Tony Luck , Frederic Weisbecker , Ingo Molnar , Arnd Bergmann , John Stultz , Shuah Khan , arve@android.com, Rebecca Schultz Zavin , Jesper Juhl , Randy Dunlap , Stephen Boyd , Thomas Meyer , Andrew Morton , Marco Stornelli , WANG Cong , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com Subject: Re: [PATCH 4/7] tracing/function: Introduce persistent trace option Message-ID: <20120709234457.GA25140@lizard> References: <20120626232210.GA11549@lizard> <1340753009-12483-4-git-send-email-anton.vorontsov@linaro.org> <1340800812.16702.3.camel@gandalf.stny.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1340800812.16702.3.camel@gandalf.stny.rr.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 27, 2012 at 08:40:12AM -0400, Steven Rostedt wrote: > On Tue, 2012-06-26 at 16:23 -0700, Anton Vorontsov wrote: > > @@ -219,6 +232,8 @@ static int func_set_flag(u32 old_flags, u32 bit, int set) > > > > return 0; > > } > > + if (bit == TRACE_FUNC_OPT_PSTORE) > > + return 0; > > Perhaps this should be a switch() statement, or at least put a > } else if () { > > As it can't be bit == TRACE_FUNC_OPT_STACK and bit == > TRACE_FUNC_OPT_PSTORE. Yup, thanks for the idea. I'll start using 'else if' at first, and then will convert it to a switch statement via a separate patch, that way I'll not clobber the functional patch with cosmetic changes. Thanks, -- Anton Vorontsov Email: cbouatmailru@gmail.com