From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02345C2D0EB for ; Mon, 30 Mar 2020 08:47:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BAD3D20748 for ; Mon, 30 Mar 2020 08:47:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BAD3D20748 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=inria.fr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 58E636B0008; Mon, 30 Mar 2020 04:47:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 53F426B000C; Mon, 30 Mar 2020 04:47:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 47C326B0032; Mon, 30 Mar 2020 04:47:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0067.hostedemail.com [216.40.44.67]) by kanga.kvack.org (Postfix) with ESMTP id 32BC06B0008 for ; Mon, 30 Mar 2020 04:47:43 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id C10708248047 for ; Mon, 30 Mar 2020 08:47:42 +0000 (UTC) X-FDA: 76651400364.05.peace16_909cf4f2744c X-HE-Tag: peace16_909cf4f2744c X-Filterd-Recvd-Size: 3888 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Mon, 30 Mar 2020 08:47:41 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.72,323,1580770800"; d="scan'208";a="344238156" Received: from abo-173-121-68.mrs.modulonet.fr (HELO hadrien) ([85.68.121.173]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 10:47:39 +0200 Date: Mon, 30 Mar 2020 10:47:38 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: Michel Lespinasse , Coccinelle , linux-mm@kvack.org, Davidlohr Bueso , Peter Zijlstra , Hugh Dickins , LKML , Liam Howlett , Jason Gunthorpe , Matthew Wilcox , Ying Han , David Rientjes , Andrew Morton , Laurent Dufour , Vlastimil Babka Subject: Re: [Cocci] [v3 05/10] mmap locking API: Improving the Coccinelle software In-Reply-To: <2c74e465-249d-eeb8-86fe-462b93bfe743@web.de> Message-ID: References: <20200327225102.25061-1-walken@google.com> <20200327225102.25061-6-walken@google.com> <3c222f3c-c8e2-660a-a348-5f3583e7e036@web.de> <2c74e465-249d-eeb8-86fe-462b93bfe743@web.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-454865659-1585558059=:2432" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-454865659-1585558059=:2432 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, 30 Mar 2020, Markus Elfring wrote: > >> How will corresponding software development resources evolve? > > > > I don't think I understand the question, or, actually, are you asking > > me or the coccinelle developers ? > > I hope that more development challenges will be picked up. > > The code from a mentioned source file can be reduced to the following > test file. > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree= /arch/x86/kvm/mmu/paging_tmpl.h?id=3D7111951b8d4973bda27ff663f2cf18b663d1= 5b48#n122 > > // deleted part > static inline int FNAME(is_present_gpte)(unsigned long pte) > { > #if PTTYPE !=3D PTTYPE_EPT > return pte & PT_PRESENT_MASK; > #else > return pte & 7; > #endif > } > // deleted part > > > Application of the software =E2=80=9CCoccinelle 1.0.8-00029-ga549b9f0=E2= =80=9D (OCaml 4.10.0) > > elfring@Sonne:~/Projekte/Coccinelle/Probe> spatch --parse-c paging_tmpl= -excerpt1.h > =E2=80=A6 > (ONCE) CPP-MACRO: found known macro =3D FNAME > =E2=80=A6 > parse error > =3D File "paging_tmpl-excerpt1.h", line 2, column 41, charpos =3D 57 > around =3D 'unsigned', > =E2=80=A6 > BAD:!!!!! static inline int FNAME(is_present_gpte)(unsigned long pte) > =E2=80=A6 > NB total files =3D 1; perfect =3D 0; pbs =3D 1; timeout =3D 0; =3D=3D=3D= =3D=3D=3D=3D=3D=3D> 0% > nb good =3D 1, nb passed =3D 1 =3D=3D=3D=3D=3D=3D=3D=3D=3D> 10.00% pas= sed > nb good =3D 1, nb bad =3D 8 =3D=3D=3D=3D=3D=3D=3D=3D=3D> 20.00% good o= r passed > > > How would you like to improve the affected software areas? This can be addressed by adding a macro definition to standard.h. But once the change is done, I don't see any reason to bother with this. julia --8323329-454865659-1585558059=:2432--