Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2060401rdb; Tue, 5 Sep 2023 13:08:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOd+/ViUmGrOxfLtJzbfzb9+ecCosLNaBjlnlKtsLqUYn/90SofSGl88RAbHMwPloj8x5A X-Received: by 2002:a05:6a00:896:b0:68c:6a77:4845 with SMTP id q22-20020a056a00089600b0068c6a774845mr18076073pfj.12.1693944512313; Tue, 05 Sep 2023 13:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693944512; cv=none; d=google.com; s=arc-20160816; b=nkmX76y6c/Cgnb3K30AgztSmBDea63sRxrN3eUcMP6I6xk+DbXGb0RWUDHFJV/PmWw hGgtqeRBylsf5oehyiTWdYd5aHrDhD8UBjkImo9Jo74kFnnCe8U5hD1l005rhMzb85ZC nwftQFrN1e7zuhGdnweeFUINURgtA6N6S3bBvw/33jLdky5uO9EhixVVaQ3fKuxv20Hq ylD5M18C4QAH+6IXO4QgI2YDIslSHcyHPu3KKZ9bZWsPqSoDBTW6TEQoxsylDF/0fDLA MxxWESc0Ossf9I5DbugWFt4n+M9jr1ItFaTp0bXIA+VWUkdVbgttrHiqCIwDhMH89yOD pc2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vg4Op08sfu3nRAMRZWtkDeNjKls50R5IRElVZ5mj3vw=; fh=7/UHVBeP5gGMdKdkygJY98GPP/aX1xyoccMQo3SUz2o=; b=jDZXLB/UB119z0o5Cr7UukxQzKJAFLdM8zo5NzXdQA+IRT9EJzHPjhaVKQOiTAUM7V 2Co2R2ysA4KdRWCvUbrapGn/GI5LLUGlCLC9iY4LmAb3b/bNaojSs+9R1aFNWKN98nXF WKmT5ffE4QnrFpAnR0OAc04MLI1luanyq0/SKTvlqsPI8dB1cIhw2Q4TwH0pgEw/0b7Z 8IH37vfrcmGi/4jg248PHViH8i+Aoaemjt65AB040MAZQlncCyvQH3bnEiSPilCady63 Bm74xJGF8sQ5uHqdVg8X3Y//tmMQMcu7DGvjeBXlZNUDDrf+PvEtJ7YK+XtaTeR5Y7rs yjkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pMkVCa9a; 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 fb6-20020a056a002d8600b0068739763d1fsi10185706pfb.373.2023.09.05.13.08.15; Tue, 05 Sep 2023 13:08:32 -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=@kernel.org header.s=k20201202 header.b=pMkVCa9a; 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 S236232AbjIEQCt (ORCPT + 99 others); Tue, 5 Sep 2023 12:02:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354561AbjIEMk0 (ORCPT ); Tue, 5 Sep 2023 08:40:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C42118D; Tue, 5 Sep 2023 05:40:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EDBC660686; Tue, 5 Sep 2023 12:40:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C63CC433C7; Tue, 5 Sep 2023 12:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693917619; bh=beRODS9NYcKlQSB25WXmlWwIwOWQhbiWrJCkehvjCO0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pMkVCa9aywMm+uN7iQSKUhFIovvYGElYMFesQ/Kfh0qR8MxeYHCibpoQpDtFFoVUN Ba6kDf3CbvD23Emg/ojfYvZiCNyM/3EiRBtzu1Hbdh7vw9zopKbhTRSLVFRTJ2hflP lay1jQLQ0PWLX7hdiEq9EfRk/2HIFpCL5VTd/SIpEet2nx1kpBY5TDx7+fW3OVfu+S fhbeb5r2FIsF9yAx1Lr8s6q+PMCNE9pxGEMY0wAb+ZLDhQgoQY4q6RnNjFd0jvIyKr 9XrqhFQ+c97jpvmBY12NxBKRwazzeu8eHhIMImjAR99jTGHJ54muZWsIi1xqgRgHGl ekt6UHrne6tkQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id B783B40722; Tue, 5 Sep 2023 09:40:16 -0300 (-03) Date: Tue, 5 Sep 2023 09:40:16 -0300 From: Arnaldo Carvalho de Melo To: James Clark Cc: Ian Rogers , 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 Subject: Re: [PATCH v1] perf parse-events: Fix driver config term Message-ID: References: <20230905033805.3094293-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Em Tue, Sep 05, 2023 at 09:40:30AM +0100, James Clark escreveu: > > > 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 Thanks, applied. - Arnaldo