Received: by 10.192.165.148 with SMTP id m20csp3445699imm; Mon, 7 May 2018 12:25:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoAEnIvYLMpiTsHaN1Yx5AXqtDPd54qIyWhCIq3ZtPz/RUxlfPCTX0EJM5K1NoqNF/TEZ0Q X-Received: by 2002:a6b:afe4:: with SMTP id p97-v6mr39622686ioo.257.1525721104061; Mon, 07 May 2018 12:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525721104; cv=none; d=google.com; s=arc-20160816; b=ouhGGv95U1XTWZMFChBe8wwWiSKAB20KrTOx6Ba2ezHKeSYEOyMsPW31tzq9ndv4HV LIAwD/uKwTr4KdfebGs8aegDvAoXmuWGaoE9slDzAI2id7x0CiHJAkZhYbYOqLS1MKhN m/I9n5lij/6quSBC5dzT1AbzNhHZJLRP1BTvDxnYMjb/jgSCY5NO4vnWmlFxHNRxBNXp Oewnfl2Wj79HlkujuY8qy6PA9YZFlHSgPnrzcpEdKjib/49++JhgHPJMb3cttjSl9hQG rL0IescoCEpuYaMWVWWfPy8d0Eeq9Lb8b/W5I45fuUN0PtMxLZDnMH3N8TNoCVDRrcrR 0rtg== 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:dkim-signature:arc-authentication-results; bh=eLyasj/cQBf+Ag+Q71RkcYM+kPCsj/bXWhcpH6dIi04=; b=QcjzFRc2+myJV9pY+IvnftTLMGyuvOhfAisJUWh6pBCmCfoVOfgQwlKIyRluJOEURx 3Bs9/kRb5ecxR//U7aAfzGAjUw4XL/+BXembieBQimkXBqmb0nmTXCB6bxjC/8W6QHjk FzTo8tTH58Gm1capsFM6Wma+976i+R1TsUV1yvjxF/j+1VHeYD128XAORizmvJ4X25kB rrRRm0YYVyPWJNJr2+3fJRtHrv/Bc6T4NT5Fcs3Ot8iaxWoMwxozVmBn4AM2JILkH+BB lBFTriaYZxvmBVmj3Igr1w+LTvOhX6Ik3VKvuuLfI4mD6L7MkH60v0KvHrJSgO0uT63x jDWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WmsSQ/ig; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o189-v6si4238640itc.68.2018.05.07.12.24.49; Mon, 07 May 2018 12:25:04 -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; dkim=pass header.i=@kernel.org header.s=default header.b=WmsSQ/ig; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752658AbeEGTYM (ORCPT + 99 others); Mon, 7 May 2018 15:24:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:38256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbeEGTYL (ORCPT ); Mon, 7 May 2018 15:24:11 -0400 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 82B31205F4; Mon, 7 May 2018 19:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525721050; bh=gLH1P1P+ZIh+GyWjoGKcxwun04usSQNmqnNKuoOtBO4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WmsSQ/igneGPDzQoB4OrqblWmrTI6soD0lBb814bQVWEZQ1X0XVFqw0ICyDplilWY w52yX2PMAsr1SNPKI1Q0c09DIv1KqjLB3czmA1X4qaQKu6a43EGw0R9kdhPhj1ShMo rXk7lZ7UIE1f1ajzCV1fwj3MtnBrgUhkSUJqVUp8= Received: by jouet.infradead.org (Postfix, from userid 1000) id 3F378146832; Mon, 7 May 2018 16:24:08 -0300 (-03) Date: Mon, 7 May 2018 16:24:08 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Andi Kleen , Adrian Hunter , Ingo Molnar , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Jiri Olsa , 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: <20180507192408.GD13491@kernel.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180507183749.GA2095@redhat.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: 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[] = {