Received: by 10.223.176.5 with SMTP id f5csp2630169wra; Mon, 5 Feb 2018 07:18:33 -0800 (PST) X-Google-Smtp-Source: AH8x2251breU+EGo74ZxqOYnH/n42ztR4Jcn81muMFiMIwjqsewN4uWNLDilw5Ms868P1uxxmhf9 X-Received: by 2002:a17:902:7082:: with SMTP id z2-v6mr14133518plk.244.1517843913055; Mon, 05 Feb 2018 07:18:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517843913; cv=none; d=google.com; s=arc-20160816; b=PXHNongA7yyEGSRaQechN8H6ZwOoF5nZ8yPJpFHzAV0dC/fjHjuN/HeiTmLSrn0HcM rNk871N0XrOY0EIw2qSOTuwLH8DMt1m8ndlgSQuc1irRIpImzJldiBuGjxINs22gTEIN I14q3r+yl3bdPJWeqtjM/SEskizbGTruLzXKvEXU38iOdJnlNTjrIwcPher8U6KaMPf6 pRgh4cZ9Sh3WuD5KlZQ0xeJyrM4hp7oEZptxzN2/oN7zyvqBFLCW6CTvvCV824byWY31 smfesE0YMz3qxKg6QxUHpnQB6PEiWpF96rL7AyHH1XdWENFJc2xGrznDI9ay9MUc/i4A 2iIA== 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:arc-authentication-results; bh=N3z4WSniiWBfkXdsBxjsBqnZkz0edTtSxtzXh1L50WE=; b=NXulN5B0bX1p7kTU2FS/hlXp8ll1uYjS/rYvBmcXV0l1TULEvqBOvJ57virfsPVknI IQJPQ1rZ9EIeddhHHhk+JdT3F0MzqqnrgoW+lWPQDTv9mUd1a6FrwIOTA6F7bW6q+ikU 0ibltml2IK9Ta+cINY1Juro/RwIpZN3Tf1iO3adlV1Taoo2PrJM6tQjp0WQ5xAcVF57q DuikvlKl9/uMUy3QtAh5ppLo76bI2usf/eonnoDHn0V/JgsJHHWU4w5W6+ipKjw/LUNo I0IVT5adb6e8O0mwpAqsM0rgWbPRqZdn39jdTwi/cEbe2R8127ZNGcDXMLbv4+dST59e UBEg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4-v6si7161431pln.273.2018.02.05.07.18.17; Mon, 05 Feb 2018 07:18:33 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753320AbeBEPRg (ORCPT + 99 others); Mon, 5 Feb 2018 10:17:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49840 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753311AbeBEPR0 (ORCPT ); Mon, 5 Feb 2018 10:17:26 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A2B0A3CE24; Mon, 5 Feb 2018 15:17:25 +0000 (UTC) Received: from krava (unknown [10.43.17.63]) by smtp.corp.redhat.com (Postfix) with SMTP id 895076046C; Mon, 5 Feb 2018 15:17:23 +0000 (UTC) Date: Mon, 5 Feb 2018 16:17:20 +0100 From: Jiri Olsa To: Stephane Eranian Cc: Arnaldo Carvalho de Melo , Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , David Ahern , Andi Kleen , Alexander Shishkin , Peter Zijlstra Subject: Re: [PATCH 1/3] perf tools: Fix period/freq terms setup Message-ID: <20180205151720.GA29340@krava> References: <20180201083812.11359-1-jolsa@kernel.org> <20180201083812.11359-2-jolsa@kernel.org> <20180202202849.GA8297@kernel.org> <20180202204004.GB8297@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 05 Feb 2018 15:17:25 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 02, 2018 at 01:04:34PM -0800, Stephane Eranian wrote: > On Fri, Feb 2, 2018 at 12:40 PM, Arnaldo Carvalho de Melo > wrote: > > Em Fri, Feb 02, 2018 at 05:28:49PM -0300, Arnaldo Carvalho de Melo escreveu: > >> Em Fri, Feb 02, 2018 at 10:45:46AM -0800, Stephane Eranian escreveu: > >> > Otherwise, I tested what you have written so far and it works. > > > >> So I take that as a Tested-by: Stephane and will apply the patches, Jiri > >> can continue working on these other aspects, right? > > > > I also added this for the casual reader to get up to speed more quickly, > > please check that it makes sense. > > > > Committer note: > > > > When we use -c or a period=N term in the event definition, then we don't > > need to ask the kernel, via perf_event_attr.sample_type |= > > PERF_SAMPLE_PERIOD, to put the event period in each sample, as we know > > it already, it is in perf_event_attr.sample_period. > > > Not quite. It depends on how each event is setup. I can mix & match period > and frequency. The PERF_SAMPLE_PERIOD can be dropped only if all the > events use a fixed period either via period=N or -c. I think you can have both period and freq based event in one session if that's your concern..? what would be the problem? jirka > I hope that perf report can deal with config mixing period and fixed > mode correctly.