Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36332523rwd; Mon, 10 Jul 2023 22:43:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfgrVwT+CM/utia4T8leaMWMHeHQS2QD8XHxn7C97VjxxmGH0XT1HH+YJ1fitaKhivLnot X-Received: by 2002:a17:906:738f:b0:993:d0e1:f308 with SMTP id f15-20020a170906738f00b00993d0e1f308mr9854756ejl.2.1689054221920; Mon, 10 Jul 2023 22:43:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689054221; cv=pass; d=google.com; s=arc-20160816; b=uE0forhrllne4jkOTuJZpHBkOqEGh/2hoxQ1lXP6UnmcU6jwls/fA+wqflIciHT/Ze XI1UfRxWFjcLUPZWrEUnU2665+zMg669gTOyLfDawx9J+CrmJk0M6sFrXKq8LDtGJqJH agRtu0M1VD4rz0tU2M+SswrLlDbjtfwISLQnBEQBJkIK/NNcdp1wHL0L/IZnbT1/bDtT 3moq8086uGNhWE9ZTTy3TmFnTLFhy0e7vlYeDVwuHJaAlDG3lGY6+8PtfCjlJyVoI2dB WQf9uKT6yCulfYpXynkBlXx8D97syAvm9XfnGxf4NFyH026jtgJ997ukXh8YiK+LHwdd Vc0Q== 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:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=yzgd0n1WuyDp96GshC2OyAo3IIoHwyGfRN8t4xUf2Uk=; fh=tO3HAZfSwDhCsn1cV8jv6k+Iq25XUUj/sC0Qb/tApGw=; b=xHT7XsgTbBLXDmghNTPyFW2z3nE8vKhAfJtL/NE/7z7mpRhoU/1FZ3QWE65kcv9UbA Ql1jW/1RsBVIKDVHaUucNAFHD0PFx94iQBV1pXveyNdA2GuaqLaR6oxp4rUPdJXTK4gL kERbBAlvuDLKM0y9CIvRPCZm3/qPqRJQZc3V1tmrFF9gIfe5+PETYoUoG/mWkJLHLjh+ qYhutfAZlQftPvSpTnuIreYyEELcmYyUHJD+pGlDPrCHvDlZ2lVAJh3qQx8k02XPIJcO Dc8xhPOt+aduneQ2BJKwsLmojXM7tPw4W+hzpZrWeGWdfVqrmcO1rvzpKz6M95S5jyXm AZKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=hrem7lui; 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 qw10-20020a170906fcaa00b00992bdcb72desi1350070ejb.191.2023.07.10.22.43.18; Mon, 10 Jul 2023 22:43:41 -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=hrem7lui; 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 S229752AbjGKFQY (ORCPT + 99 others); Tue, 11 Jul 2023 01:16:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjGKFQW (ORCPT ); Tue, 11 Jul 2023 01:16:22 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBFD293; Mon, 10 Jul 2023 22:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MCUm6t2t1nmfwslh037tmc52JnG3pNBdkIL03yjGmCzR4Ism0LZ51IBLn0K1qChGTmK2JObreVCo1LekX0wXFtJzvu513slehFl52Tb9bf81CAAyo3z8IcOePXDbUOot4GYiMJHB6CKvHXiv0oB7qfzPmafWUVz6b3XwnfejZ4xEk1vsRs7splnEVaA/49+iBRXeoWTFxYTZTTBfdENTWlWwzK24rJzDu5pcsBy4Rz2W43OtXVVMdHjYfUIFV/+qS9TJ/0tr96VIJS8DpAFEFdR1Ryosel5xBxY1vFrPbaIYKR4/e6xraVAQO6zxhpw3pSfXf3rSA0N02zkG3AwqQA== 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=yzgd0n1WuyDp96GshC2OyAo3IIoHwyGfRN8t4xUf2Uk=; b=guxRurx8+wAQDqRoguiaOD9bz/O0w+cFSF3kluVeiGkeQqXBDmNRCUfws6+Bg6Pql+EyrUECmzFmP4MYn4wEaf6PkNFETuqvBpPm4j9v652j9qqcAcEqQ4wYPJAXNi0y+t7j2xWAkb0v4Pz0dCWRg5cHsy5F8KFWzTt37M8nqmCJHss9uyW2Ew6DXC/rRW0UrNlwwZup8ax+D4WgdSLwh5T649h1HeL8hpwdJmQeEHwmCFPXJiBkOKIus2+iLP8sdhLOHD9TBCaIB0MUMyo/YtXbRJKwEtjjsUqhpT56y9scWEdC8DbEOe0huiTpm6e49c4fdBWWyiNM1z3laPwUhg== 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=yzgd0n1WuyDp96GshC2OyAo3IIoHwyGfRN8t4xUf2Uk=; b=hrem7luif+NU3C8726bJVGtTXTsv3xBlp2FDx7oG7TSj9L9RKTsBm2xWywqhYh10TViL1wGU3Hjc2v+ONLuGxAGCF45HxJ4ngXJ6lNTIDZfeaUO3bYolq0hUhbUghz4uuS9pIr5/svCTXldJYE5jZUKjyvBY0ZWPbrCzWp71KAk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB6588.namprd12.prod.outlook.com (2603:10b6:510:210::10) by SJ2PR12MB8691.namprd12.prod.outlook.com (2603:10b6:a03:541::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.26; Tue, 11 Jul 2023 05:16:18 +0000 Received: from PH7PR12MB6588.namprd12.prod.outlook.com ([fe80::c4e6:4e87:551a:7731]) by PH7PR12MB6588.namprd12.prod.outlook.com ([fe80::c4e6:4e87:551a:7731%4]) with mapi id 15.20.6565.028; Tue, 11 Jul 2023 05:16:17 +0000 Message-ID: <5acc07fe-d161-2977-29ab-1096afeefc4c@amd.com> Date: Tue, 11 Jul 2023 10:44:52 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: Invalid event (cycles:pp) in per-thread mode, enable system wide with '-a'. To: Nick Desaulniers , Namhyung Kim Cc: Stephane Eranian , Slade Watkins , linux-perf-users , LKML , Ian Rogers , Kees Cook , sandipan.das@amd.com, Bill Wendling , clang-built-linux , Yonghong Song , Peter Zijlstra , Ravi Bangoria References: <76CB17D0-5A66-4D49-A389-8F40EC830DC0@sladewatkins.net> <85822c3c-2254-52cc-e6b1-9c89adb63771@amd.com> <85aabdc8-07cd-3285-1f3f-605f9ebbab18@amd.com> <5c077e61-c206-812f-1cb9-d47785e8176f@amd.com> Content-Language: en-US From: Ravi Bangoria In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PN3PR01CA0161.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:c8::17) To PH7PR12MB6588.namprd12.prod.outlook.com (2603:10b6:510:210::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB6588:EE_|SJ2PR12MB8691:EE_ X-MS-Office365-Filtering-Correlation-Id: 4cba8f85-8ea3-4569-da8c-08db81cdf491 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aAlmGC3NZAa3N1T0uEt7H+uayhTpufGtYNetTlvfWyFI81K+xYWf5n406eSrQ5mvPSzjvAs6s5vXY7SqUi+l3CvrCIkEgU+PMrT2k6chIGcGil6vbYciuTSijuABPHRpXroVs17Yr2bozOFPK24KhyXPLPydR/Uk2WWkugPUM9TtTGctY73JTGjcgVP8Y6tH0mYebXkluwYyCVLQaPl9gMbZXwbyr8AQT6Glkmwqf51JKch4Ls0EISWcZzObImLNv5XDwpWwLriri/NmvL67EkCKvISLu/JTNo4G4VnEwTDVTamkn1wfG0fg95k1WaDeBG5qZ/My0tdYiFfOiHYiriLgCh+GT7bNcEagoffMUMGnvQgB0J6Fyysw7pv+XVyD9vS8DmVXJByHJeTt16Zuv+w6XFwxFe1V4l4UusO9IOPRXthwMm9u770vZbo9SUv/Yoh3XPYWj+FbwTFnK5QJhdtWz9IxekSZHFDN/O8thAb23OmvKTcTtrIeAhMMT8fPqXaGAgG9mfCy1jGCHLc5ipgHo7rbPGR2gcegEhaxFAVH9rL5yHh4GBzLTT1I8efJjJEihpHLUZd6OVpxVIrqCMcI51MBQm5tEKIJwvRT14YddXVu+3zT6Q+M5GetfculFh73U6rP2YFmiAnnVoDg8A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB6588.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(136003)(366004)(376002)(346002)(451199021)(2616005)(6666004)(6486002)(38100700002)(6506007)(83380400001)(53546011)(36756003)(186003)(6512007)(316002)(2906002)(4326008)(66476007)(41300700001)(66556008)(66946007)(44832011)(86362001)(7416002)(31686004)(5660300002)(8676002)(8936002)(54906003)(110136005)(31696002)(478600001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?KzlhVnNjQk4zcDdmZ1J3bzJQMVJINzZFTjB6dytpUUtOa20yckVxN2tNYnZj?= =?utf-8?B?M1hrcHk5amhUNWVsMHhSdjh3Y2JrNXFWYXpSSzZCM05YcU1qNEkvTkNia3ZW?= =?utf-8?B?V2lEZFUyeDFwcjEzdTFoUzlPUGZLTmFXK24zUkZOeGZERXpBYUQ3clVsRkQv?= =?utf-8?B?QVdrd2Vjb05wbnNmZEZEZkc5NStvZ1NrVXZXcEVaOFNSK25hbnBVZGsxOHkw?= =?utf-8?B?bFlWSUdSNDhEU2xOMTdJeDE0MElUbjNaL1FROGY2bXBQQnJZZEtjbDBzTVdW?= =?utf-8?B?cG05ZVZkMmNHdERwSFlqR1Q5cUJWeWlVM0YzUzMxQ1E0QU9CeGt3enhaeFNX?= =?utf-8?B?M0NnRnJ4VFB2MEYvMmdFblBPbU13cFJwaVYvNTZCaFhwTEVOMGFJaEs1Wnhq?= =?utf-8?B?V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OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cba8f85-8ea3-4569-da8c-08db81cdf491 X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB6588.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2023 05:16:17.8196 (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: GzNrpxHW/tsWKDzKAB72xTKDjf76QLbv3SEETBtfD8szKBNLVgevSqliDrbSCM8kuH8T7yp+82CSufiU0+NpMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8691 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 On 11-Jul-23 2:52 AM, Nick Desaulniers wrote: > On Sun, Jun 25, 2023 at 10:45 PM Ravi Bangoria wrote: >> >> Hi Nick, >> >> On 23-Jun-23 9:53 PM, Nick Desaulniers wrote: >>>>> On 12-Oct-22 3:02 AM, Nick Desaulniers wrote: >>> Hi Ravi, >>> Sorry, I'm not able to load a custom kernel image on my employer >>> provided workstation, and I never got approval to expense hardware for >>> testing this otherwise. >>> >>> Was there ever any update on this? I'm on 6.1.25 now and still cant run >>> $ perf record -e cycles:pp --call-graph lbr >> >> Per-process precise sampling on AMD platforms should work from 6.2-rc1 >> onward. > > Ok, I can wait for my employer to ship 6.2 on our workstations. > >> However, --call-graph=lbr is not supported on AMD (hw limitation). > > On any AMD uarches? Is there an equivalent? LBR encoding is compact > which makes working it much faster than DWARF or stack frame > unwinding. I understand that LBR call-stack is the fastest option but unfortunately none of the current AMD uarch supports it. Thanks, Ravi