Received: by 10.223.176.5 with SMTP id f5csp1222267wra; Fri, 2 Feb 2018 13:25:30 -0800 (PST) X-Google-Smtp-Source: AH8x227Uza6NqaxvdF0/VVBcK2JCMurrDALJdFqQ2AQ1+TbVuocEpMuw+d3jBMhLfiYycQipkJdW X-Received: by 10.99.114.3 with SMTP id n3mr2894095pgc.225.1517606730359; Fri, 02 Feb 2018 13:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517606730; cv=none; d=google.com; s=arc-20160816; b=PBCPUufzu0wymdr04ZwKThEplIwxAU9bGSj1r56EN6j5CZRzNOD6BXmRAXzFuzRQvk 1mHww8Z/1NJQtP8wyzMaDe0D6GdEPBc9E1m7Gzp1wiGKG14ZsF4yqzkBYja7JTx1po3m BztKyGsZhl4hnYHJBsprVvcl7Xa9Jk+DuSFvD0A/4rlNJvGiT6C2ATbZEP0LO9AV+CNl OYeNR3yseeL9LSrKYdfFy2bSB90n+obWU6o4B56xem9X4s1qInz9Q63xQapGiQLON9tu Hu02vw09Yi6cn/LBwQdAZ/XktleCAoSGuM0hYTn5YeY31aycXM7E5i3+hqw4gw9BoftS Filw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Qp76rol9otYuvWI16orUhvtHjOhL6h4W+uAb5z3AWos=; b=MEkI2eJfRYI3iqX98RLYpHSwIavI7XJLAZm9nwPYGGG1/np7ftSlccNJE4T/rwiuyr wXd9DP5nFe75R5c710Os9NhVJwahivIphPpBPL5Rh1bguAufFlkJuv19bxtw5m3hHOdE nE91IEJQAdZlRPd/opLPuhAz0UtzeO4odz7Oh0/vC2sAdznhjs46si5SL3y9sEGvz0PH 0sQCnOETp4kEwSjmVR3GjCA6joZKgDgiDtBTyvy1ihVf4wPLOMpQZTCOQh2Mi9o0vdsZ oZurQxG9N8JLMPgYKH9rIhlKpc4Q2VYxEBGOh4YWnbhwBOR/UUReQ0ZwvY9ytJ/gr22L m5uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=I4SJojlf; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si1931507pgq.601.2018.02.02.13.25.15; Fri, 02 Feb 2018 13:25:30 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=I4SJojlf; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752814AbeBBVEj (ORCPT + 99 others); Fri, 2 Feb 2018 16:04:39 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:44664 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878AbeBBVEf (ORCPT ); Fri, 2 Feb 2018 16:04:35 -0500 Received: by mail-io0-f193.google.com with SMTP id z6so24305100iob.11 for ; Fri, 02 Feb 2018 13:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Qp76rol9otYuvWI16orUhvtHjOhL6h4W+uAb5z3AWos=; b=I4SJojlfZSFNhbLdwCocJRl5HLKjKgADquZkNW3F775b+u6+bR8AMNlqHRSt+Yh7xZ Lijd3oFBtVId+fB9+IuWzLu7dWyEIw8KQQybglzVrz0v8LymAr3A9//QH/gWsC4o/9WL x8ySBGuApDD7/vxfYBEXHI4OcBTCeR1o3sqoFeLY4djv+fX2bqO5Ta4Dtvj38N6x2zqy fzRL47ZaDkllPj5tZPEZGPp8u0fEJ3pSrWDK6O+14NkNvJyripBxZRoDkLYO3C1Mh2Cn pBm4r2V3ewthFmPyX84VBLN7wvlu8/BpFnyhUPlNfsFmviqTb9hXhlftTwoWKwFy0UMC cT1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Qp76rol9otYuvWI16orUhvtHjOhL6h4W+uAb5z3AWos=; b=CQYNWi/UiIY0DyYUGMzL+D4QIuJ2G2Qnt+xoysuWDoyUiL/ZykCTSH7FrSxHv+4AER FilT1PjxPBTGv1lIq4MdD4O9WTV1zaPqZI0v4QDuyLeX0XV0r86q7ctxLYz6AhE9MKqc bqhmc3VOb/5VX84cyMvhw59cqrNFTUDYJKNK0DMerQeRAuM7a/OLLC8KmbC9TVKGRhXe AdCvZL4hMzLjsteHPr5u3TCt6Sed11j1y05ljd3E3yc+xiNBgVPDiJQxC3e5e/oI8YM5 8iTnh3ake65h1LhXXRxQoeA7bkABHZmP6/mpmf6fLdmtMYja8e26zjGcCIh+n+IhsW7J 1XzA== X-Gm-Message-State: AKwxytcLtq1PLjuySAeuibEmj5vs2q3U1HDIhSsLqRAq1a0ZcwuDxYs2 82rWhEJ4syn7wg5RDtmWOmgZjzH8ZEyBpN6gb4de2A== X-Received: by 10.107.19.213 with SMTP id 82mr43451841iot.276.1517605474744; Fri, 02 Feb 2018 13:04:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.170.39 with HTTP; Fri, 2 Feb 2018 13:04:34 -0800 (PST) In-Reply-To: <20180202204004.GB8297@kernel.org> References: <20180201083812.11359-1-jolsa@kernel.org> <20180201083812.11359-2-jolsa@kernel.org> <20180202202849.GA8297@kernel.org> <20180202204004.GB8297@kernel.org> From: Stephane Eranian Date: Fri, 2 Feb 2018 13:04:34 -0800 Message-ID: Subject: Re: [PATCH 1/3] perf tools: Fix period/freq terms setup To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , David Ahern , Andi Kleen , Alexander Shishkin , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 hope that perf report can deal with config mixing period and fixed mode correctly.