From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760779AbaGPTOh (ORCPT ); Wed, 16 Jul 2014 15:14:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52820 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760558AbaGPTO1 (ORCPT ); Wed, 16 Jul 2014 15:14:27 -0400 Date: Wed, 16 Jul 2014 21:12:48 +0200 From: Oleg Nesterov To: Steven Rostedt Cc: Masami Hiramatsu , Namhyung Kim , Srikar Dronamraju , Tom Zanussi , "zhangwei(Jovi)" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 6/7] tracing: change apply_subsystem_event_filter() paths to check file->system == dir Message-ID: <20140716191248.GA6854@redhat.com> References: <20140715184753.GA20470@redhat.com> <20140715184829.GA20516@redhat.com> <20140716143219.4fa2b72e@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140716143219.4fa2b72e@gandalf.local.home> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/16, Steven Rostedt wrote: > > On Tue, 15 Jul 2014 20:48:29 +0200 > Oleg Nesterov wrote: > > > filter_free_subsystem_preds(), filter_free_subsystem_filters() and > > replace_system_preds() can simply check file->system->subsystem and > > avoid strcmp(call->class->system). > > > > Better yet, we can pass "struct ftrace_subsystem_dir *dir" instead of > > event_subsystem and just check file->system == dir. > > > > Thanks to Namhyung Kim who pointed out that replace_system_preds() can > > be changed too. > > What? No thanks to me for suggesting the file->system == dir idea? > > /me pouts like a baby OOPS, sorry, Iactually forgot to add "as suggested by" ;) But, otoh... who cares about rostedt when it comes to tracing area? Oleg.