From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756016AbcBPURy (ORCPT ); Tue, 16 Feb 2016 15:17:54 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:16491 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754110AbcBPURx (ORCPT ); Tue, 16 Feb 2016 15:17:53 -0500 X-IronPort-AV: E=Sophos;i="5.22,456,1449529200"; d="scan'208";a="164960588" Date: Tue, 16 Feb 2016 15:17:47 -0500 (EST) From: Julia Lawall X-X-Sender: jll@hadrien To: SF Markus Elfring cc: Julia Lawall , Yann Droneaud , Gilles Muller , Nicolas Palix , Michal Marek , Tejun Heo , Greg Kroah-Hartman , cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org, Johannes Weiner Subject: Re: coccinelle: also catch kzfree() issues In-Reply-To: <56C38049.7090205@users.sourceforge.net> Message-ID: References: <326298cef17f5109dc7b08094901aa1c69be83d5.1455638829.git.ydroneaud@opteya.com> <56C38049.7090205@users.sourceforge.net> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Feb 2016, SF Markus Elfring wrote: > >> @free@ > >> +identifier kfree =~ "kz?free"; > > > > Thanks for the suggestions. However, the regular expression is not such a > > good idea. > > How much is such a SmPL constraint still usable then? > > > > Coccinelle doesn't make any optimizations based on regulat expressions. > > Where can your software optimise the source code search? When the name appears explicitly in the matching code, Coccinelle will parse and process only files that contain that name. julia > > > > It would be better to put a disjunction with kfree and kzfree explicitly, > > as in the other cases. > > What are the circumstances for corresponding benefits? > > Regards, > Markus >