Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1969553rdb; Tue, 5 Sep 2023 10:09:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH28qqeN4iHnna5p8TLumkd1B8nEgbxAverY9CD9s1Bnib2kriaBFWq9GFasxZkblTE6e37 X-Received: by 2002:a05:6512:6cd:b0:501:b010:e69e with SMTP id u13-20020a05651206cd00b00501b010e69emr5259260lff.1.1693933783755; Tue, 05 Sep 2023 10:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693933783; cv=none; d=google.com; s=arc-20160816; b=ApNHAJEpwydvO5XOilsgOlPUWI9cR1Kv9DNK7j6o6QYb839Eh5YEO5KTYtSgM3Pja+ pW70wampH8jqqrxKa4HYdeDhHzp4kRKkFqNZ+a2udIxbykICKmBAGcGGDhhaaJPtOfhY fvQQ/JbiwqQJJp+y0YElph07WyAhxk+a7T3FrpjqOJJr0xvY9FFvSWPmDxK0nzbofKUl 22j4oO7aLQmzg+gN8AfSNKkuVaipP34kdqXZO2TVOqybv77AjKAJWDPHbLKllDDoSfN/ T0XfXSIU1kjiTt5/tgxfRHdvbwocqxugjbrVkQUzm3CN5jHVEV95bZBh++TkuW50Ov/F nT4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=zTRlaOQ8xVJ2bBCPQns6+gjfyyIvC+q/3cCxHVrZyIU=; fh=4zqyPpcsZ5evtWhOwSNS2eMGspGUkOtl0dwHsDeYdOI=; b=WQiBUaq2HU451lbKU1s+eYYqnK+DRHwMirn0xRRUhIsBRyNWpGXH9xaes+BG14C2hA RML2hgaSXSbxtQWJNlLAJA6mKayLptkLYTRY1Y+W3K8BngEym0+1lIr52UGVOciGAhwp Whyp3VBgyl13THNXpcPheWL3JDMjHLizTkegk/HGYQrqz6Vf0kjfoAGVBl/Zmnk6vNDp md9zR9k1jkvI+C8+Mu0aCdN+a+LUko4mc1EapPMyNpWu4VWA2PBEYqVURiln7OY5EQfI 1DSO7PF+6FGAyq3VFDmBN8lnUtW1+g8+1xILSlqxcABqmd9RK6y5HiL1aEfASWkrSTmn f3cQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020aa7ca50000000b0052587acad80si7934568edt.257.2023.09.05.10.09.18; Tue, 05 Sep 2023 10:09:43 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245471AbjIEQuI (ORCPT + 99 others); Tue, 5 Sep 2023 12:50:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353929AbjIEIkm (ORCPT ); Tue, 5 Sep 2023 04:40:42 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 92BB8E6; Tue, 5 Sep 2023 01:40:36 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0129E11FB; Tue, 5 Sep 2023 01:41:14 -0700 (PDT) Received: from [192.168.1.3] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B0D283F766; Tue, 5 Sep 2023 01:40:34 -0700 (PDT) Message-ID: Date: Tue, 5 Sep 2023 09:40:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1] perf parse-events: Fix driver config term Content-Language: en-US To: Ian Rogers , Arnaldo Carvalho de Melo References: <20230905033805.3094293-1-irogers@google.com> Cc: Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar From: James Clark In-Reply-To: <20230905033805.3094293-1-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 05/09/2023 04:38, Ian Rogers wrote: > Inadvertently deleted in commit 30f4ade33d64 ("perf tools: Revert > enable indices setting syntax for BPF map"). > > Reported-by: James Clark > Signed-off-by: Ian Rogers > --- > tools/perf/util/parse-events.y | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y > index 4a305df61f74..21bfe7e0d944 100644 > --- a/tools/perf/util/parse-events.y > +++ b/tools/perf/util/parse-events.y > @@ -839,6 +839,23 @@ PE_TERM > > $$ = term; > } > +| > +PE_DRV_CFG_TERM > +{ > + struct parse_events_term *term; > + char *config = strdup($1); > + int err; > + > + if (!config) > + YYNOMEM; > + err = parse_events_term__str(&term, PARSE_EVENTS__TERM_TYPE_DRV_CFG, config, $1, &@1, NULL); > + if (err) { > + free($1); > + free(config); > + PE_ABORT(err); > + } > + $$ = term; > +} > > sep_dc: ':' | > Reviewed-by: James Clark