Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3359896rwb; Tue, 16 Aug 2022 01:11:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7PSsV8ws1YWNfYBGMhw6yKvolqHRKwRhpsjEwdxBaqbt2B6ZjuLV56KqeTIlbuhF5loyQa X-Received: by 2002:a17:907:1c89:b0:734:d05c:582e with SMTP id nb9-20020a1709071c8900b00734d05c582emr12644327ejc.282.1660637505015; Tue, 16 Aug 2022 01:11:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660637505; cv=pass; d=google.com; s=arc-20160816; b=Ojo94OrrYaRV86lwQnuvapiwbvI/dmHK0llBKOo8qQIMKwdJCT6t3GoG0rJDHBmuAL 3c1iIx/o610tv3ZIVxeAFXfo0AS0ZG5EtKr3uT4ayvALH+SjX110PoVRZuRSpa0Hf8IS C7t3Ao6MIt/7o78E0t4PX4Ukz4NcAKnJA+IA0IyAN7o+yN9vLVA8+gRq7AxO4jiBQbfW peomAj3Xx4HXjcIxW1vkpte7rA/BvS9wq7uZSq0Sc3uzSjtAi811y4xO6CB/K+3c5zhn evHCL3uh7DHltKCmbn8vOByfj+G8+bijPrbOCA9EjMdTV2GjAtI0OaDCzApJ9WuG9vrK tXsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=HVD+zR0tPhGsUpjOjU4Nxzjx2a68RWsu60hEKZa06g4=; b=Rt86GVoV+GTPxZhOyVSHY7jBFHGDNgE2HXHeA6EHmJhSWBj7JiE085NlsBjJIR0Jmw FO0Masa34KG2TyR/T8Vtgn1jxjShf0efHMZ/7VtZszY3b0hKHsem3wEmhjZxUADFzAua OslFDQeuNEg7FeO0T9uKEXCA/xE7YcgJtnzff6qnbnqjqfxg7kPzikleGhKgz3K/7fhR /kt+ujjvzguX3ie6O8KNuv/HNRZ0Qm2piPYJZgQ4fuPT2X48h/lnTQwrkd0OkiwdJMPx 1vBZkv7Yvay9sO+r5PcO6mIZMlC+rzGeGzAWBlCwBmwL3XMs3tDzfKkaEmICiS3+5q/C sTWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="QE6df/ul"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l21-20020a170906645500b0072b40bc7412si7672447ejn.223.2022.08.16.01.11.18; Tue, 16 Aug 2022 01:11:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="QE6df/ul"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231244AbiHPH40 (ORCPT + 99 others); Tue, 16 Aug 2022 03:56:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230493AbiHPHzz (ORCPT ); Tue, 16 Aug 2022 03:55:55 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2082.outbound.protection.outlook.com [40.107.237.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC345E55F; Mon, 15 Aug 2022 22:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TLPWxSxrjEbpxv7/k010/OCD6Vi0RxCRm/dnzLrbKKxndV1OORHPtkgtx7IwEZe6pLppnnsTGAru85MUSNU+9x8XL17HI0KS1Ogy+fhLQlP6Qxn9awvKhJ5Hsv3QQOuQmTEyBG32x+WQqLaa/Y3iAOwMFu2vCNuxrazuCoucvkPm4aLOBYLCDZKOfj/JIePWN9uoeTo0GlT97wRFCxDLziMbTxlGPSIJQ7Z+Imh7saoCl+QpBC/LHtrDQETJqq4ekTFL4v9cs9rxg+ksqbPlZe8ryK0cBI7nqvvbH740Y4M3sIYkKjO6o7gFC/vPZQM9jb3ByKu1IXigU2iWon2opw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HVD+zR0tPhGsUpjOjU4Nxzjx2a68RWsu60hEKZa06g4=; b=Bcpupy6lwSjlC3bh4ECe/Y+0ouaief6OmGJIM9knxJuG3Tiuub7Y402KuKaPkrwhgT4qb8LtbO0Am/tXOktudg2wiCwZRYrLgDDulyPBzrhlBiEFkpZ2biI2dwlSOSK/gN+DNoYOe8HLpmglDudvwn/zhfg6uP0XSbAAqrdQELpOAnRu5avog3VqUjFX5/aY6kWQBBQ3ZgJC7HjXXlbnfshSlts13EJet+Pb6bROneQpFDH0T9u0UjfraB/wvXfcdV3pYPeAOo3eecASRTkUYMCbv5VpDkwwqLHJB+EYegBHcyWiqYVOsK78Ri8WVpEGb18NG2hR3GJsNJMYMfjbLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HVD+zR0tPhGsUpjOjU4Nxzjx2a68RWsu60hEKZa06g4=; b=QE6df/ulV73wQr6SprIbBdvXHB3UzMXU7qNPL3x7tij/jbbbjPW9uoB2KPBW23IgUJa3REnxbbjrj7h84wikQNraD2pRSRBlYMQvgrWJ75uWso4ipnMcTraIMVKeTux0mqi+DtVdlNRPtETrYcgGgky0J1imWtTUBVama+3vDSY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB5712.namprd12.prod.outlook.com (2603:10b6:510:1e3::13) by MN2PR12MB3981.namprd12.prod.outlook.com (2603:10b6:208:165::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Tue, 16 Aug 2022 05:10:33 +0000 Received: from PH7PR12MB5712.namprd12.prod.outlook.com ([fe80::e459:32ff:cdfc:fc8b]) by PH7PR12MB5712.namprd12.prod.outlook.com ([fe80::e459:32ff:cdfc:fc8b%9]) with mapi id 15.20.5504.028; Tue, 16 Aug 2022 05:10:33 +0000 Message-ID: Date: Tue, 16 Aug 2022 10:40:19 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 2/4] tools headers x86: Sync msr-index.h with kernel sources Content-Language: en-US To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, x86@kernel.org, peterz@infradead.org, bp@alien8.de, namhyung@kernel.org, tglx@linutronix.de, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, dave.hansen@linux.intel.com, like.xu.linux@gmail.com, eranian@google.com, ananth.narayan@amd.com, ravi.bangoria@amd.com, santosh.shukla@amd.com References: <94f483f5-c541-2a1e-87f6-a4105c30a045@amd.com> From: Sandipan Das In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0174.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:de::15) To PH7PR12MB5712.namprd12.prod.outlook.com (2603:10b6:510:1e3::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 81c1113b-09e3-44d2-b76b-08da7f45a579 X-MS-TrafficTypeDiagnostic: MN2PR12MB3981:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dPpO5P/m6pOPmnAXDbj8t9kxYl5uho8Cnd5L5WNu4iDFHUkCcD8fOo6gg43QpVFMmWLvC1Dl9LGYbaX9JitrxpKw+MaE1FXIQepE1olJjeVT+oWvTxd0xLNKW6Y5DAJn4PMF8SNK2ISX8ozuV7AkO4oA4U43n6cVtpW3RkZZ1oTwfyU6VDrxlwyAm8GmlMzIoeRs2A1+o7U42EqvfCAK03JEjK9a4AmHe6SS20AbFKVO2cpKcqy2/KbaQ2gNyU7F/rHFIL79rHcWlbJtogC4+TDTTJJRiPHO7BRaa2WG/aDobug77kHImVLwyfa99g/5/pyG7n+vlntsBvJDbI1TOIoNaYrr73R6r5QdQ1uuR5RnnOwymRw1/82EDxTe2B0sKi7LD/fH6DydoT8PyVWbRUTGxXRDBXZfISGAXpwsnLqudpucVYeQLiofa8Hfv2RX9BVhYdu2dgRkOT9uoCj9yL2QfMK5fkF4jzj7bZwq1OoSL+HjoZlTiSKa0RDNq7AC7OYZ8h/vjgPIN7a9hCFUOm5HHGbEfg4YYLok4Mlydk3O/k5eow872jtZBoxaa2Gd48Wu64wR/vsZ6uY8WxPqnb1GXXzYeRq9hG2/GKys8LejcTpjLTZR+tnqbR/g/PN7ZfYWaGbyp8RcrQ+4ximpoAP95Dwu/x7l5YcyVUQUNQLgF1mcdeTkhUpgAU3gWs7hDr+p1WqvDezm3e0oXBd5VCv6VliQhMJklHoraD2wi37PjX500tWfcYClwCa+bmG2HpN8eLPBdXIbmRIsA6rfZis/eBpuP41/0Xo+aQZhCMvZM8Jzp+X1R3nfSR/DzMQyF2cIo3IOa31LzLR00FtxtQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB5712.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(346002)(376002)(366004)(396003)(39860400002)(186003)(6916009)(38100700002)(31696002)(86362001)(83380400001)(31686004)(6486002)(8676002)(4326008)(66556008)(66476007)(66946007)(316002)(36756003)(5660300002)(8936002)(2906002)(6512007)(53546011)(2616005)(6506007)(26005)(6666004)(41300700001)(478600001)(7416002)(44832011)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Z3I2elBlemRzdVFpbnNPZkRFelZSaWNENWx3QXYxNjVFcDJ0bjA3RFUrem9O?= =?utf-8?B?eERYU1Faam5nNThmZ3ZPOTFpdmlFemY2M0xSMVNqdFAyYkRpdHhUL3pVZWx6?= =?utf-8?B?NmErcUNyL1o5ZTBmMFlhSVEvdGM3NTNSSGdOZm01Rm80V3BTM0hlYTNKQzY3?= =?utf-8?B?eGRoTmlBSEoxSmptYmZGNEl3NGVEUEduVjRkdG1PdFFXRzFxNWp5bUFLbFNv?= =?utf-8?B?YWlFSlpzOWs4VXpsQWVSYnJVRWh4QTlaODFUdXdFUWFUemNUTm9HYXpVL3hX?= =?utf-8?B?NWV1U3RJT1BsOFk4NWt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QUZVTjhP?= =?utf-8?Q?m0E4Mz4bvDXc/H54uvJqErlnT?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81c1113b-09e3-44d2-b76b-08da7f45a579 X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB5712.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2022 05:10:33.5796 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1Ax4lBTI7aFaRMWKSBBTy761owDEcc116kVMO/NcfUWtTJrkyuf4MB/wnB5rkqrWVch6C0zD/dbmAjp22G8CEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3981 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, On 8/13/2022 1:09 AM, Arnaldo Carvalho de Melo wrote: > Em Fri, Aug 12, 2022 at 02:33:46PM +0530, Sandipan Das escreveu: >> Hi Jiri, >> >> On 8/12/2022 2:03 PM, Jiri Olsa wrote: >>> On Thu, Aug 11, 2022 at 06:16:47PM +0530, Sandipan Das wrote: >>>> Sync msr-index.h with the kernel sources by adding the new AMD Last Branch >>>> Record Extension Version 2 (LbrExtV2) MSRs. >>>> >>>> Signed-off-by: Sandipan Das >>>> --- >>>> tools/arch/x86/include/asm/msr-index.h | 5 +++++ >>>> 1 file changed, 5 insertions(+) >>>> >>>> diff --git a/tools/arch/x86/include/asm/msr-index.h b/tools/arch/x86/include/asm/msr-index.h >>>> index cc615be27a54..7f9eaf497947 100644 >>>> --- a/tools/arch/x86/include/asm/msr-index.h >>>> +++ b/tools/arch/x86/include/asm/msr-index.h >>>> @@ -574,6 +574,9 @@ >>>> #define MSR_AMD64_PERF_CNTR_GLOBAL_CTL 0xc0000301 >>>> #define MSR_AMD64_PERF_CNTR_GLOBAL_STATUS_CLR 0xc0000302 >>>> >>>> +/* AMD Last Branch Record MSRs */ >>>> +#define MSR_AMD64_LBR_SELECT 0xc000010e >>> >>> curious do we actualy use this in tools somewhere? >>> >>> jirka >>> >> >> Commit 9dde6cadb92b ("tools arch x86: Sync the msr-index.h copy with the kernel sources") >> from Arnaldo says that adding these new MSR definitions in the tools headers allows the >> beautification scripts to pick up new entries which can be used for filtering MSR access >> traces. >> >> E.g. one can trace the hardware LBR branch filter bits getting written to the LBR_SELECT >> MSR while recording branches. >> >> $ perf record -j any,u true >> $ perf record -j any_call,u true >> >> $ sudo perf trace -e msr:write_msr/max-stack=32/ --filter="msr == AMD64_LBR_SELECT" >> >> [...] >> 224568.130 perf/9093 msr:write_msr(msr: AMD64_LBR_SELECT, val: 1) >> do_trace_write_msr ([kernel.kallsyms]) >> do_trace_write_msr ([kernel.kallsyms]) >> native_write_msr ([kernel.kallsyms]) >> amd_pmu_lbr_enable_all ([kernel.kallsyms]) >> amd_pmu_v2_enable_all ([kernel.kallsyms]) >> x86_pmu_enable ([kernel.kallsyms]) >> ctx_resched ([kernel.kallsyms]) >> perf_event_exec ([kernel.kallsyms]) >> begin_new_exec ([kernel.kallsyms]) >> load_elf_binary ([kernel.kallsyms]) >> bprm_execve ([kernel.kallsyms]) >> do_execveat_common.isra.0 ([kernel.kallsyms]) >> __x64_sys_execve ([kernel.kallsyms]) >> do_syscall_64 ([kernel.kallsyms]) >> entry_SYSCALL_64 ([kernel.kallsyms]) >> execve (/usr/lib/x86_64-linux-gnu/libc.so.6) >> [...] >> 302748.439 perf/9126 msr:write_msr(msr: AMD64_LBR_SELECT, val: 229) >> do_trace_write_msr ([kernel.kallsyms]) >> do_trace_write_msr ([kernel.kallsyms]) >> native_write_msr ([kernel.kallsyms]) >> amd_pmu_lbr_enable_all ([kernel.kallsyms]) >> amd_pmu_v2_enable_all ([kernel.kallsyms]) >> x86_pmu_enable ([kernel.kallsyms]) >> ctx_resched ([kernel.kallsyms]) >> perf_event_exec ([kernel.kallsyms]) >> begin_new_exec ([kernel.kallsyms]) >> load_elf_binary ([kernel.kallsyms]) >> bprm_execve ([kernel.kallsyms]) >> do_execveat_common.isra.0 ([kernel.kallsyms]) >> __x64_sys_execve ([kernel.kallsyms]) >> do_syscall_64 ([kernel.kallsyms]) >> entry_SYSCALL_64 ([kernel.kallsyms]) >> execve (/usr/lib/x86_64-linux-gnu/libc.so.6) >> [...] >> >> I can add this example to the commit message in the next revision. > > Right, you can reuse something from my messages updating this file or, > better, show an example like you did above, for the thing that you are > working at that moment :-) > > One of the things we need to do is: > > perf trace -e msr:write_msr/max-stack=32/ --filter-help > > And then it should look what are the strings that can be used for that > specific msr:write_msr tracepoint. > > Also have tab expansion in the --filter= part :-) > Thanks for the suggestions. Will incorporate them in the next revision. - Sandipan