Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8627504imu; Tue, 4 Dec 2018 11:22:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wz7nizaeetiq48yhIKoNBcsrGr1iG5f8Mh97ZZpGgqODJT3m/5UuJyEXIjiInmddY4laJY X-Received: by 2002:a63:2315:: with SMTP id j21mr17982568pgj.297.1543951362426; Tue, 04 Dec 2018 11:22:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543951362; cv=none; d=google.com; s=arc-20160816; b=NFi7khvzFQxL4QmotpR15MAzKGfFyUokMSkmphRqigEPkEeqJG7BqUny9hkL/Yu+HF FypLWUaHRy3DYQDJXrCumSGM5kETLgQQkj+HiukX/5NTLmFeP8ZKbFOZCjqczOh7pm3M jLp/c8gQvbqk2HabxXfFuIFDb5uBH48GkR0bGHD8t6jdTXvGiYEm6PS8vAujO9MzZhET ORvL4EF+Mb0i7AVVfK264+Dh6kIXTL6BVX2zRgmNPM1+WYHKouw/JhfImoD9OvveEkMH 4RzrJnKFI8YLnWQrdMPwh54tTuHgJpBH18Xw4NcnorJ8vRR6qfByhFcayqlxM/iIRK8z GfEQ== 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; bh=fFblW/Iug62sBuVgUdyvBm7E5Ii36/7w+emhvpAdUsc=; b=lEpsk6lpxT1Zh/AMpkQw51BafMhfCHug8HMFtSS32ZOs5VaZBQ7fMKKzADdxEFxTFK 2s2+UpeT22I/tk7boPM6DhfadHO4FSApazncJ0L/g1gUp4xqejZ534VF/+q/sXZaZMUV 04rgODOZYcv+/cBXAmYWDFGs86EOl1uBC+byT7jN0ywkD9LccueI8iC5mGaL7HTlJ49J qKbyvoChHBA5yRJpAgiY4UafzC+Q9kKhtOp2goIlSZ53a4SFfilmond0VyAIoLtM4Xcw l57ZM4p0IqyNmACm4Os4YZq4n/aS3PqPy1uy/ZdHS/u1rhyzjJFbFM31+ZNlbsZZnY3g 7g6w== 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 u9si17234805pge.48.2018.12.04.11.22.26; Tue, 04 Dec 2018 11:22:42 -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; 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 S1726108AbeLDTVp (ORCPT + 99 others); Tue, 4 Dec 2018 14:21:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:36652 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725841AbeLDTVp (ORCPT ); Tue, 4 Dec 2018 14:21:45 -0500 Received: from vmware.local.home (unknown [208.91.3.26]) (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 CAA32206B7; Tue, 4 Dec 2018 19:21:44 +0000 (UTC) Date: Tue, 4 Dec 2018 14:21:42 -0500 From: Steven Rostedt To: Anders Roxell Cc: mingo@redhat.com, catalin.marinas@arm.com, will.deacon@arm.com, keescook@chromium.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] tracing: add cond_resched to ftrace_replace_code() Message-ID: <20181204142142.4e2e2169@vmware.local.home> In-Reply-To: <20181204141908.76e7afa5@vmware.local.home> References: <20181204191229.6851-1-anders.roxell@linaro.org> <20181204141908.76e7afa5@vmware.local.home> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.32; 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 Tue, 4 Dec 2018 14:19:08 -0500 Steven Rostedt wrote: > > @@ -2435,6 +2438,13 @@ void __weak ftrace_replace_code(int enable) > > /* Stop processing */ > > return; > > } > > + /* > > + * Some archs calls this function with interrupts or preemption > > + * disabled. Howeve, other archs don't and this can cause a typo "However". But could you write it this way: "However, for other archs that can preempt, this can cause an tremendous unneeded latency." Thanks! -- Steve > > + * tremendous unneeded latency. > > + */ > > Actually, could you move the comment up where schedulable gets set? > > Thanks! > > -- Steve > > > + if (schedulable) > > + cond_resched(); > > } while_for_each_ftrace_rec(); > > } > > >