Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2603944rwb; Fri, 16 Dec 2022 04:24:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7eLp1H4bSzBlTUnVN9bNoRmrCnYa+GtqGPVbjYQOPyoBaYzTYpEokRTKCGK3G3Yx5A+3Ht X-Received: by 2002:a17:907:76dc:b0:7c0:deb3:596a with SMTP id kf28-20020a17090776dc00b007c0deb3596amr14187279ejc.70.1671193496867; Fri, 16 Dec 2022 04:24:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671193496; cv=none; d=google.com; s=arc-20160816; b=cm97A/lvsd2YT5IdL5JQt65MXVNVdBpDcqa7yB8R532oGjRLlPWZEWae7Msb1rHYba vFrBA7SsNLUY71Ivzx9dfv6AGLGt+ccok3Uy2zw/VHnJJ7Dmkxb4HYCE+wMnZAeCKtNA w+lCK8WtwH3RcxWJHeOpxw4ha1ZG8tQr2lAbGu3e/81Ew/Cv7d3E6x6YPOfk6WhM6yYu Q+njEEB5OYLH2d13QORS3l5jWT6F0d1O2msmvNGhwAzSwYZTMhkMVg69G9zRCyYWj+Uk rMFrNSC4hdJcjCHI8dIHkkGqpcR37THiNccFQBmyXShPgM/cI91Y5aGUa3/ns7dUw2KC +Idw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=r4dSz63xaZ8KYJfcH9LGLxfbgKWRmvqGu74tZMB81rs=; b=uQ+aFFhCRLvpR2UvydQUfTHmVsShLhJCLS0SMzxsG+r8F+4SrywwRYF5zrYPU2mny4 d81G1BwJ90Llvm5wl3fQfithr4NznnJgrXBpcMvE7bv3ckZMkqcafXmmQLl00DLzNLe5 Fz9tv10BsAu65za53QHFvlXJTqrwdrE2/NpbeceZB1Rg7jnS+S/3QYQGUVz5RH7DBjef 74UPNlA1d7BqH+kTR7EGSMOLcICSth+IEYyjmo6EPF0oIR834asganblUG7jd630BQsq rYH3I4pbhL9MdLUdCSYrbPbwdHK0JTV1FsUVH3QLLDcPP+7q+ngGQwVs4gYlMLjMxDYy 6Bdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds9-20020a170907724900b007c14e6f3ae8si2544877ejc.473.2022.12.16.04.24.40; Fri, 16 Dec 2022 04:24:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230504AbiLPL5t convert rfc822-to-8bit (ORCPT + 68 others); Fri, 16 Dec 2022 06:57:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiLPL5p (ORCPT ); Fri, 16 Dec 2022 06:57:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B246043845 for ; Fri, 16 Dec 2022 03:57:44 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 17BD3620C2 for ; Fri, 16 Dec 2022 11:57:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B8E5C433EF; Fri, 16 Dec 2022 11:57:42 +0000 (UTC) Date: Fri, 16 Dec 2022 06:57:39 -0500 From: Steven Rostedt To: Wenchao Hao Cc: Masami Hiramatsu , Andrew Morton , , , , Subject: Re: [PATCH] cma:tracing: Print alloc result in trace_cma_alloc_finish Message-ID: <20221216065739.30511197@gandalf.local.home> In-Reply-To: <4e9f9b32-7835-e4c5-55cb-9db82c98f9c1@huawei.com> References: <20221208142130.1501195-1-haowenchao@huawei.com> <4e9f9b32-7835-e4c5-55cb-9db82c98f9c1@huawei.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Dec 2022 19:47:59 +0800 Wenchao Hao wrote: > On 2022/12/8 22:21, Wenchao Hao wrote: > > The result of allocation is not printed in trace_cma_alloc_finish > > now, while it's important to do it so we can set filters to catch > > specific error on allocation or trigger some operations on specific > > error. > > > > Although we have printed the result in log, but the log is > > conditional and could not be filtered by tracing event. > > > > What's more, it introduce little overhead to print this result. > > The result of allocation is named as errorno in trace. > > > > Signed-off-by: Wenchao Hao > > --- > > pinging From a tracing point of view, I see nothing wrong with it. Reviewed-by: Steven Rostedt (Google) But I believe Andrew needs to take it. -- Steve