Received: by 10.192.165.148 with SMTP id m20csp3462243imm; Mon, 7 May 2018 12:44:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqEaSwbEol9pvUtMphLi3Ztuh+2ljtPnvbtcj16AlN8K6Fl/dENx6J9bTdeXv+emdjs/NwD X-Received: by 2002:a6b:ae8e:: with SMTP id n14-v6mr37103748ioo.188.1525722251632; Mon, 07 May 2018 12:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525722251; cv=none; d=google.com; s=arc-20160816; b=O9AysoorkpXAfwd+BeU94i85UjCDO9uHMgTthQqexLZhd+Jl0c6dVvgdw9vhSAF+3t 57DCrhrRHVz05pEOkE23mW0lqVOqib0TSscQVR2GYcEbB2b5GhhYEmALbyHV5NGcRUnz D+gIXblc2Cl5TM2RVJaXX4lEssonJpz3x+SpIkQQub+OrGTcqUEf4sBJ9RZ3/xeXippw ornG4nkNA/hUata7sYtXtRvZr1AADKBidwIMi+mksch//Ydt111F0BwMj9hya59IP5S3 rVUgearAtJzKdPrLCn1uNoJRMU4D+2dKBsNC9MQ01fju0n8zszEPlCvt65Qi18ZP6+dU 1FjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=5rUQ0E/DaI0TPGpNTwq/2NpEbceNPCTgdoY5LcA2tuc=; b=dVm6FfE7jpfmeBZ2PPiem5ZSm5f9r2o6S8xW0JaLfZqvvka/DWnZX20AE8FZZodaxz 1Pq8ttrw4pkRNKRl2x/MU4u9FTzEhDYtds6tSskqc36BQUAABNd4RRF3kfom4rmz99XU yfvopnKIKy08Mx9fsTPlX/tUsnfDMn7oKpB0zLMxUkRsyDAURXM3bkokeojfGfscFT2M IEqjVKDHbX6I2yYnp5/1gszzHlZEQGzKxl7S2n1v1Yw3r+Kmc2zm3Pe61/KnjV4LaAL/ oWCU66Tx0q0/sVMfIPtAvgg+iJ+MY5nffX4iE5BFtXI58X42cEU/DVnSc8ZlD7fUl0jU YiBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d75-v6si7469963itc.75.2018.05.07.12.43.57; Mon, 07 May 2018 12:44:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752809AbeEGTmi (ORCPT + 99 others); Mon, 7 May 2018 15:42:38 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:52602 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752217AbeEGTmh (ORCPT ); Mon, 7 May 2018 15:42:37 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0C5DE40201A1; Mon, 7 May 2018 19:42:37 +0000 (UTC) Received: from krava (ovpn-204-21.brq.redhat.com [10.40.204.21]) by smtp.corp.redhat.com (Postfix) with SMTP id 06F7683B93; Mon, 7 May 2018 19:42:32 +0000 (UTC) Date: Mon, 7 May 2018 21:42:31 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Andi Kleen , Adrian Hunter , Ingo Molnar , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Alexander Shishkin , David Ahern , Namhyung Kim , Peter Zijlstra , kan.liang@linux.intel.com Subject: Re: [PATCH 05/12] perf pmu: Fix pmu events parsing rule Message-ID: <20180507194231.GA6087@krava> References: <20180425160008.3407-1-acme@kernel.org> <20180425160008.3407-6-acme@kernel.org> <448c4e21-8232-3d04-cac4-49b95c8bca3a@intel.com> <20180503103717.GA14776@krava> <0c33d3f9-4b76-c94c-7306-e93e8cd8d4aa@intel.com> <20180504160228.GA25229@krava> <87a7tdphyo.fsf@linux.intel.com> <20180507183749.GA2095@redhat.com> <20180507192408.GD13491@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180507192408.GD13491@kernel.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 07 May 2018 19:42:37 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 07 May 2018 19:42:37 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 07, 2018 at 04:24:08PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, May 07, 2018 at 03:37:49PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Sat, May 05, 2018 at 08:43:11PM -0700, Andi Kleen escreveu: > > > Jiri Olsa writes: > > > > > > Please fix this quickly, PT is currently totally non functional in Linus > > > mainline. > > > > Ok, so I'm reverting this patch, the previous situation was just a > > misleading error message, so it can wait for the discussion about the > > parser fixes to come to a conclusion and a proper patch to be submitted. > > ... and I'm adding this to my perf/core branch, so that we notice this > faster in the future: sry, overlooked this one.. good idea, looks ok to me, ack jirka > > diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c > index 18b06444f230..6829dd416a99 100644 > --- a/tools/perf/tests/parse-events.c > +++ b/tools/perf/tests/parse-events.c > @@ -1309,6 +1309,14 @@ static int test__checkevent_config_cache(struct perf_evlist *evlist) > return 0; > } > > +static int test__intel_pt(struct perf_evlist *evlist) > +{ > + struct perf_evsel *evsel = perf_evlist__first(evlist); > + > + TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "intel_pt//u") == 0); > + return 0; > +} > + > static int count_tracepoints(void) > { > struct dirent *events_ent; > @@ -1637,6 +1645,11 @@ static struct evlist_test test__events[] = { > .check = test__checkevent_config_cache, > .id = 51, > }, > + { > + .name = "intel_pt//u", > + .check = test__intel_pt, > + .id = 52, > + }, > }; > > static struct evlist_test test__events_pmu[] = {