From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934909AbaGPSc0 (ORCPT ); Wed, 16 Jul 2014 14:32:26 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.229]:53186 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934637AbaGPScW (ORCPT ); Wed, 16 Jul 2014 14:32:22 -0400 Date: Wed, 16 Jul 2014 14:32:19 -0400 From: Steven Rostedt To: Oleg Nesterov 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: <20140716143219.4fa2b72e@gandalf.local.home> In-Reply-To: <20140715184829.GA20516@redhat.com> References: <20140715184753.GA20470@redhat.com> <20140715184829.GA20516@redhat.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Steve > > Signed-off-by: Oleg Nesterov > ---