Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp459259lqp; Thu, 21 Mar 2024 06:36:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAlgz4AOIo6MGpnF55lAFKpcf59JmunTCoyeuTuUb+9VEXW1S6gv/STvepijFg47mqAjNIU3UJYEjlPHg61tbQ2uZRVlfguNNCxCH8rQ== X-Google-Smtp-Source: AGHT+IE5laTQGEtM4NGQRJwW4p3j9smcAyXDJgwNDf+OY8OAyfsLVP1osaXP+KzALKuGscsyEg1S X-Received: by 2002:a17:906:e246:b0:a46:dc7d:9fb8 with SMTP id gq6-20020a170906e24600b00a46dc7d9fb8mr5903236ejb.22.1711028160391; Thu, 21 Mar 2024 06:36:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711028160; cv=pass; d=google.com; s=arc-20160816; b=A19MktjEabl0RLAUhuhYTs7WZECnIn/93fOFEH6VB78u3NxwNOMkMtl85/OBnLBVSZ s1FiFGpI0WfSMieXIhWvt7DvOVRuzVi69RyyQQ5mE+/3T0bx7VDuo4dWFJzPrt0J6bC6 5kA/ySsCX9eFiOe2cCn1Z2DIya/LZDEoecgEYldQRgLq3xlMcBEnUfzolmG8iHJIrwyO vUH9Z3yjhsK36HBre1fi4OrmhsmncNc5KlFz2KTH20J6nfs7zdeJ4C6xCzLC59rM6G6M KNDyU/tU7wAdA0/hruFzn9IpUjiGaw0ePDjgi0qxnKotSsRSb94tNXbfDhuQf09YRk1f GnCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wtaZr8IbEYe9mKAHzfxhYvVVAhwfoBmwYKNfZoRKXIo=; fh=xqBA6XU1fuyTFblptcc0c2Nkny7AEuI4qyn8l5YDn6E=; b=w6hRC9gVpps2PWez2Ffl11YxMiKZwFnAFV7PE3Jf6pfvq+RJ3jqOqGdjnnfsu/j0nd sdi+Tpf97VDiTjfV6la0I9jWalllKbGrngrfbN5Asn9uThvRC4iIRMAml2TZnaE1FEYo CXurqs8zflNTOCEA3uT1C1s7F8Eo1cUQnzFVPWxvbwD8hNNYgGA/lGFbe+dzcAyFE8Ql U7Mq6c175j6dSR024QuFv6GE5FjRJHj5zGZJHRVOjRrcJVbl9zITKXL0b4Rj8dmgJwjo BFUNyRQLLNDmOTRedpobYvfnvviHFbwJmupS7z7LMxVykqCtjWfLyBiZBBgoZJI23jt3 6K2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aWL3OMvA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110100-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id rs27-20020a170907037b00b00a45bb232eecsi7579599ejb.57.2024.03.21.06.36.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 06:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aWL3OMvA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110100-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2334D1F21BC3 for ; Thu, 21 Mar 2024 13:36:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3A8284A4D; Thu, 21 Mar 2024 13:35:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aWL3OMvA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07E925810B; Thu, 21 Mar 2024 13:35:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711028151; cv=none; b=o0jYGmLChB8zhsFlUKvFMN4It2Y7gGVQss0r6rTAMilPZYucKBM7zJej64O+mc4nJ4F1EEhDEJm7xaL0U6Yl5Kw4pebhLvnrWZFR8Rj0UdlV7e3k7NaSSKVgLB6/eMkl7hX2Ifhw7B0scdTZsaT9lUq9qH4nEk7YTEHMkcdSLRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711028151; c=relaxed/simple; bh=fYG4E4wFakwbj3fhrxbqt2XkujIXeIIfV+EnH3hriVw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B6Qydh7+v7Fx5AH1lT/R45qHTAZ65btKYUILK2yV6YRjNUV37FAcCWE7HaVuPdzXAPbea+XhwNLVGjxTA53x7vpZAlscP9KZtzQTsT1lpRlFagXkWCbcDCcMDtzaTSqMHOgESq/cVeOD0zC+Ip56vZp7cWie8GLErKVyxeN8c7A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aWL3OMvA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33725C433F1; Thu, 21 Mar 2024 13:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711028148; bh=fYG4E4wFakwbj3fhrxbqt2XkujIXeIIfV+EnH3hriVw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aWL3OMvAh+ElF/VUhZ0KMxI0c3OGNrXWdU89Qndzm30HdLttjDBbytGBGm+ZKGGxr /ZDjPlJ2b3WgNPNl2kNDpOPl7sYsFHqjBL4EeH+4QG0BTxmH99DhLwtoE8XeDYxD5H Xje8VqXOhHjlI+o1tODEpGtBtJM2lQ5ydgHn1BRur3eDQgd3fEEvw4hDdiK6FNu042 E4PoAN6lcZoSfw4Zmre3F+ovsfU/pRAlbP8lW4l2Y0UggQthuxlFUkPBrK6rum6PfG uebbkN6Db7OL2XKiFa8sSqWpMd+/vsixn5BsyzJD+kb56iazj2t6GvQ/WzqeOiAU0R DuuqNKMOb7dXw== Date: Thu, 21 Mar 2024 10:35:45 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Jiri Olsa , Namhyung Kim , Adrian Hunter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo Subject: Re: [PATCH 1/5] perf beauty: Introduce scrape script for various fs syscalls 'flags' arguments Message-ID: References: <20240320193115.811899-1-acme@kernel.org> <20240320193115.811899-2-acme@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Mar 20, 2024 at 06:47:28PM -0700, Ian Rogers wrote: > On Wed, Mar 20, 2024 at 12:31 PM Arnaldo Carvalho de Melo > > +++ b/tools/perf/Makefile.perf > > @@ -489,6 +489,12 @@ beauty_ioctl_outdir := $(beauty_outdir)/ioctl > > # Create output directory if not already present > > $(shell [ -d '$(beauty_ioctl_outdir)' ] || mkdir -p '$(beauty_ioctl_outdir)') > > > > +fs_at_flags_array := $(beauty_outdir)/fs_at_flags_array.c > > +fs_at_flags_tbl := $(srctree)/tools/perf/trace/beauty/fs_at_flags.sh > > + > > +$(fs_at_flags_array): $(beauty_uapi_linux_dir)/fcntl.h $(fs_at_flags_tbl) > > + $(Q)$(SHELL) '$(fs_at_flags_tbl)' $(beauty_uapi_linux_dir) > $@ > > + > > I wonder if rather than update Makefile.perf, we could push more of > the logic into tools/perf/trace/beauty/Build. It would also be nice to > add there the shellcheck logic: > https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/tree/tools/perf/tests/Build?h=perf-tools-next#n81 Sure, I thought about consolidating lots of boilerplate there and also to move it to tools/perf/trace/beauty/Build. Will see if I can do it in this series at some point. Thanks for reviewing the patches, - Arnaldo