From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1281FA00C3; Fri, 14 Jan 2022 18:02:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4C1641171; Fri, 14 Jan 2022 18:02:45 +0100 (CET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id F0E004115A for ; Fri, 14 Jan 2022 18:02:43 +0100 (CET) Received: by mail-pj1-f48.google.com with SMTP id i8-20020a17090a138800b001b3936fb375so22729357pja.1 for ; Fri, 14 Jan 2022 09:02:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ahYDXWQVSynlnhzBDgDLJZ8xBXrtpmlVH+xtVwT2kkg=; b=YvqKagygO4pGOPPm6m5WaJIXT9WO0TYG5ycgYANzI2p6mk2Y8e0QirnC/VjrAWpr1A +ffgl/+eQ+CZXbpl8igpux7O4E4f5W1So9MaiC/4ZAjFx5O9dy6jXLW87LTsQR7xEC0W MRrEJ6rK7hMyRAz40Sd/rW6Q/TvhOmUL0fhRT1B7KhCB9ZQmFU0YvSTCvewCtkBGlCeZ uJ744wdnvhj/NLuYmy6ad/y6K4De11DR2d0x/fj9w8zcrBfqvC3z8yG+g+YG+ztztggt OXXQiKT36S5FhD7AeG+2tb/vYQ8DAbDwj3L/T/LTBNdV0JrXaE22vnJQhpf+ey8OxTrE 4e/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ahYDXWQVSynlnhzBDgDLJZ8xBXrtpmlVH+xtVwT2kkg=; b=JxXdJp1lMMnne467QZOIak3/2igjwiLBOm5I1ZVFvnBJ80wJRctlGR6BOMRLzCxxl4 OMLX0hPmiy1AARf/4W89A+Tpi+Iz6XFZrVJjZvcMXWWEiWZKqQpayazNt2NgTYfTiKmV O6Ocg15g+zPT+5q3aVnd+dkeVnytMY3x8Gmop98r/jVSqAMrdz4lw4q0syaT/o5oLAmi Hvq47HPRuhcMWyCnLxLnbEUDYUkNT8H59G436sqKC3RVmK2hIPg0i/xe3wFSzsndwcun iuPN+0vHtdsYIHcdlCwlGDzHrSNM4kauH5Eo+MPNJnfTLMEXA26nRQACU0IXYRBZvhVa z13g== X-Gm-Message-State: AOAM5334fXUD0VfJdu+u07FLJMxPZ2R2lGNETEtroiIPO3uMr7bRWqd6 v5m7z/+LQ+1/dukAp5GRHL+P0Q== X-Google-Smtp-Source: ABdhPJwETRGjYvKTrM3x179yeFKXg4qdcbIl9LrR99iuAnhVb0/cxvnzLlz2SKoWzv30cuionMCFdg== X-Received: by 2002:a17:902:c944:b0:14a:79cd:a7d3 with SMTP id i4-20020a170902c94400b0014a79cda7d3mr9731898pla.49.1642179763138; Fri, 14 Jan 2022 09:02:43 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id n5sm5996765pfo.39.2022.01.14.09.02.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jan 2022 09:02:42 -0800 (PST) Date: Fri, 14 Jan 2022 09:02:40 -0800 From: Stephen Hemminger To: Sean Morrissey Cc: dev@dpdk.org, Conor Fogarty , Bruce Richardson Subject: Re: [PATCH v4 01/53] devtools: script to remove unused headers includes Message-ID: <20220114090240.17140845@hermes.local> In-Reply-To: <20220114162409.334437-2-sean.morrissey@intel.com> References: <20211007102557.188739-1-sean.morrissey@intel.com> <20220114162409.334437-1-sean.morrissey@intel.com> <20220114162409.334437-2-sean.morrissey@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, 14 Jan 2022 16:23:17 +0000 Sean Morrissey wrote: > This script can be used for removing headers flagged for removal by the > include-what-you-use (IWYU) tool. The script has the ability to remove > headers from specified sub-directories or dpdk as a whole and tests the > build after each removal by calling meson compile. > > example usages: > > Remove headers flagged by iwyu_tool output file > $ ./devtools/process_iwyu.py iwyu.out -b build > > Remove headers flagged by iwyu_tool output file from sub-directory > $ ./devtools/process_iwyu.py iwyu.out -b build -d lib/kvargs > > Remove headers directly piped from the iwyu_tool > $ iwyu_tool -p build | ./devtools/process_iwyu.py - -b build > > Signed-off-by: Sean Morrissey > Signed-off-by: Conor Fogarty > > Reviewed-by: Bruce Richardson Could this be a shell script instead of python? That would prevent having to pull in more python library dependencies.