Received: by 10.192.165.148 with SMTP id m20csp4998309imm; Tue, 24 Apr 2018 11:53:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx49LxZ7zboPnNFrj4nQv57XvXqmOjd3BKlO/d+Bg8s5w3mEJOdnA9Stnm/Si0UH1R1g04tES X-Received: by 10.101.97.162 with SMTP id i2mr7187462pgv.219.1524596030443; Tue, 24 Apr 2018 11:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524596030; cv=none; d=google.com; s=arc-20160816; b=N9dZbanwW0rNOw1fqSBR7KSybcTCR0u33O+t+bdMDQadW1mHgjoOVi6iPUJsgveTzl CBzVG6s9wpCZOtzytfAKEXnXF9N0HJIuYQgFDMcRzalugFtzgByxBNlNE1E05Jmo2mXP sq8Be0hYaqWa3o4HfbBZk9GideOk5MhunsMBP1M0zDw7QDsa+EDbC2NgYBbTWSDpEP1E 4v623eNCaH+dXwtfqApi6tInYsltCNOoJc9S47y3lxdvA57D1/02algazyOtVe4PYx3y dm7pl3nRwWpA92q2zBfumRi19DfxwAAjqXoHpYoTVOKljmxHouBRdahoJeZ/FG31rE4p gVFQ== 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=dGpZ7kg9HRSiNG4mxwe1Dhyz3TiHbkTsHwBGGcpzOkk=; b=03n1pWePKr6IjGJU5mxhwLWDngC3Y/1M3dNGhRm2R/SZBMvh+JKMo9X3NxtK1B3ezi 0v8q2VqZKn9CwhYvrRGREGK+be//XvXPC8RJKY25ClLS6jRt15xdu5FykWtNj0iz2yMJ 4gug8jW0e3hMHaQ6xeO0zq9G6cSCJBv/Ktt8oCsbc6oo2jEf3OylifooH94iX2jVYUt2 OLsuHFgxywreG0M49/U9dn3p6YQ31woxvXqv7uH7isShbqlcrb2mSr0Ogq7q1N5QxP6r xL2+umfGucWO1WvCRgZbiniLCUYyIIQqGuiY4ghyvZQ9v3VSlfJro1ADA59r0tEgY2Cx TTiA== 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 v123si12067262pgv.545.2018.04.24.11.53.36; Tue, 24 Apr 2018 11:53:50 -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 S1752789AbeDXSvD (ORCPT + 99 others); Tue, 24 Apr 2018 14:51:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:41560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbeDXSvB (ORCPT ); Tue, 24 Apr 2018 14:51:01 -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 EF37D21774; Tue, 24 Apr 2018 18:50:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF37D21774 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: Tue, 24 Apr 2018 14:50:56 -0400 From: Steven Rostedt To: Wei Wang Cc: gregkh@linuxfoundation.org, wei.vince.wang@gmail.com, Ingo Molnar , Andrew Morton , Kees Cook , Peter Zijlstra , Thomas Gleixner , Crt Mori , Alexei Starovoitov , Randy Dunlap , linux-kernel@vger.kernel.org Subject: Re: [PATCH] do not call trace_printk on non-debug build Message-ID: <20180424145056.7c29ea18@gandalf.local.home> In-Reply-To: <20180424180812.215900-1-wvw@google.com> References: <20180424180812.215900-1-wvw@google.com> X-Mailer: Claws Mail 3.16.0 (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, 24 Apr 2018 11:08:10 -0700 Wei Wang wrote: > From: Wei Wang > > trace_printk will cause trace_printk_init_buffers executed in kernel > start, which will increase memory and also show bad warnings in > production kernel. > NAK! Where is trace_printk() being used to trigger this? trace_printk() is to be added while debugging, but one should not need to enable DEBUG to use it. But it should be removed when finished. -- Steve > Signed-off-by: Wei Wang