Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1310776lqb; Thu, 18 Apr 2024 06:29:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWURj3sm0o1AtBrum8qFXSrK6Tjh5qFOwqK2S5qT56cNLDQpfihRhYdKk+TARdZl/GWEz7xeGy0thuty5tqK9ep5yjSIVZJdrnUUNegZQ== X-Google-Smtp-Source: AGHT+IEV0dQzTIUc9gV+GvFb9uYrGc0GiPjWSa5E4xHDFlB/jA38psy/IKoXN2AlSIowcc2J21zK X-Received: by 2002:a05:6512:124e:b0:517:8d78:2297 with SMTP id fb14-20020a056512124e00b005178d782297mr2201982lfb.67.1713446973408; Thu, 18 Apr 2024 06:29:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713446973; cv=pass; d=google.com; s=arc-20160816; b=ULZbY8/fDqlW49AK/XX0HgWDOg0HWDlvF4LSqTCP1rmJbYCxEbizdRk931+Yp+ZKto IpaWiw3m+n+0mgmIzc97QacFIpCALfL936VIdozQjl8XAFFy3yWJQRLCzaN4KDWtM6vW gEqBUp74o8q6axWYD02CjA9tHYlQSmQVrYlUc7iQOhxyLqK2rRUk4VS3X2HONcY0Lydn 2ipDooIsJYVJJsvSIG3AN/7YBOKESrOcmzS9RTynwe4MwlrTmAo5iHjaX1d+z9b3/XvJ v6+mYyjQZwYG3TRj9leiVuZnFiyNtxqmz412peo5KMbEycFxH4fGQt5uZFOoOH6hmNJf 03eg== 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=N0s/7UNUDh8K2oJCYhXtD9aS1uQ501s1cEUxLrOUmXo=; fh=qYBgL0xDXiZbrLeipx8X/fz2jSxMbqgYzzneIVPF86s=; b=tlnM+kry6aaLTXaWN0UCn9kHrisd9aBrOol81q2jqFpUO+IBRWRZ4fUKJxRvZ3dcvf vMoE2cpgUQ/l/Vz4rXjexjuo5ZdShUayifmQUEcsXY+jhTO+mlZcPtPJ+8PNuO1uplPb TWX1vKM3qRxThHxXu7vzlraJ8FH5C7XaUhnHdBBJVmQ5KMqwDjwGV+OsjnFsEdD7iMT+ DvixVJ15vg7SzAR6L97VvVU4A8AmHodZRWTyZClFMqDz5l9mqLfXdN9GQ9uQvDd5FU0A jLNI4HafJ4hx4kzLFC/7lNgzitHfQFGH/b9UmM4Brflvpq8C+LONXaj6GaUPty63urhd hmAA==; 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-150173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bt7-20020a170906b14700b00a4e69584d12si898508ejb.781.2024.04.18.06.29.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 06:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-150173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150173-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 181391F239AB for ; Thu, 18 Apr 2024 13:29:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B902C1635CA; Thu, 18 Apr 2024 13:29:05 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (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 0727E15D5AE; Thu, 18 Apr 2024 13:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446945; cv=none; b=mNgaeMwlBo/fV19B3+9NRU7gX9Vy0ugAVZTYpf4+WZF+wIb3X5zxBPjhFj7iwZMASTAfX0BnHO2b1yxxyE9g7V3lhYL3n6CZHZ4M1yuGmECGCeDqjqgQFkPDfhmaPZYQNoF87uamEyk9fgkGEP4STwNWiH8wXEFoH8VJBOppQ58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446945; c=relaxed/simple; bh=u9rORQi/V386pgsRzfTDjDY7hWfcKdADQPxluxHnPP8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SKJYi06+kGZWUX/zDb8brx7y6DW11MGB4EUr5cFPjiPhDH5stJ6U/0Y6AyjScYI0BneJDJgJmgPR9xTVDRvqWwwYXRytbnU3iQdEPbMBrnAaTNkqFKnZDWo54ps3IO6xk8OxKEwGkTi5gnUtzKUS1jwcNTYHsSZEm29xbeN/Zck= 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.188 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.252]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VKymk39JvzXljn; Thu, 18 Apr 2024 21:09:58 +0800 (CST) Received: from kwepemd100011.china.huawei.com (unknown [7.221.188.204]) by mail.maildlp.com (Postfix) with ESMTPS id EAB9D18006D; Thu, 18 Apr 2024 21:13:18 +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:17 +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 4/4] perf trace beauty: Always show mprotect prot even though PROT_NONE Date: Thu, 18 Apr 2024 21:13:04 +0800 Message-ID: <20240418131304.3188385-5-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) Do not omit the flags even though it is PROT_NONE. Signed-off-by: Changbin Du --- tools/perf/builtin-trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 349550b02f79..7f936f1b5519 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -1042,7 +1042,7 @@ static const struct syscall_fmt syscall_fmts[] = { [4] = { .scnprintf = SCA_MOVE_MOUNT_FLAGS, /* flags */ }, }, }, { .name = "mprotect", .arg = { [0] = { .scnprintf = SCA_HEX, /* start */ }, - [2] = { .scnprintf = SCA_MMAP_PROT, /* prot */ }, }, }, + [2] = { .scnprintf = SCA_MMAP_PROT, .show_zero = true, /* prot */ }, }, }, { .name = "mq_unlink", .arg = { [0] = { .scnprintf = SCA_FILENAME, /* u_name */ }, }, }, { .name = "mremap", .hexret = true, -- 2.34.1