Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp112216rba; Wed, 20 Mar 2024 12:32:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtCUCk+l7aR4l/VN4g0p+7x2DfN/kCNEHHJfjIjcvgEEzXPJEYfrMh7WEnMF2pANMwXgCsfh91NL/ENpvgkb7/wynFGXynydJ5s18j7A== X-Google-Smtp-Source: AGHT+IGKT8oE4YJKP3NAPG3Of/uTO/ZWEINZMr5T1sD8PUvhTpByaw0tlLSyeLeu0Tov4EbOGnQ5 X-Received: by 2002:a05:620a:19a1:b0:789:d675:6e5c with SMTP id bm33-20020a05620a19a100b00789d6756e5cmr3675173qkb.52.1710963145975; Wed, 20 Mar 2024 12:32:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710963145; cv=pass; d=google.com; s=arc-20160816; b=ZsjwnDOxlZq1R3+Fy4bW0viYaNdthAILwzEfemVg7fBwAtPIiST4sI8EWqXe7clwwN Bt8Oe+3CaUSSz5Hu2yvHvxtC1/gdWEPq8jatkxPwm9g0tC9r7+NkK5stqFN+K5eM4esA yG/DhnRXZbyufV65Aj6ksQiiVrKmX+KszG4b4kbhaxEP/Rz/J4neuqJtCJUCu4ZzAxwN 2c/qnOanY0ZVrYFMDwUWOl710ufLyZXNJTg2NCYJWGjDrpqv57My4Zu/dBD+qgA+/hjU c5KFQh+peiGnpTlf59abZ/qG7tPs3k/VCsFQGaGaW8SOUKegiSwmZgFrzTJ1XGR4DVzN ptSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dHjxdbbD2HtA3T1/FQjFzFsR1f64dnwZvq0W96Vy51c=; fh=xqBA6XU1fuyTFblptcc0c2Nkny7AEuI4qyn8l5YDn6E=; b=rmaY526+mXvgI6MkT8fspVaPghCHtnjE6kdQpcIJVPvJuyxgGpYlD0HdtTP9/MQrNv uCGRorRXTtZCsc2Lp6UpAbPlnk8sfPSYwxQKyJKKlQ1CkCY6nrI6EZvXU3QbSIhZY7Fr qGQNvkYuGMyY2VMGe0KDY77YDmnF89v+sHI15Bq6q52be2T7DAaUJTT2RDywXWJ8hxQF tcBEhAZxvl5VoW796cvDsaUCzIDg57oUaidwPVwkYQSIMmqzKkg1Z7JiBBAxyjCKlDbV NFI3qYoe9ZsPXlCwazsGe8DJHU1J4arBe34/S/Q0ubxe/jZoQ8M9HgK+PQPRcPWxWxJt EN9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H9T2CD56; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109348-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109348-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i1-20020a37c201000000b00789e735d151si11564972qkm.742.2024.03.20.12.32.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 12:32:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109348-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H9T2CD56; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109348-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109348-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B207F1C22C89 for ; Wed, 20 Mar 2024 19:32:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D96F68612C; Wed, 20 Mar 2024 19:31:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H9T2CD56" 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 0C90985C69; Wed, 20 Mar 2024 19:31:29 +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=1710963090; cv=none; b=CbxT7cMaSrkRsPPYe1x70FRhD0eXO6OD+UfTxTG0SXTDy70z6yexHBAlqJZ6ZF4zVWyc0Plc11OqBAwaOAHwayj0wZYjHXknl4LBSo2xcj+I0lfY2nMdq1u76z1ffzZ5dBtdXjyBUttkHVcbhPy5bYd3i1b0HxCQAfmK/qNm71o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710963090; c=relaxed/simple; bh=lKWJoxjKHcGWhs7EF/8Am3tfhFRbd6IhsPFZoIW5wnY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tENpIJd9wZlkOR8D64xUws/sH0gXNMwZGKH+X4C0CbLx4VVOS05d7NSyXfVhoe+MUHIsQe7FT+jphhivGQID/0i9su36ZxQnvzsDEiQU1OFBOPNr8FGjAQQQuOMLtuUW7L4nZKF65n8BNadAtTKBF/YqW6S5S+DXIPPB3OollRU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H9T2CD56; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF992C433F1; Wed, 20 Mar 2024 19:31:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710963089; bh=lKWJoxjKHcGWhs7EF/8Am3tfhFRbd6IhsPFZoIW5wnY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H9T2CD56k0+dqbNjPy+2+Xz/0cWCd1W+4u0iNbNAO8lcAbbJhpxmVVxlFgpyzfvFZ U56r4MIEkECYoBTcCELT+xn/SSEPm1LRu8UWgYA5ODqdYPlFySVq5LFaiHYJgAXnbn 52E45CoxyNtkzckzw3t8xBi8e1ao1I35wKlBXri8DecdnOXGSTvs6i19h4RqbBDkO2 6nPIqFfe0dC4c848i7RJTg6Vw8sA0NrXTwGgxujpU4xT0zAn3vwoktcLBcixYeb6N/ 4XuEiA2XR1fYLzLz3NxjwOT4a5uYAsVFTiMREeakgpvAj/0VHe5wmZPoYxKWrztvrC idZiTEyJY4hAA== 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: [PATCH 4/5] perf trace: Beautify the 'flags' arg of unlinkat Date: Wed, 20 Mar 2024 16:31:14 -0300 Message-ID: <20240320193115.811899-5-acme@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240320193115.811899-1-acme@kernel.org> References: <20240320193115.811899-1-acme@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnaldo Carvalho de Melo Reusing the fs_at_flags array done for the 'stat' syscall. Cc: Adrian Hunter Cc: Ian Rogers Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-trace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 58546e8af9fcf481..ef0dfffd99fdf3cc 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -1171,7 +1171,9 @@ static const struct syscall_fmt syscall_fmts[] = { .arg = { [0] = { .scnprintf = SCA_FILENAME, /* name */ }, }, }, { .name = "uname", .alias = "newuname", }, { .name = "unlinkat", - .arg = { [0] = { .scnprintf = SCA_FDAT, /* dfd */ }, }, }, + .arg = { [0] = { .scnprintf = SCA_FDAT, /* dfd */ }, + [1] = { .scnprintf = SCA_FILENAME, /* pathname */ }, + [2] = { .scnprintf = SCA_FS_AT_FLAGS, /* flags */ }, }, }, { .name = "utimensat", .arg = { [0] = { .scnprintf = SCA_FDAT, /* dirfd */ }, }, }, { .name = "wait4", .errpid = true, -- 2.44.0