Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1299798lqb; Thu, 18 Apr 2024 06:13:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcvt92MYub5QHl6RUHZ6XalS278y85uTeCnJZgAXGr3BBE1mBsRPb1qX87ijbyTMLNRExhlhwRn71/rHv1bedDGWQMSAV4OtKDQAVp5Q== X-Google-Smtp-Source: AGHT+IFphTMVG8Q/W5HZ95UtsikG/y7LaSQx5RU+VH2uTcVGXIyDXk/RTvyVEpEYpCekojWhv7WQ X-Received: by 2002:a05:6a20:7284:b0:1a7:75ee:6742 with SMTP id o4-20020a056a20728400b001a775ee6742mr4029538pzk.2.1713446025832; Thu, 18 Apr 2024 06:13:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713446025; cv=pass; d=google.com; s=arc-20160816; b=VbUjZUCWJ+XLKeUsgvlDjLSnP2WTEYm30uy6+qg4TfamFmLKML9di07Np6ZAlFhyg9 9aM2DRM/Cv+/P7ZulAEjjc+oMb45kP3OMIIVJmcIWFe2VcAHpIZSKzT308DeSBFTBUgx ra790VbpKX5yCaLR3/iv0mVODvWHXJkCHt8lHheIruakc9Bhg9ofV1JUTCpiHK7Ur+yn I0Ly15jlFVY8poUOeiuSMC04fGYLIZlK8mcEvIEC+uqYTXs99KJwkvZYMnfk3Tw2Yklv T8fOOl2yiNL/n+Pcy21qKcJNfNvK99eYEwYakxp2A1sv3nImHdQnxqvay/TWj27Qloc9 M4DQ== 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; bh=FZS7JTWZ+OW7Gg+hG+3lq23pRT+YphuAmXYJG3T4K94=; fh=qYBgL0xDXiZbrLeipx8X/fz2jSxMbqgYzzneIVPF86s=; b=Dd03CNQlcBGePUYrSPXO9xG07Vl2cDdM51/oohUCYjmwjaNxgBkGkaZ2InY1H7iJt1 iYF8I9gRbBWWTFX4NzLYCVmgnFh8kB8dyoYJIEIQnjC6CKgLszsJfmiQzBYcE7Dw38n5 q3W2MbOxzV9oh+rfG8CojRM5wPv+qLPHo5NGlPawa6JwMX1pDPf9JzY89I9vzRYVbySZ MQMDzHlkFnHPgPl51nc4LQ5Hf6z0Hz57vYW8Q3FKl65dcVjzkQBrSRSlgeejLbCe89wL bBJdvkNSv0kq2giKwb+OdhlsAfGoY57N+wxhCyyXT5JPioBhw5shqDyX+FInh1Sa20nZ 6oLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-150143-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150143-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y2-20020a17090a784200b0029bd4f70048si3043057pjl.170.2024.04.18.06.13.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 06:13:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150143-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-150143-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150143-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 77ECD286080 for ; Thu, 18 Apr 2024 13:13:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC16B15FCED; Thu, 18 Apr 2024 13:13:25 +0000 (UTC) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (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 5CDEB2C68C; Thu, 18 Apr 2024 13:13:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446005; cv=none; b=XIiLUDgHLZ6ll11HSWapdY6EgL9hFb+LJ9cpm5b0EQLT5gg0AeKmsk7nRcIAjR/OFF8iDUjJw2LzR1lYfrskWSfk0Sxikam9XpgHIZYLjAwUDriU7S7Y4JNHXLxE8hlxOInYKxM5zzqN+BDP2Lo3p4V12odDFioDAPSeSmBLxcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446005; c=relaxed/simple; bh=vI/bactSSihewyPgC9byNk05aRJzbjeiW+DD9zyu6y4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jNMzXWUyA0Cg5jZxlmkcq64d0Huog9K3zKFf6S8az71OCY5dve2ZWXjCJvutS9sTgj5SZRyMVc30xBAAXYNxW96guaALX8zJZduSTL7PX33fci5iFgJAIQsLGYhcWArsP4VDnzz1mS/k0psL178RgB0B8CrICf7j2MuVO1Q9AtQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4VKynl6GkxzNsWY; Thu, 18 Apr 2024 21:10:51 +0800 (CST) Received: from kwepemd100011.china.huawei.com (unknown [7.221.188.204]) by mail.maildlp.com (Postfix) with ESMTPS id C1E2518006B; Thu, 18 Apr 2024 21:13:16 +0800 (CST) Received: from M910t.huawei.com (10.110.54.157) by kwepemd100011.china.huawei.com (7.221.188.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Thu, 18 Apr 2024 21:13:15 +0800 From: Changbin Du To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim CC: Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , , , Changbin Du Subject: [PATCH 2/4] perf trace beauty: Beautify newfstatat flags Date: Thu, 18 Apr 2024 21:13:02 +0800 Message-ID: <20240418131304.3188385-3-changbin.du@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240418131304.3188385-1-changbin.du@huawei.com> References: <20240418131304.3188385-1-changbin.du@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemd100011.china.huawei.com (7.221.188.204) Beautify the flags argument of newfstatat() using the same scnprintf of statx(). Signed-off-by: Changbin Du --- tools/perf/builtin-trace.c | 3 ++- tools/perf/trace/beauty/statx.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 90eaff8c0f6e..19e81a467d6a 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -1050,7 +1050,8 @@ static const struct syscall_fmt syscall_fmts[] = { { .name = "name_to_handle_at", .arg = { [0] = { .scnprintf = SCA_FDAT, /* dfd */ }, }, }, { .name = "newfstatat", - .arg = { [0] = { .scnprintf = SCA_FDAT, /* dfd */ }, }, }, + .arg = { [0] = { .scnprintf = SCA_FDAT, /* dfd */ }, + [3] = { .scnprintf = SCA_STATX_FLAGS, /* flags */ }, }, }, { .name = "open", .arg = { [1] = { .scnprintf = SCA_OPEN_FLAGS, /* flags */ }, }, }, { .name = "open_by_handle_at", diff --git a/tools/perf/trace/beauty/statx.c b/tools/perf/trace/beauty/statx.c index c61f2be53bda..dd83a2a95d89 100644 --- a/tools/perf/trace/beauty/statx.c +++ b/tools/perf/trace/beauty/statx.c @@ -30,6 +30,7 @@ size_t syscall_arg__scnprintf_statx_flags(char *bf, size_t size, struct syscall_ P_FLAG(SYMLINK_FOLLOW); P_FLAG(NO_AUTOMOUNT); P_FLAG(EMPTY_PATH); + P_FLAG(STATX_SYNC_AS_STAT); P_FLAG(STATX_FORCE_SYNC); P_FLAG(STATX_DONT_SYNC); -- 2.34.1