Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8640148imu; Tue, 4 Dec 2018 11:37:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/XmD4xwvKcI4SGZ2Dieyp8qWwvffl+DFj4nx242w40v3R0B8f+bgj1sU8WjwCMYMPidlbim X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr19869588plb.70.1543952224346; Tue, 04 Dec 2018 11:37:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543952224; cv=none; d=google.com; s=arc-20160816; b=EjwO3NqD9bnYpt225HK9kZEx0zm5IXonvCDMRCFPhKtddXZuicB/q+v2GidXmVlu0g N3qis+qu+c0TqkRLrnSs7hj+ueobZ/615gbUzCMorJHWg83xtBCBdZaW4J0rdwnR/1Kb dOWRJAyCFf+Kvnqrgd9VA17JxImCuVIb0j6YN9cER4RAtt/Smm7l/9gozqsuAwqUQxw4 hwrKi64xlFcWpSq1JbxelHB1GqLLrsCJ+JBnCqu0CSRDDKMXD1OzolH23oz7k4BB8hV/ IUCily452tNHUmshtvEY7+g2FWCDZpEzZh0gQhooMYaV7SUJVRq5oJ7bwZOHgRw/pVZY Z3vQ== 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; bh=/1NIxcvk+5AFzgbsHZc73ZPCu1R9fyAveUbRPuyWU1Q=; b=aTK5sQvfi7NccPoHsVcSSmYaNjqSVxTg7e54kTX+kjlfD4gvkB7rVUbKfAHIIXMiHX iuI/nKmYgNlkY/hIG4NL3IZL0drIzy/NzUj7obcQtJXuOABDaCKROaxRW9U2izL2T1dU mj/d/vvGsvnd49UoXrohV2wqIUqp+Ha4m7CUlQgyxAc5qrRnZsXAByH0joX1fQuK6R8N anYQAV9nx1nVq6LdvG1uuljnNmvyANKaCc7RGDNdyhJGjIvSwMBeYQcbhA1hkHYd9UCA N6OEDAmBKJwo49620uRsXx4GWERM4vY8hP5fPmW4M3+P+HSYECt9fiVOqfEaU5PyKLYs HVTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HJDIZrSs; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w185si19434964pfw.122.2018.12.04.11.36.48; Tue, 04 Dec 2018 11:37:04 -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=@linaro.org header.s=google header.b=HJDIZrSs; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726258AbeLDTeZ (ORCPT + 99 others); Tue, 4 Dec 2018 14:34:25 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:32778 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbeLDTeY (ORCPT ); Tue, 4 Dec 2018 14:34:24 -0500 Received: by mail-yb1-f196.google.com with SMTP id f125so2616251ybc.0 for ; Tue, 04 Dec 2018 11:34:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/1NIxcvk+5AFzgbsHZc73ZPCu1R9fyAveUbRPuyWU1Q=; b=HJDIZrSsR8+cB+eJxgq9K3WS3iocAgz9teSga4gMdwUnTxG2uub0niriPVyGehWq1M pCx+FzxMfXN6vWdDpGb0DiXQAugaDcGAt88830qdXcaBDtdiXs7/Xu0BRxct0+BjqXiQ o5rjTJNLv30ULCOE7zK+jaA8PQ7+va1SiwDuc= 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=/1NIxcvk+5AFzgbsHZc73ZPCu1R9fyAveUbRPuyWU1Q=; b=tKvZ6vpwXS0LD8FJ9kHbBtfAs7eszJm8zP5Jays0pTeX7Ca7dnFcJiMcsFEDT5kcPP JdNBMvIzmMGGip8EUo5/2YvyAd1zliyP4Y6rssBDk8ZogLgS2WghOtoZ+/kWTrTOl8M6 AeE5d1g5yygvExCn5NxJAMUtm5o34+M/Y28XZosYmKc+PurePWoTfSWVGfM4tAVWBLo3 TQO8nuNV4i2pKMCZ1d6HS/r/VUPXVMX7y2pFuKgv8LeyZLtVh71c8mIfzHsNvalbNBzW t4HwDja0pOXnnRg3Sq+jrqCRpyc1SIuqGHVtA6ajYh0fH2yKuHFDN48UrjCU9H1fyoJQ OATA== X-Gm-Message-State: AA+aEWZ5XbjaC9TAdYtsTpaW/1+0t9SbKoYD5XLt8+FSni7nxTS8Q3vQ JYwuza5403tdsb8U+Spk7iJwWZiocM9WXkIvY9ggIw== X-Received: by 2002:a25:2157:: with SMTP id h84-v6mr19869453ybh.198.1543952063778; Tue, 04 Dec 2018 11:34:23 -0800 (PST) MIME-Version: 1.0 References: <20181204191229.6851-1-anders.roxell@linaro.org> <20181204141908.76e7afa5@vmware.local.home> <20181204142142.4e2e2169@vmware.local.home> <20181204142918.12c087b4@vmware.local.home> In-Reply-To: <20181204142918.12c087b4@vmware.local.home> From: Anders Roxell Date: Tue, 4 Dec 2018 20:34:12 +0100 Message-ID: Subject: Re: [PATCH] tracing: add cond_resched to ftrace_replace_code() To: rostedt@goodmis.org Cc: mingo@redhat.com, Catalin Marinas , Will Deacon , Kees Cook , Arnd Bergmann , Linux Kernel Mailing List , Linux ARM 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 Tue, 4 Dec 2018 at 20:29, Steven Rostedt wrote: > > On Tue, 4 Dec 2018 20:25:31 +0100 > Anders Roxell wrote: > > > On Tue, 4 Dec 2018 at 20:21, Steven Rostedt wrote: > > > > > > 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." > > > > > > > I'll fix this and move it up (where I added it in the first place but > > moved it) =) > > > > I also noticed a grammar issue: > > "Some archs call this function .." I will fix that. Cheers, Anders