Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp746838pxb; Thu, 19 Nov 2020 12:47:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCksBVkzqGU8g9jGPGwO3U+s4Amjq4GN+N1+HUiin6G3HeAy2TCjMNnpATbnn3lFJmzn7o X-Received: by 2002:aa7:c512:: with SMTP id o18mr31911006edq.357.1605818829205; Thu, 19 Nov 2020 12:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605818829; cv=none; d=google.com; s=arc-20160816; b=sCxjj5uGMdH5Vn8KoRK63VKXqr7pEDgnnr9nkqeNynx6pBlaK1X2XiZ+P7aceXyif7 rRDJH8Px2lyqU0YKRChepcAX9Mw4chymjzKwx9S8tMeelyK4gjhEdaZjX9xPd8+hzl0G /NjcTPftMtiVo42rts6dO8nOT+EiszjITB6ilhrRK8vCEPbCD0rda9zRH14DbBXt+y6p tp8LukRWabTnx2FLUMYVo90j7FREnLtmUR+5wOjRv9EHxNXcjmoxBYvDCaIOvrojsa2F F4z9xV9KAZRz0P5fDfNXd9uDCDzLAa/NSuHFoKUweFY+bIbUumAUAVh7jLXGgixn7WVK l9cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=pgYqjANhFZVw2xsV1NPryI63UVScbHN7GEpAwzgrcBA=; b=dZfn/CSyrBEZBTPaofEweLH3J7NIUq+4/DGThObXeHqFuwiwTrvPCiMW2rFaQGfOme 6zvu7JMu7lycDWdYiye8CY1X6sYMVy4trnafqQxk+3HqHGAYO3+hWJq0VAiagU7CqIyB 8IajfffABfxiY8EJO2O8+Sv8zo3nRY0dnS4oYJGA+aQuy/pqjgUy5ryUZ4iWhDYI9/2U VJaONphaa4ZtToGH4t3o2GUBmGtzMs4qYBEKVLn1QaGNx5CWlUu/VKVlZh0e0lIWabvk 9DEUPTRZlNxU6l1dqW5FWvcdSJSAMVad3Av5N0DHS+aSGS4RTi9uLqQ/Kdznegt8wXc5 fE1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aFvwhHHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si465972ejb.542.2020.11.19.12.46.44; Thu, 19 Nov 2020 12:47:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aFvwhHHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726224AbgKSUmR (ORCPT + 99 others); Thu, 19 Nov 2020 15:42:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:52368 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbgKSUmQ (ORCPT ); Thu, 19 Nov 2020 15:42:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605818535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pgYqjANhFZVw2xsV1NPryI63UVScbHN7GEpAwzgrcBA=; b=aFvwhHHDXDLqbjYYG/3ApYiRDtSZEsAQaUufHsOZI8DJEANFGKf6vv7ptjdSBUpAujdOrE uQ+02e0LZvJ0fyvxJeq1jexjMKilhzm87L5mvWOOFEuLRX0A+4GSdCXDOn53XmSzmJPBTz d4o/YLkJVIUDX90Uqq1avnCu7l1Gk5U= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-428-J2xKKEZ6OOWubPMcg1L6iQ-1; Thu, 19 Nov 2020 15:42:10 -0500 X-MC-Unique: J2xKKEZ6OOWubPMcg1L6iQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C76F11005D5C; Thu, 19 Nov 2020 20:42:04 +0000 (UTC) Received: from carbon (unknown [10.36.110.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7DFF810016F4; Thu, 19 Nov 2020 20:41:56 +0000 (UTC) Date: Thu, 19 Nov 2020 21:41:55 +0100 From: Jesper Dangaard Brouer To: Jakub Kicinski Cc: Joe Perches , Guenter Roeck , Tao Ren , Andrew Lunn , Jean Delvare , Jonathan Corbet , Alexei Starovoitov , Daniel Borkmann , "David S . Miller" , Jesper Dangaard Brouer , John Fastabend , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com, mikechoi@fb.com, brouer@redhat.com Subject: Re: XDP maintainer match (Was [PATCH v2 0/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring) Message-ID: <20201119214155.5285e2d2@carbon> In-Reply-To: <20201119095928.01fd10e0@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> References: <20201118230929.18147-1-rentao.bupt@gmail.com> <20201118232719.GI1853236@lunn.ch> <20201118234252.GA18681@taoren-ubuntu-R90MNF91> <20201119010119.GA248686@roeck-us.net> <20201119012653.GA249502@roeck-us.net> <20201119074634.2e9cb21b@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> <20201119173535.1474743d@carbon> <088057533a9feb330964bdab0b1b8d2f69b7a22c.camel@perches.com> <20201119095928.01fd10e0@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Nov 2020 09:59:28 -0800 Jakub Kicinski wrote: > On Thu, 19 Nov 2020 09:09:53 -0800 Joe Perches wrote: > > On Thu, 2020-11-19 at 17:35 +0100, Jesper Dangaard Brouer wrote: =20 > > > On Thu, 19 Nov 2020 07:46:34 -0800 Jakub Kicinski w= rote: =20 > > =20 > > > I think it is a good idea to change the keyword (K:), but I'm not sure > > > this catch what we want, maybe it does. The pattern match are meant = to > > > catch drivers containing XDP related bits. > > >=20 > > > Previously Joe Perches suggested this pattern match, > > > which I don't fully understand... could you explain Joe? > > >=20 > > > =C2=A0=C2=A0(?:\b|_)xdp(?:\b|_) =20 > >=20 > > This regex matches only: > >=20 > > xdp > > xdp_ > > _xdp_ > > _xdp > > =20 > > > For the filename (N:) regex match, I'm considering if we should remove > > > it and list more files explicitly. I think normal glob * pattern > > > works, which should be sufficient. =20 > >=20 > > Lists are generally more specific than regex globs. =20 >=20 > Checking like Alexei did it seems Joe's version is faster and better: >=20 > $ git grep -l -E "[^a-z0-9]xdp[^a-z0-9]" | wc -l > 295 > $ git grep -l -E '(\b|_)xdp(\b|_)' | wc -l > 297 > $ time git grep -l -E '(\b|_)xdp(\b|_)' > /tmp/a Okay, I guess this is the pattern you want: '(\b|_)xdp(\b|_)' =20 > Joe would you like to send a patch, or should I? As you noticed I already send out a patch, I can send a new with your pattern, as it seems to be faster. --=20 Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer