Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1807437ybh; Fri, 17 Jul 2020 01:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEkrdJ/j5PcGuj15mEBJgHAulKaYGp4/8olyZOfYYyNddIpIWEYn0X4c+3KdUjAfSrGute X-Received: by 2002:a17:906:414c:: with SMTP id l12mr7854604ejk.417.1594974436795; Fri, 17 Jul 2020 01:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594974436; cv=none; d=google.com; s=arc-20160816; b=WL8Fp0k4X33J8BQ0owsQxb1H20UTzqm/TuXzZTHLBR2SrVo9VgJmeYE53WPCd336Fv NfoKHIGdiL32dCeOCah9pO8FRUpV2rgq/5wISeh5mgFJJ6yx7iX9E5zEw+AFhBc9lZ+F meKMv7X/kImbSQRSeBrTLBxunbAVff/8wa3H5GHqNjuG5tYVNOCopI9R3MKulgeirsnp nMCt0vJ3HAW88AkIJ8+TDwgfXu/K/bktr5IXvp0roQTnvMTjrI99qCYYXgomc9IlX6vO 4P7tXUYjThoiUlmP/BZI6Ciyoee3ITnAVzGbgmWFIT+xV3TgFpLeShVGNRjwT/r5+wDj 1Kdg== 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=e7Ti2y/rf1mCHH77oE9WR5mVm8jlwvItz+mBTyiLp7E=; b=Mo7psuC+tu5j0ndU9wiJh84IgjMDoX3ddFwRvQa3krYC350zdhOr1WKxHNtTOjEHw9 Et3FrR+zS/aBUVNAB+Aoirt4vopNKBHtifN18jblElMqvuPJzz+azocADl7BuBZKQIz5 3xzJh4f7BWTxTehroaUlkDplCo7whhDFJEkvL8xRS+SCM6yczmUTEk9+OOpzSDITedPp 8YANFjBPNqWPNJNKima2kJQbgIzeQIg0pnm5PeVrAoB3kHvHwezdmH4bkyAGEISoPrr9 jeJbJ1XR/S2GQQoIIvnPkEJ5oZjveTaM/HHWUhO5bqqm105EYjzQr56v8+dJVFSwcdyU dszg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Om1gFuIx; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p19si4816745ejw.369.2020.07.17.01.26.54; Fri, 17 Jul 2020 01:27:16 -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=@redhat.com header.s=mimecast20190719 header.b=Om1gFuIx; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726071AbgGQIYX (ORCPT + 99 others); Fri, 17 Jul 2020 04:24:23 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:33468 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725864AbgGQIYW (ORCPT ); Fri, 17 Jul 2020 04:24:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594974261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e7Ti2y/rf1mCHH77oE9WR5mVm8jlwvItz+mBTyiLp7E=; b=Om1gFuIxyXgXcfiiQ1XhLIDGTFjR2793iIMpo3A4boJTvzEBbseFUKndtnsil8d/WT7Ign WtDcnrrdght6WX/kY2SkvEXXXBD435HIa8mJkuim4S4wuL5Pau+/P9f93AUg4vFYSIlsQT HuPRr8n41aZbZL1m/8hv+p44ElW8OxI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-82-LmX9NkWROFmvpihkG3Redw-1; Fri, 17 Jul 2020 04:24:17 -0400 X-MC-Unique: LmX9NkWROFmvpihkG3Redw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EE9661081; Fri, 17 Jul 2020 08:24:15 +0000 (UTC) Received: from krava (unknown [10.40.192.81]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5D8437B41E; Fri, 17 Jul 2020 08:24:13 +0000 (UTC) Date: Fri, 17 Jul 2020 10:24:12 +0200 From: Jiri Olsa To: "Jin, Yao" Cc: Ian Rogers , Arnaldo Carvalho de Melo , 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: <20200717082412.GA522549@krava> References: <20200703004215.24418-1-yao.jin@linux.intel.com> <20200703110042.GA3282312@krava> <9fa0bd83-b21e-7bc2-af81-799f8e99f73b@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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