From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF307C11F69 for ; Thu, 1 Jul 2021 18:13:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C879161422 for ; Thu, 1 Jul 2021 18:13:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233992AbhGASPd (ORCPT ); Thu, 1 Jul 2021 14:15:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230014AbhGASPc (ORCPT ); Thu, 1 Jul 2021 14:15:32 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 917DBC061762 for ; Thu, 1 Jul 2021 11:13:01 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d12so6641855pfj.2 for ; Thu, 01 Jul 2021 11:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=L4frH1VEvCLr/97mRnBCvwJ264/bfXW3vbuxhIoApP4=; b=qA+se5SJjZr+edTPOtLJ7h0aK2mPbTeo9tni19LQFLZuBI+p3YeyI7z/yPAsj12icH 7KhYeS0BPjRms2/R92sWpz4TiT5RJ9mrlMyg8HCT2QcpGyZ58ET7r4mAa3k4Drpr+Bb3 IfY9Gp7+ov4NClwHadaJqCz+hXCppAnHa3UmocoYKqmhH0TbOD+8Yn5aZIyT78ZRSSI5 otiTRLiW+MfEBcx0p0eLWitE5WsVroKp0vbBjWKncZ5dyzTmm2kwl2iIHAqsyFjf5rq9 ZN+OYlmgboGfR9wCF37Q+VH2aaI4krgxWU1h60MFRwIDt9V5opaKYxwZ5d9spW5i62X2 NINw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=L4frH1VEvCLr/97mRnBCvwJ264/bfXW3vbuxhIoApP4=; b=oC3T4olFHfN6AQqofDaTINozpDz095sC7EA+i516ycN+56F8aKz9FR5mBzsTF9/fQd V/JvFEWsykKrSQT6zOARagBav/un1k7uQZyg/diJhWUfSM3q9ybQR0Sxr4KVk/uUc5Xs KP69voLEA1WYyrPpJYJJ8wIJraLaxYae/DGxWs7MQ6vseeK+vIRh8Ex/DpSzMIX60mdi LJ6d+QA3rwb9IkJQesJJCoW85/tE80KvFLbxAoGUoFsOCJVxiM4zKz+BqrKHDpZwPQ1i HQUu7xKFpNqhTw8J1puLRipKL7Akc4tIQnryMm6WCnRmS/k+VD7aXFdYQErsj0imQoQ9 vF+A== X-Gm-Message-State: AOAM530oGtT3OcIEMgwjVVKSrahyScqBOcZKrncTKOtfL1BevJ2CXhDA 8b/+HSH2Bn9qzqjXgzuKc6R+AA== X-Google-Smtp-Source: ABdhPJyxS2vr04XyiD8xgxoJw4VetJ6DJ10MV3IeZpelDf+BgQOvWN3SJQFtJxjKNv4LWx4oiHeI5w== X-Received: by 2002:a63:2dc6:: with SMTP id t189mr827230pgt.442.1625163180986; Thu, 01 Jul 2021 11:13:00 -0700 (PDT) Received: from google.com ([2620:15c:280:201:558a:406a:d453:dbe5]) by smtp.gmail.com with ESMTPSA id m10sm649105pff.215.2021.07.01.11.12.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 11:13:00 -0700 (PDT) Date: Thu, 1 Jul 2021 11:12:54 -0700 From: Paul Burton To: Steven Rostedt Cc: Joel Fernandes , linux-kernel@vger.kernel.org, Ingo Molnar , stable@vger.kernel.org Subject: Re: [PATCH 1/2] tracing: Simplify & fix saved_tgids logic Message-ID: References: <20210630003406.4013668-1-paulburton@google.com> <20210701140754.5847a50f@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210701140754.5847a50f@oasis.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 01, 2021 at 02:07:54PM -0400, Steven Rostedt wrote: > On Thu, 1 Jul 2021 10:31:59 -0700 > Paul Burton wrote: > > > I was tempted to just add the redundant checks anyway (pick your battles > > and all) but for show() in particular it wound up making things seem > > non-sensical to me ("display the value describing this non-NULL pointer > > into tgid_map only if tgid_map is not NULL?"). > > I agree with your assessment, and will actually take your first patch, > as I don't think the comment is that helpful, Thanks - agreed, the comment doesn't add much. > not to mention, we don't > use '//' comments in the kernel, so that would have to be changed. D'oh! Apparently a year away from the kernel melted my internal style checker. Interestingly though, checkpatch didn't complain about this as I would have expected... Thanks, Paul