Received: by 10.223.176.5 with SMTP id f5csp2952878wra; Mon, 5 Feb 2018 12:59:02 -0800 (PST) X-Google-Smtp-Source: AH8x225oT0RA/CSbd+RI9HDMK1lNbwvSbFQ+lyDg35KT8M7jbC+WJvsWsu8jhzow7OLdNC9DNGlK X-Received: by 2002:a17:902:b410:: with SMTP id x16-v6mr95630plr.157.1517864342215; Mon, 05 Feb 2018 12:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517864342; cv=none; d=google.com; s=arc-20160816; b=RqB9gTfVsAUK4XOdaTmiVj/R1RTwCY19tft1AlPTslReOscsG8BAJ/nHe1iRJRJ4Zw T1a71PfoM1R+LSZcKNEai4Ys6/f6NiXjKkUjB+QiF8q+jeOnHNxyg5HMllbRnpaF3UMR IMybBLr/qeRUbLGMN2Nz1vFNT5KScCPUluI1g/Fs3jZOTj8YYCMkcYMcVeG8olxYl0UC Bvj0pyzZOZ06QvHQvrLbu+kuFd11V82PanT94Eto1oIQ3eV/8NoUl/cpjqTQF4Tktl00 UWPYkO2J6Lxph7uU7OjQNz+H59PSP0lbbIxRXABZaZhZ9U3ESOgAbGKAfKD5/r8Mathh zI5g== 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=D7S+4StOirfBRUw8NJs4BneTbjxrsE55B5SmygWWnZo=; b=uldy7VUy2sv2xLsvOLjnA8eQ/QPaOzKdlPz2A96J0NtGOABIKQZk525FM21pf2PpSz MouYOfTDuLzExJT0jNCofxDYtekyZU5zn9W4SvhcYRG7HuFDXGYZRou9+1MeEIRscJhI xT+0TeY9FnWlCjjW7ht/LbdU1w2D5xyOOGUxKqupDXaAkGON9pTdT0zQwF6GOXO0l2Dm jKSrPmcfcxv4OJ1m2xwfuv/yawSyclnjs1cUx6EFt2WgHqlnKRsQZ7UOB7mR1sbea7EJ +H+LFdUUNRpcs4qFcpLVaqVlXdPmul0M1loSg3bi3/ED1aza7OhymHNy+KI4Eam/+9yC vuAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wB8LfiiA; 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 m70si7438302pfk.201.2018.02.05.12.58.45; Mon, 05 Feb 2018 12:59:02 -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=wB8LfiiA; 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 S1751990AbeBEU6V (ORCPT + 99 others); Mon, 5 Feb 2018 15:58:21 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:50201 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbeBEU6R (ORCPT ); Mon, 5 Feb 2018 15:58:17 -0500 Received: by mail-it0-f68.google.com with SMTP id x128so175097ite.0 for ; Mon, 05 Feb 2018 12:58:17 -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=D7S+4StOirfBRUw8NJs4BneTbjxrsE55B5SmygWWnZo=; b=wB8LfiiA7Fg/TTvSw307z9htwGJT99gTGAgYYtQ2jVjk1oE5ssuQC6UPsfcAmBlFV1 GLt/vss/DiFYfuwNuHyyy+LYsGX0y2FbFC+BFfJcxbTADVc7pemQOWh62UPjZfZpyr6F sj3FD/b2i0sxlngpAxbDnchAsAJJnkbRN63sSd4dxylvYv8xe3GyOJdsRWVTwJBA6GFL Se8etigF05lcnAXC4/Zv3GlNlrSY3MwKP+SArlk4CJk4wZn9E2zNGq+sMK7RrrqYAFm/ 3jGxN/iWwYj2pWc4WCutClgvEXk0TCdZqXOzAFwjvQ0V/aM79ONqF3aZlYIMpzjyVCco ZD1g== 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=D7S+4StOirfBRUw8NJs4BneTbjxrsE55B5SmygWWnZo=; b=fYGiMp/BnnSmOnmybSnelrSBzxFtXWtAKhWiIjWeG1TqbHUiUvJgHMddubrrZRVKnP 2I3Ocwh0/r4R4R3SGBMRUIv5OXpkbpFpRSVDi2nKaSN5bfd1+bK29up+c6x9t3abpUb6 ZSgf2IgVmWbW045LFCVIeHPDKFJ/eAsC9FVd6Oanfx1kAAAShgHSefK7QggOTp1qribf kz6GQNp5D+mbD9q2VJYHZRFJciCkddB4GdLB2d0z1q+2XwjuQpeMaSFhla6xw0TnZcld g1BVK5sqwa7TnL3zag9BHqAqZZFwJ4pS2YIX70TN2VKYffU0T9hIN5o02w1vtXjQIVmV 7T/g== X-Gm-Message-State: APf1xPCEguBzekd6iKsFD1k4dQ2jwXKwSYVuHf5DS7laNV7HbCUZ1R4D 3lEz56s4zlnMYen9RBIih7NCeuVpzTx3USFTA3eM8Ypu X-Received: by 10.36.73.102 with SMTP id z99mr111958ita.72.1517864297079; Mon, 05 Feb 2018 12:58:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.170.39 with HTTP; Mon, 5 Feb 2018 12:58:16 -0800 (PST) In-Reply-To: <20180205151720.GA29340@krava> References: <20180201083812.11359-1-jolsa@kernel.org> <20180201083812.11359-2-jolsa@kernel.org> <20180202202849.GA8297@kernel.org> <20180202204004.GB8297@kernel.org> <20180205151720.GA29340@krava> From: Stephane Eranian Date: Mon, 5 Feb 2018 12:58:16 -0800 Message-ID: Subject: Re: [PATCH 1/3] perf tools: Fix period/freq terms setup To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , 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 Mon, Feb 5, 2018 at 7:17 AM, Jiri Olsa wrote: > 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? > My understanding was that perf only support configs where all events have the same attr.sample_type. With frequency mode, you'd want the period recorded in some cases. > jirka > >> I hope that perf report can deal with config mixing period and fixed >> mode correctly.