Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24347226rwd; Sat, 1 Jul 2023 18:25:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGtQdYE9PALwwv0mp+ykaIgqVhS5zcE/UB779BnhcfCIYgfMQwaqu7ws09bz9k4S8ILx29n X-Received: by 2002:a92:cc0d:0:b0:345:d58d:9ae6 with SMTP id s13-20020a92cc0d000000b00345d58d9ae6mr6375593ilp.9.1688261102737; Sat, 01 Jul 2023 18:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688261102; cv=none; d=google.com; s=arc-20160816; b=DsfnQQ+xO4hvr9HQoToS2niqH7ArLY9xUKAgRzQHFXjpq7Qy6nbEHgpSyJFVM5ccbj vsXeOnL1mKnEGnZ85KSpR9bZhj0Uis9+CXD08+RnG5n0EzHTGhIzUgRZqYV9vMGisDU5 jesgo9YedsWjEkHF6bEWViNL6rjJk/GPp7YNCIIZR5OwONLWxZY40m6fkxELyOVmPCqO dplfPP8QGaeUllLoM/eKq/T5AytUjvTctRsO2Ji6tY1x/3L6qejo3EayCc64vGLXUooj d2Oi/XY95P9CMMjvdRX1RNVLimODbSf87f4jDZDaT98PEf1xoMGyWLi/y3Y0RsKvmiPL o+cQ== 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; bh=AW77odPhwrwdY5r9cARXrdVZ9sVKM4gy1UuP13QMJ6Q=; fh=zSAYEduuUXQEUGlg68RCsicdkwFuutu/2QwUCvaTc2c=; b=MUQSYLU0HYawkDMjs8HhQ4WER42Ma3fCAi6GeIiqMhKwXRI8gn+JLqBAW8m/N4RpTz 5r8w6/abNB5y1ebvqges9/pxXiCEOkkcWKzqyiPb88A/JHFTbgiVfzsPaEkmXzlgqmhh 23Z8KUX05Ul6Xe5UZTAxf77fkQUT11xDj/T3TJPrgu0SodNOE6lSQBL3QWsXengoT6cc aECh1yJlgUxdpuIBYMshV4o4O7NQV3O+bJlQkDaRdXlJkYeRoQBt4cPOVgFkHb/0ESgW KM/YQCWgCttSmK8kj41HIb0R0mgSXnYDrDa+15I9HZgv5f3R60LrQ41QUX7XXXPeq91D azfg== ARC-Authentication-Results: i=1; mx.google.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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a636b0a000000b0054ffca12339si13035346pgc.441.2023.07.01.18.24.42; Sat, 01 Jul 2023 18:25:02 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbjGBBDo convert rfc822-to-8bit (ORCPT + 99 others); Sat, 1 Jul 2023 21:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjGBBDn (ORCPT ); Sat, 1 Jul 2023 21:03:43 -0400 Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AED64172B; Sat, 1 Jul 2023 18:03:42 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-bd6446528dcso3458682276.2; Sat, 01 Jul 2023 18:03:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688259822; x=1690851822; 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=eH/EyizLb9FjbDE2YkuFGN61mm1+iiCI7p0+/Tx7qko=; b=eTkDHVEHnqb1cFndxc83Izo7UTblTdrMziB0sCIaRfNNp0m6sidfrCQL2TSua9Z5Kh 7iI715oaYE+8AIdKNgBP2euBpJLksxIJUjEF+hLftHoKENBQt8N0y02O+2W/pAGw8a6F A/qCmiIzBPfgo56PCZ0UH6OgX0093rS0HJYTRnbzX9Ady6gS+yC2ytJWpMH/8Tng/3Lf X1zR99N5K2eCPw8ilBGrIYM681hIG1Ecq7cRfVB6fIQzeNiGs0cyG1i7IX6PoXR6BYHd yYJOFQ6KOMWsoSSOZCMjVqpBmKBlj9or6x2UFUiK/TDKALLpk0ZImQabRrcJh/wgpXmS Mo+A== X-Gm-Message-State: ABy/qLZmsn4ffIc1yFi5nN22uH+3H7LzfaE5ca/06cDOeJk/o/QXcsKO WRQFLjiXd80BzzZohByopOyNGa/qDDuHP+DHV2Y= X-Received: by 2002:a25:ae84:0:b0:bb1:6e29:a84d with SMTP id b4-20020a25ae84000000b00bb16e29a84dmr6865225ybj.53.1688259821849; Sat, 01 Jul 2023 18:03:41 -0700 (PDT) MIME-Version: 1.0 References: <20230630085230.437-1-ravi.bangoria@amd.com> In-Reply-To: From: Namhyung Kim Date: Sat, 1 Jul 2023 18:03:30 -0700 Message-ID: Subject: Re: [PATCH v3] perf evsel amd: Fix IBS error message To: Ravi Bangoria Cc: acme@kernel.org, peterz@infradead.org, irogers@google.com, jolsa@kernel.org, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, sandipan.das@amd.com, ananth.narayan@amd.com, santosh.shukla@amd.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Sat, Jul 1, 2023 at 11:17 AM Namhyung Kim wrote: > > Hi Ravi, > > On Fri, Jun 30, 2023 at 1:53 AM Ravi Bangoria wrote: > > > > AMD IBS can do per-process profiling[1] and is no longer restricted to > > per-cpu or systemwide only. Remove stale error message. Also, checking > > just exclude_kernel is not sufficient since IBS does not support any > > privilege filters. So include all exclude_* checks. And finally, move > > these checks under tools/perf/arch/x86/ from generic code. > > > > Before: > > $ sudo ./perf record -e ibs_op//k -C 0 > > Error: > > AMD IBS may only be available in system-wide/per-cpu mode. Try > > using -a, or -C and workload affinity > > > > After: > > $ sudo ./perf record -e ibs_op//k -C 0 > > Error: > > AMD IBS doesn't support privilege filtering. Try again without > > the privilege modifiers (like 'k') at the end. > > > > [1] https://git.kernel.org/torvalds/c/30093056f7b2 > > > > Signed-off-by: Ravi Bangoria > > Acked-by: Namhyung Kim Applied to perf-tools-next, thanks!