Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1908774ybh; Fri, 17 Jul 2020 04:41:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEMwn2AbwCsYNiXXzOGq91w9uCxfreLn5hL3mHUWMtauJSxFJHIw8lm9C3k0rHRBDanzwp X-Received: by 2002:a50:bf09:: with SMTP id f9mr8611576edk.249.1594986119717; Fri, 17 Jul 2020 04:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594986119; cv=none; d=google.com; s=arc-20160816; b=T/H5GG9D6vbTj8OChOZzKLRr9pK9VuX96OcWH/+EpWgKP0jsmzP4kJAtz5WtLzR9sH tsCKh+rSXGDJ/rPONFBIeI7DCfaeKdGnhM2LYmHqrQfbwB2h1vymx09qmVrrW+aWLD8J YVEx6s+uDz7DrezFRhnhAHLyWFq57SnFFUUvdhNhpZMfvUkQ9MuvO311WWWMx/fHRX8X 2JFSbjmhPCO/HMvHgNeIn72QyPo1wKmpSLISQZ+flrdomEGgyCTZ6z5UYVSMasPqqRKC UhLxqqvZx0yZiisOkDW5QLvvKmlhETaZnisgDamxaKFtZUc4/bkx/sGT7RFAk1exG7Y3 plOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lRK/2qKs4FOuYDyaHAgybgnrZpfMxadvxCZ/YuxATEg=; b=lRhcpBb9SSOsbxt+Zaexm1Bis6A8rxW2WlI2BHjxMXDDN6gvcjCHDwQ+YaRwZ/cbeL xYzx312z3q+SfSEJc6P5CvnHbMWkpdltryh6ed9k+uMJMLp0EBATBwmZGbaZBT17RGra DaOIwWG5wHQTlfvFT33SCjzO7v/nI2G23L1pr20IP9GmjAm/4SBkcbCrVA1WEsKcPzvd uFfq//2AoCPZnAEc1qrVtx/FLcoTiRELAD/bY05FpuEqebOgX9v7fJ9O/ny1Y5vB7zIs c6+ME49lue/uLzu8CYv+2XInIK+lm936u6ciI6svPppt8quJFeffdCMyj9WnjIcLjEcZ Mokg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HWb+v3DJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id z22si4998793edr.357.2020.07.17.04.41.37; Fri, 17 Jul 2020 04:41:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HWb+v3DJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726422AbgGQLjC (ORCPT + 99 others); Fri, 17 Jul 2020 07:39:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:44202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbgGQLjC (ORCPT ); Fri, 17 Jul 2020 07:39:02 -0400 Received: from quaco.ghostprotocols.net (179.176.12.94.dynamic.adsl.gvt.net.br [179.176.12.94]) (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 4B32D20717; Fri, 17 Jul 2020 11:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594985941; bh=Q1O79PDKw4045cIPmduaCsJqy5wA5dlz9iIuqTUDHjI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HWb+v3DJXZ1H96V/pOhLrRVD46+OTUBcKpCCeikBmYcujDr2T0DvM+GUd5es7l+4J R91ZMmhXZwdLftvcfwNloZtC9jsda1msIS0nRKQHmhXuXoAuYyCXdskRGeCngmK7W1 cTlhXnzlvHzvIMjaqyTP+lqkxMyKDwTAwZnP8cak= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id C0F99403C7; Fri, 17 Jul 2020 08:38:58 -0300 (-03) Date: Fri, 17 Jul 2020 08:38:58 -0300 From: Arnaldo Carvalho de Melo To: "Jin, Yao" Cc: Jiri Olsa , Ian Rogers , Jiri Olsa , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , LKML , Andi Kleen , kan.liang@intel.com, "Jin, Yao" , Adrian Hunter Subject: Re: [PATCH] perf evsel: Don't set sample_regs_intr/sample_regs_user for dummy event Message-ID: <20200717113858.GB77866@kernel.org> References: <20200703004215.24418-1-yao.jin@linux.intel.com> <20200703110042.GA3282312@krava> <9fa0bd83-b21e-7bc2-af81-799f8e99f73b@linux.intel.com> <20200717082412.GA522549@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Jul 17, 2020 at 04:30:21PM +0800, Jin, Yao escreveu: > > > On 7/17/2020 4:24 PM, Jiri Olsa wrote: > > On Fri, Jul 17, 2020 at 11:33:46AM +0800, Jin, Yao wrote: > > > Hi, > > > > > > On 7/6/2020 8:55 AM, Jin, Yao wrote: > > > > Hi Ian, > > > > > > > > On 7/6/2020 8:47 AM, Ian Rogers wrote: > > > > > On Fri, Jul 3, 2020 at 5:31 PM Jin, Yao wrote: > > > > > > > > > > > > Hi Jiri, > > > > > > > > > > > > On 7/3/2020 7:00 PM, Jiri Olsa wrote: > > > > > > > On Fri, Jul 03, 2020 at 08:42:15AM +0800, Jin Yao wrote: > > > > > > > > Since commit 0a892c1c9472 ("perf record: Add dummy event during system wide synthesis"), > > > > > > > > a dummy event is added to capture mmaps. > > > > > > > > > > > > > > > > But if we run perf-record as, > > > > > > > > > > > > > > > > ?? # perf record -e cycles:p -IXMM0 -a -- sleep 1 > > > > > > > > ?? Error: > > > > > > > > ?? dummy:HG: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat' > > > > > > > > > > > > > > > > > > Sorry for the breakage caused by modifying the dummy event. Could we > > > > > add a test to cover the issue? Perhaps in tools/perf/tests/shell/. > > > > > Trying to reproduce with a register on my skylakex on a 5.6.14 kernel > > > > > with: > > > > > > > > > > $ perf record -e cycles:p -IAX -a -- sleep 1 > > > > > > > > > > succeeds. > > > > > > > > > > Thanks, > > > > > Ian > > > > > > > > > > > > > -IAX should be no problem. The issue only occurs on the platform with > > > > extended regs supports, such as ICL. So I don't know if it's suitable to > > > > add it to perf test suite. > > > > > > > > Thanks > > > > Jin Yao > > > > > > > > > > Can this fix patch be accepted? > > > > hi, > > my only concern was that it would conflict with Adrian's patch, > > other than that: > > > > Acked-by: Jiri Olsa > > > > thanks, > > jirka > > > > Thanks Jiri! > > Adrian's patch has not been merged otherwise I can rebase my patch on top of Adrian's patch. I'll check this today. - Arnaldo