Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2221331ybb; Mon, 30 Mar 2020 01:48:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsAL6jmph5ffmLLhJKOv9YTj1bAqsrQz8nwkHS4t2dx8LguNL1UDoztSFq45fjKFloAHBLw X-Received: by 2002:a4a:d44d:: with SMTP id p13mr8772277oos.5.1585558096737; Mon, 30 Mar 2020 01:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585558096; cv=none; d=google.com; s=arc-20160816; b=Y+fuPxKJ+rYr7iISH9RUUzczKaG2vupOJRWtdQs2fNMavCI8cDPkMowVxECACg51Wv kEbpAF89rnPtoRDtIMN+ow72tCsnHnMVrRxwiSgXpisipCbz52EsrMEpGdMrqrb3T2i6 x5vqIcyPnjaQVDKci/MFSq1AF9pVbVEI4VhxmV3ICz3qhRpy/SJF3C1tzisEzpJewMW+ N2cXl3T4UXF8D9pCZFEMUVR7DOshfGC4jfJ5+DwiM/1t9bFQmaTLtOunhvALmjqbflra wyO4eee3pKYG7S39JcOv+EqlwhLb+5srUW1ijDp7g8HGyV1SaXdpiQ7eEVQ1hRqbcBqU Vfkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=LLLFmcEUPM7dDBwc6yK6ng/Oc80cUknvhCjIVSGTy6I=; b=u7iAEBY64MBAPLPW8bYRqWzIC6iVdKRhaLEnEziBy5KpClqCuHAIHW11WVbcbSEEOi ol22QvPV4L3l1/LsvTvS/MqIMvmjjZ2bV+UMT+dSzwZou4hAvoJX56nE/JgMzVrtjidr LdgOfLtZAfWjqMBHZES0uxO3e0ws27GZraZxU1YXIR1F35iavUdBQYN2KNpvEbdIIL5C ta4LYB28P7P+g9wdgMABwegaHtMGQaGlNjjIdzx8JDseCrw1hD/4RAvkFjM9AUyenKQH LC2Zwn/1pEul2XZ6csRQ2Wqbln0x4Hobwme0LlhXrEZJkUzo+keIsThf+rJUXVF/KdkU Ir7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l25si6439032otn.206.2020.03.30.01.48.04; Mon, 30 Mar 2020 01:48:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729664AbgC3Irm (ORCPT + 99 others); Mon, 30 Mar 2020 04:47:42 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:59160 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729538AbgC3Irm (ORCPT ); Mon, 30 Mar 2020 04:47:42 -0400 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" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: 8BIT 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=7111951b8d4973bda27ff663f2cf18b663d15b48#n122 > > // deleted part > static inline int FNAME(is_present_gpte)(unsigned long pte) > { > #if PTTYPE != PTTYPE_EPT > return pte & PT_PRESENT_MASK; > #else > return pte & 7; > #endif > } > // deleted part > > > Application of the software “Coccinelle 1.0.8-00029-ga549b9f0” (OCaml 4.10.0) > > elfring@Sonne:~/Projekte/Coccinelle/Probe> spatch --parse-c paging_tmpl-excerpt1.h > … > (ONCE) CPP-MACRO: found known macro = FNAME > … > parse error > = File "paging_tmpl-excerpt1.h", line 2, column 41, charpos = 57 > around = 'unsigned', > … > BAD:!!!!! static inline int FNAME(is_present_gpte)(unsigned long pte) > … > NB total files = 1; perfect = 0; pbs = 1; timeout = 0; =========> 0% > nb good = 1, nb passed = 1 =========> 10.00% passed > nb good = 1, nb bad = 8 =========> 20.00% good or 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--