Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp874500pxv; Thu, 1 Jul 2021 11:14:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz26JluuSDxMC+PeGKuZaGd/2iji36pTh4d9RewkGR0LxEixpfnTjIqvD7GKvBiVV9Fl7Dl X-Received: by 2002:a02:6944:: with SMTP id e65mr976286jac.31.1625163255586; Thu, 01 Jul 2021 11:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625163255; cv=none; d=google.com; s=arc-20160816; b=B5lzI/BgK4cmGjGtRg6KqoCh523utIyWDssCgQZbS0G3Rj3obnLPMqL/sAXGDQFCRm nEepywIRSfLBnIHto0dKPmh1esig63qcjuTz+/V3KdhNixKejn3K/rw9dx4upbn523A6 YwEfeQMWRpJqH+bTQyx9vlwOSY5CPNHvbgdbHmsbDYjLZiralMEnn9bsx5Ki+jl3sRmr Zy/EP/RvbxzlSmIGXMy+PUx324mFEmF4IU2BnccKh981q8Y0chz73Jhis3YIc6BzjQYt 3yvv48voAWpRm0gLw3VFh0jKoNKO4tC6G8YWPhiALksNY0h2CzggfwGu4i6tg8i8jbHq bDQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L4frH1VEvCLr/97mRnBCvwJ264/bfXW3vbuxhIoApP4=; b=y+lie7GS5i3VBHJ0QQzUrvEb52o9Fg7WLowQZQGLB7VEYnnXmQo+9/HDuw23L9Cvw2 kN+i0moknewz9230IwEaEI8GSf/VMOneudBWP0UEPRNMC9ilvDn8MG/C42xDDdphdmD9 hoXL9vLn/FULJh92WbM/4mwTlpv+8sBxf2HCgTjFjIdJcHQKCTh0+8HI9Sns+Lc0Kzbk 4PPg49aaPqzJ2JH5HdFq6RA299tWt9SpIvpbImLB1IR9+oPbv1pBQ5eKRCPaRJ3hmG+8 DNu9/R91SSCsw6ax0R+DSPssHprSDZ52MyTSUDWXx+gkmnRkhhljLuKnck5qY1bfRlBO hYSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qA+se5SJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si558633ilg.4.2021.07.01.11.14.01; Thu, 01 Jul 2021 11:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qA+se5SJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233977AbhGASPc (ORCPT + 99 others); Thu, 1 Jul 2021 14:15:32 -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-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