Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35900518rwd; Mon, 10 Jul 2023 14:37:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlEiEBygPOe0wt/CI0NtRgBTHk0PvFwRr0PWbKmNYj9tqKgZ8uB6KeSCSY1bWMmlrXGJxYV4 X-Received: by 2002:a17:90a:fe07:b0:262:ca9c:edcb with SMTP id ck7-20020a17090afe0700b00262ca9cedcbmr14132880pjb.9.1689025028040; Mon, 10 Jul 2023 14:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689025028; cv=none; d=google.com; s=arc-20160816; b=FfYYJcO/m/xf7gCxAuUlXieRRXL0/SioXxTc7j53bY/BKsqW/jABY2wfBB1M3oMmj3 ZDxtF/hamggF5xtkd+OmmDC6FpCWrRb6uP50KeI9XS17aHK4bsr59nTjObs2aUkS8IjP BOb91iWAlEQJwSAifJtsHXzp6L01eRLnVNWzw+QgNnQAWsR+E/Qb/PHeEvJkDZ69JYjr /lne6gg3AFPpJwoVBHWu6TKDOU5Azyajpcyo2BBwkc/5atj1FQQKfYHd9aIY071QW8P5 WVseGyHgXWV17Amg402qft8SAcDOAEs9onT646vQFykK1V9JQQQzf2wabSwVMasA70vO mIMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=f/AHnLRjSLfFE9cPgB0m1arr9qA/D4bUxDLvGm185g4=; fh=ewY+MXOrT5BAmmhED4CymVUOTA1N+2yzovut8PYnP6E=; b=nnkdAcoowa6gWUaw8bAQp2wtPX7KuVdPajbkUWEcfsTHQqY1/QRN24r3RnM3OMcIy6 Kx4wNW6E0+nysDtdHoKCgxYV+9pLBUfvTl1snQJwhoLzi2d6vGcJ+/9JDPdkINw4TTpX lHBDY+v/SysQmro3qYg69gExB57oJ2n9wQrO1Y+4M31v0mS0NiaZclqEMVvHKAO1GZXC 8E6pt7uXXTWOFbn7vdHlDbyY52FkHr95rg7wwQQ2Kvvwa6ivfQdQoOOASfHRM20fGYr1 LihxUcdn3SVkbBRH+YZ3dj2yMw3KhmxMS3hatvbLtFfQGpdkGYLFfVnkJ75Uw3wW4Q+G Hc0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=p5bEh9Yp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a17090a164800b0024e47fae466si437650pje.180.2023.07.10.14.36.56; Mon, 10 Jul 2023 14:37:08 -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=@google.com header.s=20221208 header.b=p5bEh9Yp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231127AbjGJVWa (ORCPT + 99 others); Mon, 10 Jul 2023 17:22:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230433AbjGJVW2 (ORCPT ); Mon, 10 Jul 2023 17:22:28 -0400 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D9891A8 for ; Mon, 10 Jul 2023 14:22:23 -0700 (PDT) Received: by mail-qv1-xf36.google.com with SMTP id 6a1803df08f44-635fa79d7c0so28649596d6.1 for ; Mon, 10 Jul 2023 14:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689024142; x=1691616142; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=f/AHnLRjSLfFE9cPgB0m1arr9qA/D4bUxDLvGm185g4=; b=p5bEh9YpRBSvdjZQX8rMsK7yK10d4+t79qj0lXTV1iANI6Zi8/7mfKnUVPneSAWGET ocTlr4vlq45Nf+fvDaKYPrSTPBYfUMtsHoEqbWVHyWwlcRUgZ9oCYjxSSudPXmEL0vQ6 fE3BP/WKikO8G8l0OLD/RFGA82qdICWixK1tuplEuNXFFkaLuv2dTqJpTlTvhbmLG+3S ip4z8zyBOTNeMBaEqdcwVyvKXYwYLVouJpqAIRs8TdYl9HzCrCcKvHx1PvH1+7W3jDfk 9Fe1T81re8u4E2XdgUAOawq6VYTSS/Y5WnEmPyoNPnZ0F/9QnAAQRw+HOlENg4ZLEMcs 0SzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689024142; x=1691616142; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f/AHnLRjSLfFE9cPgB0m1arr9qA/D4bUxDLvGm185g4=; b=BTiU37yOVgxYfqt1ypiDlj5J9/qxG4Wu3LV7BTYll4jiMzeRRVGZSPPLM/kgxSqQZ4 ikQbmGVvjmde8DlwlpDM91S7+0B5iuTpwUxdRGTXrRMEckEa6uKSTPrmqzV8jctzM0Xw +N85hKbaelzGYVGZk1+emU7X5ca/bVhR/p0k8PFGUKAMRMk2OFlPMR/97bVf9WFqmJqZ GO+vjWQlCsnF+mLzaTeZ1eTX6sIqx4YeFU4GFCneA+uyh000UtlgFLWIonqRuohKw/0m XJUivHNTOikh78Bv84QSrWt+20OQNwvB+jSiZ1tfceEK9IlPrvSuYUs6wcRFUDqP/1I4 AkTw== X-Gm-Message-State: ABy/qLavLx10nc3V3wMGyRABGQAM6FylDGBKN4V0LI97xRNyT4nhY5on M8w4QmtAxBHCoaEfulx94wrayE2L9rbVXSP7s+T4cg== X-Received: by 2002:a0c:9701:0:b0:634:97ed:9a5f with SMTP id k1-20020a0c9701000000b0063497ed9a5fmr14901888qvd.26.1689024142302; Mon, 10 Jul 2023 14:22:22 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <5c077e61-c206-812f-1cb9-d47785e8176f@amd.com> From: Nick Desaulniers Date: Mon, 10 Jul 2023 14:22:11 -0700 Message-ID: Subject: Re: Invalid event (cycles:pp) in per-thread mode, enable system wide with '-a'. To: Ravi Bangoria , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Sun, Jun 25, 2023 at 10:45=E2=80=AFPM 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=3Dlbr 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. --=20 Thanks, ~Nick Desaulniers