Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4047721ybl; Mon, 26 Aug 2019 04:48:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSfDRKN6kwnRGBJmbxSwdXqO8lM5zABXwIEAmOcvkMfmUXq78qIU9eHe4jhBpTJ2qZ6lHs X-Received: by 2002:aa7:9a86:: with SMTP id w6mr6496151pfi.60.1566820081859; Mon, 26 Aug 2019 04:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566820081; cv=none; d=google.com; s=arc-20160816; b=Gtu3kDIZannKCukBReNwPEIn6zly4kGORnvxy5/k4Aa+fAwGz+ddBJGyOFonGn384a W2FuDIxz48w+cutpE5X5kFziN/UwxjRWRzbBFv8nc5xtOG1IaNpmEnDRGloQoJCPlEmc Hrz1BjDB4aS3xCk5B2AanUPV5OSFraZqDIQWOjv7cqbekD8vWRTWmQsn/uxO2Z8Wc/yh X2msYHOlK5/nvbkq3b4unakto5jDchVfYp3PI9gBMRpFhkvFVZQlLmys/Er7gpGOTFlu Jly5IplCluOE3/V52dRxqj6LGg7W9E5fVuYsOL8gWm6tXbgI9T9HAmzQuTQURV6jj69l 6IDw== 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:dkim-signature; bh=8DwO9450VemX1oKvBvGd4hcG4nqyBnqJFEl5Ut7l0NY=; b=ZDIveRZ6914pugrsovlndHxRmNFVxMcyph+rW0OeiefeN1XW2F0g9b68WsNDIYaVep 387vSu0zWHwbRJLDBqEJA5E8VzrK0UVhswaFs81Ff5N8bUees2m1pc9GcaJmlf4t2VIu INNIlaLCtHzy7L9N6YS1ToKqH0ojaYo7G74DOAOXuMUxi94ygEW7PtcnvZIvgbsDAr/k mwRXwNtRgnNAshNV6HTbQ8eDKKuudK1Ez5UBQu0C34p3CGe5a1Xkr5CwSYXqY4F92usp KOtMo18iqr72F1HJdwH4rxZvUXV6p+5Bfxconmof8SVlI8GWHWGlEp3ZiJwP39b93ekw 3KZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=erT+ZWsd; 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 p187si10336798pfp.5.2019.08.26.04.47.47; Mon, 26 Aug 2019 04:48:01 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=erT+ZWsd; 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 S1731154AbfHZLYN (ORCPT + 99 others); Mon, 26 Aug 2019 07:24:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50488 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727487AbfHZLYN (ORCPT ); Mon, 26 Aug 2019 07:24:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8DwO9450VemX1oKvBvGd4hcG4nqyBnqJFEl5Ut7l0NY=; b=erT+ZWsd+i2kH9DSoIo8qqWEB PB0GiCH46bDRkknLboS/M5008pwxgaZxg0/mVeBsowvk4mtXn5SDMljR5fbCL7xbqKG1tbrDtJkKM j1R1iQDLHJItfSaVkGS5T9H7yaReJUONvAPPIabu/6tW5m5KDbUfA2iTw3iC5tQrF5QztH6YGU9pc +bqEMuSFgdUYB0izsishCgi0AI5TahdG0E5Tow8mAIPKOLBuPL7DnGQYOFLaAJIEQG8dUMRoC1b+v NvBpP4KYOK5I/FW+/BgM2WslT7WvgwVJIQKXOhG9RkBVH9JadZ5b/tD09g/5ihkoVjE5JzmvABvdM Z3uv8uYtw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i2D6X-0003lk-SL; Mon, 26 Aug 2019 11:24:10 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AF9D830759B; Mon, 26 Aug 2019 13:23:33 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D7B6E20B33577; Mon, 26 Aug 2019 13:24:06 +0200 (CEST) Date: Mon, 26 Aug 2019 13:24:06 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: "Rafael J. Wysocki" , Douglas RAILLARD , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, mingo@redhat.com Subject: Re: [PATCH] sched/cpufreq: Align trace event behavior of fast switching Message-ID: <20190826112406.GR2369@hirez.programming.kicks-ass.net> References: <20190807153340.11516-1-douglas.raillard@arm.com> <3316959.EEulJYEQYJ@kreacher> <20190826094058.GP2369@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 26, 2019 at 11:51:17AM +0200, Dietmar Eggemann wrote: > Not sure about the extra 'if trace_cpu_frequency_enabled()' but I guess > it doesn't hurt. Without that you do that for_each_cpu() iteration unconditionally, even if the tracepoint is disabled.