Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2816013rwb; Thu, 29 Sep 2022 15:45:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4rOZYqHN5+v+rmn9ynXxznbvnE9V7h6mDgL1zWdGBFVWFODFkrsfdiemE0eJiSYCP2IhsI X-Received: by 2002:aa7:c792:0:b0:453:98b7:213c with SMTP id n18-20020aa7c792000000b0045398b7213cmr5415147eds.159.1664491551143; Thu, 29 Sep 2022 15:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664491551; cv=none; d=google.com; s=arc-20160816; b=05OHU4unTKpiHm1taRM2ZghBziXxOaQZce/2egrv6FEdJryU4qZ2ifjEULXcVJr5i6 kjsngKA8E9fWa+HLxj5FKZqixlc5wQ4U7Kzpi/ElKfNqofua2Re76Yu4KZwnLC9JUazc trPy5G9F2TIlG35Qt3mWVYr0pkj4gesAb/GdgWXkheQtOXMkcuUsGvEzTUG+UWmSR5IQ xytLbaoqtNbDNjUjMzSvacPAvOPX8k6RqMq+V6ahXx9XmVn5iygVdjZwJvO6S9wrUTM7 SkBRIcORFDlcighe/hKwfidWd4e9tv+ViSk2t0BDYoT514bB3KVa60rmi42Low33HVf/ OKww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=6VJEdRuAnZMaurhn8E94wnhY51Zn54NeRR0vh4+82g4=; b=x7EiLT0tfgtRFIXrNKeUQKza75+DEt2+SZVwtX+v0esUNEF6Vv9HjFP+WPiPeJq78y BQjrJqHoWWB5p3GyJQpGmuhAQUZFdwTD9PGSrFZeAT1gKRzNd7Ja7DYPuxQrKTyXoxfb 64du0ADCAnnqzjkpiZu0ed5hvMDxetk4ANfbCsl0c77lms8pOSeX/vV9kq93v6eDAyvU xN0UW7zzjqmmMOvlzunU/FvwqYUEIPnIus5aAXSjy06nCoYoCpX7VPPJUrJbsi5KsrUA SJFSoULd+YODIYfiLFeTWXAiBiYU+gjswXIuqeY7kwcZVrnn9g3MIUZUOqDwni35uiS6 FwFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ePFQ1ier; 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 du5-20020a17090772c500b007700c3ad033si422465ejc.565.2022.09.29.15.45.25; Thu, 29 Sep 2022 15:45:51 -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=20210112 header.b=ePFQ1ier; 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 S229646AbiI2Vy0 (ORCPT + 99 others); Thu, 29 Sep 2022 17:54:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiI2VyY (ORCPT ); Thu, 29 Sep 2022 17:54:24 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAD42126B72 for ; Thu, 29 Sep 2022 14:54:23 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id 3so2602687pga.1 for ; Thu, 29 Sep 2022 14:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=6VJEdRuAnZMaurhn8E94wnhY51Zn54NeRR0vh4+82g4=; b=ePFQ1ierwJ6FjgiOitss43F5wTpMNy0TAkSzHek74RdHj6eqPGO4UBZKuHMk/rYbF3 eUfD6Au98n2XITK2l2lVA0OWSVlvhV96Z2+xxN20+R2n6hYsTIVDgHAvyNWB/L7IHSuM kUpD4SMRXgWXaTWG7+evVhM9MHh9OhBu/dVWTT+y8XhBEmdNDl732Q8db8BJvWsuPZEC 8ALwV2/EmpsxuFx2HvgFmDA19Gc82c1UrI1nk1kWGBZeAQw0ska85t1Dlm2sFFB9fCO9 a7d2/snZ5eLHt6GY1v6TliLdieYY7oDtXyFUnZx817HMlqXwJ4khVZFU1plnP+I2wk6G gDKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=6VJEdRuAnZMaurhn8E94wnhY51Zn54NeRR0vh4+82g4=; b=ZcEw6Hly/XBENcByjjbIKh80hjpyojvK79szlwQQL560L3Vfk6nlfjTiONWrlQ+R8z ganH6BFzVt0sUuJzgZycknIjxvJik29TU5wVx13KQAOiQpz2xpKYnVWIGMyX3GJ+VxHp ZbkEME0UmNalcm/or1jX1IJ3ZI1sk5keVYofOWCi52tbBP8QMkbZg6AcsLFtVzrFmcPN W7+8eOXzqqGF2RXDBf3OCDZ6ZylC2KlTkX1C0Bp9o+wTJexztLPLuGxO/LlJ/hkI0q83 DQM7/qVMddvlx+uxDC2HA2X3JfaeT9veEcySlAhUOswfLdkZrEqdf83DNuEiWbqgcLO4 Iaxw== X-Gm-Message-State: ACrzQf18F/OG9CIXvU6Ly6fNYcMyM0Ei2GCROploBaG01K67TnC2s2ZL GVl81BQZKaDfDD59p778A7wvXp90xDvT+90gKvdLiYQoZf0ZAw== X-Received: by 2002:a05:6a00:1743:b0:548:8629:ceab with SMTP id j3-20020a056a00174300b005488629ceabmr5297404pfc.23.1664488463053; Thu, 29 Sep 2022 14:54:23 -0700 (PDT) MIME-Version: 1.0 From: Nick Desaulniers Date: Thu, 29 Sep 2022 14:54:11 -0700 Message-ID: Subject: Invalid event (cycles:pp) in per-thread mode, enable system wide with '-a'. To: linux-perf-users@vger.kernel.org Cc: LKML , Ian Rogers Content-Type: text/plain; charset="UTF-8" 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_NONE,SPF_HELO_NONE,SPF_PASS, 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 So I recently moved from a dual-xeon box to a zen 2 based threadripper workstation. My usual incantation for measuring profiles for compile time isn't working: $ perf record -e cycles:pp --freq=128 --call-graph lbr -- make LLVM=1 -j$(nproc) Error: Invalid event (cycles:pp) in per-thread mode, enable system wide with '-a'. I've already set /proc/sys/kernel/perf_event_paranoid and /proc/sys/kernel/kptr_restrict to 0. I remember hearing rumblings about issues with zen 2, LBR, vs zen 3. Is this a known issue, or am I holding it wrong? -- Thanks, ~Nick Desaulniers