Received: by 10.213.65.68 with SMTP id h4csp398874imn; Fri, 30 Mar 2018 07:39:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+AE/Qogit06Dwlv2GaGBdzTnCB+po4V2xrEptYW5sVkAgWEu/2rpYcG+6QWO5GSaX+5SA/ X-Received: by 10.99.115.73 with SMTP id d9mr8830187pgn.354.1522420746822; Fri, 30 Mar 2018 07:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522420746; cv=none; d=google.com; s=arc-20160816; b=riQxPTefEECG2vpqyFm1rScHCOjt3v7cQFMj5qEAiTLrxk3Od3PWaG2y1NxjvQq/xh i4wKfhfi3F0ms10EHXYMvigC5ufo5yHr3plSGZ7Da/JBZU+sHdgFC9/kMAxNf6QtiEqF qZlaoPxUZltXifjrGARto5mypVDeZ0Qq76B+PxampY30qen/vV2It0PuTgnF1G8FUMTv 2ynPkxx9hs97qCR9GfbXhLRB+4O3L651Ajxd1G+AbwWeP9w+FNHtl0lU5pTKKeUCYDM8 NSzti+O/Pc2teLTfZrAU5hLyFs0YyIiLitZt3wLD7ktHhcIecg+hmKtl+Jq1XELLxKpr J1TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=kEt/3STjvgdv+vx7qNhqx04bVTB5tTHchFmzUS0oBos=; b=z2yFXZcQtDQf4+fZwHVhLg9CQJLviYfqEWS8wR2CFfZURmIWLrpHovwf+T/RAV9Hzt B48xICURjXpCNkfpgwB2fd0X7tYoY9S8UNVwm/vYvgGcJdG1otMRuChRT6tDuppxpXjs teJgo676+m/po0dastlEJALtaC7ecEHOCf9vRL5CGxs5aPWlGUQHtue7tnSp/wapPpyS SPqatmUmpa5Z2Q26rqB7Jfkjhk9xOdIVWhpmQpIAvrgwRlcf9oeCHu3NqGQAE4X5iyF6 ng6S33lUM/+HcCNiDwhJIeTcI+qPU2R6D1Khcts00M+UXcQx00jAkLOzvictTIMibHWW 7O0w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m39-v6si8504151plg.447.2018.03.30.07.38.53; Fri, 30 Mar 2018 07:39:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbeC3Ohl (ORCPT + 99 others); Fri, 30 Mar 2018 10:37:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:33780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbeC3Ohk (ORCPT ); Fri, 30 Mar 2018 10:37:40 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (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 93399217A8; Fri, 30 Mar 2018 14:37:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 93399217A8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Fri, 30 Mar 2018 10:37:38 -0400 From: Steven Rostedt To: Chris Wilson Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org Subject: Re: [PATCH] trace: Default to using trace_global_clock if sched_clock is unstable Message-ID: <20180330103738.7f8a959b@gandalf.local.home> In-Reply-To: <152241887306.28244.3237898674442763768@mail.alporthouse.com> References: <20180329222557.6274-1-chris@chris-wilson.co.uk> <20180330094845.068a9a81@gandalf.local.home> <152241887306.28244.3237898674442763768@mail.alporthouse.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Mar 2018 15:07:53 +0100 Chris Wilson wrote: > Sure, I was mainly floating the idea of trying to pick sensible > defaults. Unstable clocks are quite rare nowadays, the ones we have in > the lab are a pair of Core2 Duo. I still have a box too ;-) I'm not so against having global_clock become default if the TSC is unstable. But there needs to be a printk warning (not a WARN, but something like: Warning: TSC unstable, switching tracing_clock default to "global" If you want to keep local, then add "trace_clock=local" on the kernel command line. -- Steve