Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2341732imm; Thu, 7 Jun 2018 09:04:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK/Jo5X4txHIoMT1XiWs/Afpgl00P6g2OYblYHjusTyQFjcmU2XIDxwoUepsO9aRuFxMV2g X-Received: by 2002:a17:902:650c:: with SMTP id b12-v6mr2720176plk.31.1528387440791; Thu, 07 Jun 2018 09:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528387440; cv=none; d=google.com; s=arc-20160816; b=BPwatQTROZmtZG+XJEO6iESl4ZXFYWF0KO8zYij1ynBH304aLbRV3tIY9kXjN/2DaK Mgj7oVrcVPY438gYoY/zrQ54YXyRHdYEWZ508Hugux0ygmaS0t1HhjpYm5SVANeP7K8S zEXYIk6kgGjrbJMhVV66OEAUB08CDRsmRr3KW/PzeuuR7M6w28aSV8S78UZ4WKOw+Sop pt867FEdD2TAeQV6t9gjNE8n6by4zWkclOrTvj8GYg6VeaADbdO9C59b2pyaDAPAmA2X 6NRkm7mWJut+Nxvbk83ldAde9XELZScppr3C/jARN96Ou2bDc0ZU1ZYMctZ5O2H8dCxy ZDNQ== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=GzoDECv4OvkI9xX9WzUiTmYqSn3LavsRzoEt3FCoFNI=; b=wEp646bfrJnUFwzc4+eENl2gm7Bo14xm84Ar6oizz0eK+asV62ggTUt9j6fIL2AyEQ aXq6nFCwsv/S/Vvf60T2/C1eAvBNbdHLpEFwICF+I/5EQOKBNbQUV0iilvi+O7SY2suN IT3HvrSAVzzHKQDnq36BjjftWEEb9nAyitSGCzhJ83W7mhoNH6h+PEs0MICzWW2PM8Dx 7abkhuN1gIW0JxOXJQoWfFKeDMw5favpsBwmslrfYm+sL7/78jiL1tF1MzPzPEtEfkC2 M67lbPotW5X/zNtyN399zzR+ZziYXjwsHIrgiJtK6MCuDPYzfRIo53CfNRVMXfUIyPyi 117w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BI0M9bFG; 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 3-v6si55630449plu.564.2018.06.07.09.03.45; Thu, 07 Jun 2018 09:04:00 -0700 (PDT) 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=BI0M9bFG; 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 S935803AbeFGQBo (ORCPT + 99 others); Thu, 7 Jun 2018 12:01:44 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:41004 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932912AbeFGQBc (ORCPT ); Thu, 7 Jun 2018 12:01:32 -0400 Received: by mail-wr0-f196.google.com with SMTP id h10-v6so10399311wrq.8 for ; Thu, 07 Jun 2018 09:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GzoDECv4OvkI9xX9WzUiTmYqSn3LavsRzoEt3FCoFNI=; b=BI0M9bFGcMuixuYOFkCfnF6MllMwseNI1WAo21DYJFzgRKjdRp8lQVbJKm1h4qFGIg 0A7oUWZaG0qFeVJd6BcCfb6f8VTOXGfNoHJ9YIhk4KMa2jZndzlsg3OnaQZRKdwtrRXN y1vd19A2jxLSt5hHEO1dSkiK3v7dwxmEFavfdOeaHquQiyGXd7+FRdPPcXnl//rFsURu 44iP0POD5+eyUwiJLTAR1Yr0g8cG1I9gvyBb+tJCJkyGfs1F3XTIK3kojif/kn+PlJXE d1y/SpZ5jTtcs7t6UI2aMwTlwsUGpOZzPgGtRgm/5dGk3kFBo7gNM6Nx5iazrWEHGxgZ xOVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GzoDECv4OvkI9xX9WzUiTmYqSn3LavsRzoEt3FCoFNI=; b=SI2Jzye1XgR0ADqxeA+z7KajBJw5rTp19FMOmXDq1RyLleFUndAmsNV7fGEv3xaBEV Of3yscmyb2BYgmblwt14mm1AR51OPUvPSoRv94nOYYCSDq9yPlAMjanswxyzBoqNB/ov yjaPPSyA1GeZW2KT/FWoJQ9Fyi93qYa6M7P8cxjYgjk3gJ1e9DpF9PVhDeX/hUD8E237 X5XwvxIuxxEQjq2/5d/s5Y+9dSW3Qb1Dy3k317SuYauUIe6en/z4bLVccCAdvhiEZyk0 lGIRWivA/49nR7O/U9oHRuYZkYLkQnl+ueJ/GDm/TDqQFuli1DkOuH7PLVVchsvTWhK3 dtog== X-Gm-Message-State: APt69E25q3zLIKrlVlVURpOzHjfd3t4nyJwmJoCHCny35wqTrtHA30WW zPp0X8Eun6Exg5mdlcTqe1qDlyNmxru6fR295Q749A== X-Received: by 2002:adf:b839:: with SMTP id h54-v6mr2313882wrf.36.1528387291581; Thu, 07 Jun 2018 09:01:31 -0700 (PDT) MIME-Version: 1.0 References: <20180606221513.11302-1-jolsa@kernel.org> <20180606221513.11302-10-jolsa@kernel.org> <20180607154522.hyjmxn3q6zgcvsnx@two.firstfloor.org> In-Reply-To: <20180607154522.hyjmxn3q6zgcvsnx@two.firstfloor.org> From: Stephane Eranian Date: Thu, 7 Jun 2018 09:01:30 -0700 Message-ID: Subject: Re: [PATCH 09/10] perf/cputime: Don't stop idle tick if there's live cputime event To: Andi Kleen Cc: Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , LKML , Ingo Molnar , Namhyung Kim , David Ahern , Alexander Shishkin , Milian Wolff , frederic@kernel.org 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 Hi Jiri, On Thu, Jun 7, 2018 at 8:45 AM Andi Kleen wrote: > > On Thu, Jun 07, 2018 at 12:15:12AM +0200, Jiri Olsa wrote: > > Disable stopping of the idle tick when having live cputime > > event. When the tick is disabled, the idle counts are out > > of date until next tick/update and perf cputime PMU provides > > misleading counts. > > I really don't like this. This can totally change performance > (e.g. less Turbo due to less idle) and performance tools shouldn't > change the performance profile drastically. > You do not want to change the behavior of the kernel just because you are monitoring. This may introduce side effects on other events which may not otherwise exist.