Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2060963rdb; Tue, 5 Sep 2023 13:09:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG15ghfpLjrps8KHRW4BhyeZWkhjtNn2TUh9hcPnZMdIsOabwc2crTRj7GU7v8TzR+WALMh X-Received: by 2002:a05:6a21:a5a4:b0:152:cb38:5b47 with SMTP id gd36-20020a056a21a5a400b00152cb385b47mr4747628pzc.55.1693944577244; Tue, 05 Sep 2023 13:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693944577; cv=none; d=google.com; s=arc-20160816; b=B2nsWX2Qt9t8J+G7VFCR8sTZkuN1+z05GrN8zlFWiGdL5bpAlfgd2SD4Ui+5cGOGUJ Dx+wXSXduzmEBWlWZnyPovcfB+eoILaMs/bcETT9SVvgqJSIxeShqiOpu48JCRPLkRS8 sqz7txvDWM4myLc6LCdhg7PQEk0ghu2v93Aa8mLYiOmhKfq7dxfJ1jwVbDUY/T9izQmA EczkadKHinHTt6bew1OfpBbf+9GGrOE3LFe12dRGAFp8Mg2YQH7Vv9qLFdmOHe9PX6qr DM3kEFOqOVr9KomNKY5KNf5kLGEKH34qxA6kFQOa4AAmkd00Lyco31TQx86AZUbpzix6 fy3Q== 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=bCJXjWGkHvb3PhvKNEJvmK8Kb4u4rllJPUpFM5kqrVE=; fh=LcvV+inLWYLGSFOjKsElL+kWknU1Xq4fSBinvCO4xPg=; b=PovRN+m1+zzwFa4DR7NK4lZV8U8U7C4jEjqec9MKVX0pZRaI+DbIdFTni3WctSzekE cau4R7h4gYkd3fmHvfj22gp2uHPTg85Q77fBxTEl4C3+WGp9LxSxzYHEXKWgMnD7pQge TC4y+N1OoKRiacXyzq4kfr4OsTzvjpmMod3USaXeJya7oCsqcuTX/oJP4c4IYSe9+mlU O+PXclTzTTu5fKwVn1KbcCPc+9tNT8fs4qESHdYfNvHvLnKW4DGX2IcLxOWojwqDtSED Npb3ZjFwQ9YCoBF2gpN92XwkEcRadeZqC2VDTt+D3pLEfDBx/ykZK8Udna3F8XnwJEr+ wDLw== 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 bt20-20020a056a00439400b0068e270893c1si957174pfb.16.2023.09.05.13.09.12; Tue, 05 Sep 2023 13:09:37 -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 S235934AbjIESZ7 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Sep 2023 14:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232744AbjIESZ6 (ORCPT ); Tue, 5 Sep 2023 14:25:58 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F227619B; Tue, 5 Sep 2023 11:25:29 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-794c7d95ba5so108709739f.0; Tue, 05 Sep 2023 11:25:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693938206; x=1694543006; 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=MxX1X1j/fywNnxeJETa5SKqpVl9n1CDPD3uaNFdTeIA=; b=TEZt/mpaxP4o6Da8zI0NcwUXxdzD0C9ZTo963yVTAUJ9PsY62KZKlqGhDkGxnAe5NV Xq02n5o69LIQXokDkp1bw3uEVhFE1C94Dk13uRTsZ4EraPO6eAyTzp2uctMAJe/RB09A p6Vh1iADG+UBdJ0v0kA/gpEbdbscVzEEqNzHlSwoJsYrOGHzsEq/68/z/S1Dddb8cBvz sxF56xF4j6OzIINGPV5gXVRut9kEFVkZiTzt6bBJ/o6eZGgLV6LTpg7Em0t8tnikaEgx lfC8/88hKv+JLmgYuRrr1HIuvSw5JAH56w9j2yGtLIvOltAhyyB/AxnzRFlMuE38Cwvn LoTw== X-Gm-Message-State: AOJu0YzN3v2C/GkaG7S8W1YqpDsSZgGodcMUoo/LQuumvx2Z3Gj80vFR b+DIkiroB2YPX5yBPbJcSksbLXZ2iiMd7+Zuhbg= X-Received: by 2002:a5e:a713:0:b0:78b:b892:e334 with SMTP id b19-20020a5ea713000000b0078bb892e334mr14957651iod.11.1693938206573; Tue, 05 Sep 2023 11:23:26 -0700 (PDT) MIME-Version: 1.0 References: <20230905181554.3202873-1-irogers@google.com> <20230905181554.3202873-2-irogers@google.com> In-Reply-To: <20230905181554.3202873-2-irogers@google.com> From: Namhyung Kim Date: Tue, 5 Sep 2023 11:23:15 -0700 Message-ID: Subject: Re: [PATCH v1 2/3] perf completion: Support completion of libpfm4 events To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Stephane Eranian 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_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Tue, Sep 5, 2023 at 11:16 AM Ian Rogers wrote: > > Use `perf list --raw-dump pfm` to support completion of libpfm4 events. > > Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/perf-completion.sh | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf-completion.sh > index 40cfc30ad7ad..319ad724b97a 100644 > --- a/tools/perf/perf-completion.sh > +++ b/tools/perf/perf-completion.sh > @@ -198,6 +198,10 @@ __perf_main () > else > __perfcomp_colon "$evts" "$cur1" > fi > + elif [[ $prev == @("--pfm-events") && > + $prev_skip_opts == @(record|stat|top) ]]; then > + local evts=$($cmd list --raw-dump pfm) > + __perfcomp "$evts" "$cur" > else > # List subcommands for perf commands > if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched| > -- > 2.42.0.283.g2d96d420d3-goog >