Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1809238ybh; Fri, 17 Jul 2020 01:31:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLfTLtGDNcDK4jPNlQjuX/oII/XmeJJgXfDvjtUx7G2J+GWgyzYQlB/1Ytpm+W75UKLjsf X-Received: by 2002:a05:6402:1ca8:: with SMTP id cz8mr7932249edb.55.1594974685196; Fri, 17 Jul 2020 01:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594974685; cv=none; d=google.com; s=arc-20160816; b=ZL5RxLEfSXlMFcF60MHE2pudyG8o92sCWLlV/vbmdbx18M1cpBRGtWY7l/khbZWBYx rbMKfswfxSfINEOQrMFKIiJSzx4SVRZnap+xHkvLAI4GKguQYqNgPvLDEhqqDu87lW97 27TW/YIL+xeO9Ys0aHEjh5vrtgfuMRr3zBTKw8YnYHpwrwi8OlIXWzmhSwLXDZEOOK1P m+6oC3mDEotAfJS4KK8FpOIsAHT+o8Z+Mn75OJWOvYXqkA1IXrNiisWUMuaJH04JdTw5 8DZ3CKj8SxJyADTrFvAMyFAbszMQhsp0k7C3zymie/YS1O77/oL0GfD92PFALJJ0NqbH cBYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=Y4iQ0wKeSgJAyKmE7RIdCrt/mg/sAtFIy+mvx/TzKKk=; b=MKmdQu/6GFu5cQ9qE8+5PkkgRb3YItOPqy9GVkuepiPtlZY75FeMRis+4f45amYVxT bwWqMQftKNi4oAJJdZGN1TGFzaSynBoUOZhb3q3fcNu3zBVDIqcTiXwBSZzbLiXVvwu4 bqZFDl/YdXBReWGFuwT4cdP3gIByobwaPnFnw2csPjJOeIT4eWQaWKKfMuLxQ/aG3fsC gZNDb+ZtaQL+edGB1BzJWUxCSQvt8hSp6o04+qbMG2QLquuP1QlPyQcuu8xiRbe83VHt 3iX9ZXcZK7ElPMbme20bQ45Hk2IdUp8ItpM+vYqRY64ufn6dP5F36xi4Ife+h/mjzKqy BEcA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si4638200eju.478.2020.07.17.01.31.02; Fri, 17 Jul 2020 01:31:25 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbgGQIa0 (ORCPT + 99 others); Fri, 17 Jul 2020 04:30:26 -0400 Received: from mga05.intel.com ([192.55.52.43]:18659 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgGQIaZ (ORCPT ); Fri, 17 Jul 2020 04:30:25 -0400 IronPort-SDR: HxekXXhi6DoOlG1zroLV4fsvncdXV2U9p6slQaiTk7lrg3iPyjVW4+JEaCDlUwXDFVqDeFuRXK Za0+E4f/zK9g== X-IronPort-AV: E=McAfee;i="6000,8403,9684"; a="234407702" X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="234407702" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2020 01:30:24 -0700 IronPort-SDR: w8WkAX0oZ+Gqf+zvSRh0270fwmCdV+UjPlxxsIMM4nsAoB+3EjXO3S/KDWM0zDHgOuvB56mbml 5g4UxdXP0PWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="318705545" Received: from yjin15-mobl1.ccr.corp.intel.com (HELO [10.238.5.239]) ([10.238.5.239]) by fmsmga002.fm.intel.com with ESMTP; 17 Jul 2020 01:30:22 -0700 Subject: Re: [PATCH] perf evsel: Don't set sample_regs_intr/sample_regs_user for dummy event To: Jiri Olsa 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 References: <20200703004215.24418-1-yao.jin@linux.intel.com> <20200703110042.GA3282312@krava> <9fa0bd83-b21e-7bc2-af81-799f8e99f73b@linux.intel.com> <20200717082412.GA522549@krava> From: "Jin, Yao" Message-ID: Date: Fri, 17 Jul 2020 16:30:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200717082412.GA522549@krava> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks Jin Yao