Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp279222pxa; Tue, 4 Aug 2020 05:34:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybofRgj+fjKH9j4oheD0zR3W3pQqK7AdFGxvfcJr/2TaaBkoewp133X6i/8h6jZa5HB475 X-Received: by 2002:a17:906:2451:: with SMTP id a17mr20555807ejb.274.1596544477886; Tue, 04 Aug 2020 05:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596544477; cv=none; d=google.com; s=arc-20160816; b=M4PcwjkEq4Hrro66dLzMUCvS4IAcOtkb+Dl4mF9D4lY2yJFl+qTkTpCXqPKkM0GJzs IwF+nGJTDf6RixUn3HeHLEQOYzcuAWEor7BusiHAUSFalVviQ5rhF3c3nwfgnbDxX3Qm P2dW0Jikd2XHY9e3u8JXfuBFVY4eeoDD3n4n40U/u9IkbqOcFGZrnbZ5XD5LOA0MDDBj SCxJSXdr1PjHvoWqGf9zrvluIctLSMbd8WH4DtUwJwfRq79lZbsGPCasT33uOCv5lEZN GZFc59hayPAtOfyMHMw5VHXIMtjptX37kT06Zp08P9fo1Ny8dQKS6A0Oaf1SIFbGQEPF M1ZQ== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pDnbGf0VM3sUPuRYT7N3CljfOplz14QbdrDJu+jR2y8=; b=Yv7+EOeoM0OD9FAzl8J/sHosF/uo5QI4aiLdjcrpdZEuMk2o4FgJbF/IEcrTHpzSII CD374t53ZQYVo6Bne9zYPK+uFGvWixImzVJCgFncKeFLsz1OJ3X2n7WANAttOS1/Asyt c+2f0zwZvhmDPurVUxFAq36vyBUOmX7pzE6zUXiuTSXYM+3THOVc4Yx32bpwemTw2MQF r7DZQU9MmVHqwqAJ7map9hfCFITGimEbiS7lXI11JR71Zgcrt9DKQOZN3QTl+L8Ukpf7 rTIe8qYG/ezG2ExPZxjCKuj8h1SHT5CzHthZk5ai9SeRRNd9vPW1GMcmsPfPbjLyfi7k hMjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fe0ubSaY; 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 o2si9588135edi.594.2020.08.04.05.34.14; Tue, 04 Aug 2020 05:34:37 -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=Fe0ubSaY; 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 S1727044AbgHDMaf (ORCPT + 99 others); Tue, 4 Aug 2020 08:30:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:54784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726624AbgHDMaT (ORCPT ); Tue, 4 Aug 2020 08:30:19 -0400 Received: from quaco.ghostprotocols.net (unknown [177.158.178.165]) (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 BBBE32075F; Tue, 4 Aug 2020 12:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596542780; bh=YvH24xqG+X8oWyJDw4omp3Ithof1ttgkXwFEqVqLjas=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fe0ubSaYTE997FdGrNtQBcytCSRwgZXdGTXJP5fbzCxxfnlzIAPIg27MP+vbKcIHC WWkSVtNhRySKMzZQOj4ENcXgH0RPd7uqhjoV1EMen//oyPv8qLe8OkFz2IFi6cuu73 CZpYBeP+vOpsNvr3meBC9oEseYRDaXYeQqP+6sow= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id E5B6C40C7C; Tue, 4 Aug 2020 09:06:16 -0300 (-03) Date: Tue, 4 Aug 2020 09:06:16 -0300 From: Arnaldo Carvalho de Melo To: Adrian Hunter Cc: "Jin, Yao" , Jiri Olsa , jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com, irogers@google.com Subject: Re: [PATCH v2] perf evsel: Don't set sample_regs_intr/sample_regs_user for dummy event Message-ID: <20200804120616.GD3440834@kernel.org> References: <20200720010013.18238-1-yao.jin@linux.intel.com> <20200720091748.GH760733@krava> <20200722110810.GD981884@krava> <6f732f7f-7c5a-726f-5b09-2c6761f3b534@linux.intel.com> <32664190-9a2b-6ce6-3cbc-87b46c85d21e@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32664190-9a2b-6ce6-3cbc-87b46c85d21e@intel.com> 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 Tue, Aug 04, 2020 at 10:06:56AM +0300, Adrian Hunter escreveu: > On 29/07/20 10:23 am, Jin, Yao wrote: > > Hi Adrian, > > > > Could you help to check if following condition will break PT? > > > > "(opts->sample_intr_regs && !evsel->no_aux_samples && > > !evsel__is_dummy_event(evsel))" > > Sorry for slow response - I've been away. > > This is fine. It will not break PT. > > no_aux_samples is useful for evsels that have been added by the code rather > than requested by the user. For old kernels PT adds sched_switch tracepoint > to track context switches (before the current context switch event was > added) and having auxiliary sample information unnecessarily uses up space > in the perf buffer. > > Acked-by: Adrian Hunter Thanks for checking and providing the comment, that I added as a committer note together with your Acked-by, appreciated. - Arnaldo