Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9744404rwr; Thu, 11 May 2023 21:20:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5SywgW0XSmiAzHqjSz/U0nxYJL0HpVOiztjEEnW/UovhBxTzTm0eGgdi6RyjnjDVfg/6nP X-Received: by 2002:a17:902:ed8e:b0:1a9:765c:77ac with SMTP id e14-20020a170902ed8e00b001a9765c77acmr23158166plj.7.1683865199602; Thu, 11 May 2023 21:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683865199; cv=none; d=google.com; s=arc-20160816; b=qPau7yNLu0rCT2WyvvypWbOWy0sNVM0p5wkuNodeMdAir+WrsU8isa36LrOEWVis6l bI5Hymdhjq4hBQVDcIyKm1gv1C3vtwqocld7a18R7s4RaNOYTD364M055CDa/PHt0YOY /ky49QPO39tmYKsZCp2MbKxcHXelg8FYPGUy6k6eOwSHnEw1X9V7FeDrZaxI4Nv2hVJT WyVleUhNJfcNzzGd5igaat7wjPevFza2X2wDnx2Nwf0W3Tm13KlthJRLGeByJWojgA5e X5/vq9629+GwUl3AkU5ywdoM/FL5JlhYmccqkJfHf8pmjehB11tQYkRc9x5Pu1k7S38H 5mKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:cc:references:message-id:date :subject:mime-version:from:content-transfer-encoding:dkim-signature; bh=4TPdIu92hVjkNl8T0IUuailFGe8fCvhTrnZtqlSjp5M=; b=n1irlokr86zOPDaW03wPm8qiHNeIOGzzLZn1SPhxW50El85U7JGpOb7OhryxZutQ9I +hXxyOOdHCTe2z+knkUjnu77EQUNS/koyZnuCTUZzCdoYGRwghZJZ/SyFTEFDN6YpV20 17QTT3VqgF5GAa2jaLPnn4GN4uhHQWWDJxXi2HJoH3HK6tFGyeujU+9vna6cRgnoWg92 GKep04ry/95B4SYm9XTAEFpb++m0BKEh+90ziWTFLJb2bAhV+/hYXooviobSK0G0M4bg cUN+0S93rzuqpJtWd+nSpMaA9h5SSfYQdxk8miugc3QYByDaYdjwFS4WcAJ4ZAxUG+2D Aarg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=xxyeGAJg; 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 u10-20020a17090341ca00b001ac6d4cc269si9081956ple.396.2023.05.11.21.19.42; Thu, 11 May 2023 21:19:59 -0700 (PDT) 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; dkim=pass header.i=@joelfernandes.org header.s=google header.b=xxyeGAJg; 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 S232858AbjELEPe (ORCPT + 99 others); Fri, 12 May 2023 00:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjELEPc (ORCPT ); Fri, 12 May 2023 00:15:32 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E254A4EFE for ; Thu, 11 May 2023 21:15:30 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-3f4fdf564d1so118811cf.1 for ; Thu, 11 May 2023 21:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1683864930; x=1686456930; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=4TPdIu92hVjkNl8T0IUuailFGe8fCvhTrnZtqlSjp5M=; b=xxyeGAJgdIOdxBYoDYVaY2zURP1w2xYTzIUDxH9Rq/Fm++I/WlE+bKTH1iuDuD9z7U zXdARcF39ulLFdhT5lKddCnZnAJcnOJFYgYAPTb6JCzg+JRomdwxLmF8Lo9IWR+eF0mN fVyd6o9RW6+aVGcxjWhcdDctEpiQyjT1uLs/g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683864930; x=1686456930; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4TPdIu92hVjkNl8T0IUuailFGe8fCvhTrnZtqlSjp5M=; b=T4GfYktuQ7KOdpOPx0gHKhELWY/BiZ1wiFjMinpJ0I6b1DOpYqzwYdHmmGpX5pgkm6 KfH/7YWDS76pz81FHQ6GnZu8U27AVT1Hu0wNAtSqCuMkWM+qKbQNNVqgqfqd62vZwvCl ewzNHtkR8SYAThixYd174XN2Koi6i8lLuktz/c/3VYIbr8+L0oEbukZXjXxXkWB2OLqU mq449NYTAUh0rb6LcPcKhRaZf9t9/cfj/hIb2aTsbEzIJAtkg6+68nzf6olrYm322thl lGLc4MXECwO0WRc/0pxugkAQszP8g1JssG22GXKsofTdsiFt2hiHKZKES59QC4ACB4mj u2Vw== X-Gm-Message-State: AC+VfDyZH8sZHMbkVBTKPL9WmdXe1U5ZGszF8c/4CVClr4tI8Xh4C7B8 UfrEz3Pa01AZ84Gp/krXnozm1E+2jSNSqqD0G6UIdQ== X-Received: by 2002:a05:622a:1045:b0:3ef:5847:d7c8 with SMTP id f5-20020a05622a104500b003ef5847d7c8mr36977284qte.44.1683864930004; Thu, 11 May 2023 21:15:30 -0700 (PDT) Received: from smtpclient.apple (123.sub-174-208-224.myvzw.com. [174.208.224.123]) by smtp.gmail.com with ESMTPSA id bz13-20020a05622a1e8d00b003e8160cf93asm2775677qtb.80.2023.05.11.21.15.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 May 2023 21:15:29 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Joel Fernandes Mime-Version: 1.0 (1.0) Subject: Re: [PATCH rcu 3/6] rcu/rcuscale: Move rcu_scale_*() after kfree_scale_cleanup() Date: Thu, 11 May 2023 21:15:17 -0700 Message-Id: <30F06C03-6950-4E2B-B3CE-3939B3CDD295@joelfernandes.org> References: Cc: paulmck@kernel.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org In-Reply-To: To: "Zhuo, Qiuxu" X-Mailer: iPhone Mail (20B101) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 May 11, 2023, at 8:20 PM, Zhuo, Qiuxu wrote: >=20 > =EF=BB=BF >>=20 >> From: Paul E. McKenney >> ... >>>> I wish diff was better at showing what really changed. The meld tool >>>> can help but its gui... >>>>=20 >>>> Should I run meld later (I'm out at a conference so no access to >>>> meld-capable >>>> machines) or are we sufficiently confident that the lines were moved >>>> as-is ? :) >>>>=20 >>>=20 >>> Thank you, Joel for this concern. Good to know the meld diff GUI tool. >>> I just run the command below and confirmed that the lines were moved >>> as-is: rcu_scale_{cleanup,shutdown}() follows kfree_scale_cleanup(). >>> You may double check it ;-). >>>=20 >>> meld --diff ./rcuscale.c.before ./rcuscale.c.after >>=20 >> Nice, thank you both! >>=20 >> Another option is to check out the commit corresponding to this patch, th= en >> do "git blame -M kernel/rcu/rcuscale.c". Given a move-only commit, there= >> should be no line tagged with this commit's SHA-1. >=20 > Just had a good experiment with the "git blame -M" option:=20 > - Used this option to prove a move-only commit quickly (no line tagged wit= h that commit) (the fastest method to me).=20 > - Then just only needed to quickly check the positions of the moved code c= hunk by myself (easy). =20 >=20 > Thank you, Paul for sharing this. It's very useful to me.=20 Looks good to me as well and thank you both for sharing the tips. - Joel >=20 >> They say that another option is to use "git diff --color-moved", which co= lors >> the changes. That it does, but I am hard-pressed to work out exactly wha= t >> distinguishes a moved hunk from an added or removed hunk. >> Fall colors vs. winter colors? Exterior vs. interior? Any particular de= cade in >> the endless rush of changes to fashion? Perhaps someone with normal colo= r >> vision (to say nothing of better fashion sense) could try it. >>=20 >> On the other hand: "default: Is a synonym for zebra. This may change to a= >> more sensible mode in the future." So maybe it is not just me. ;-) >>=20 >> You can also apparently choose colors using "color.diff.newMoved" and >> "color.diff.oldMoved" when using "--color-moved=3Dplain". >>=20 >> But "git diff --color-moved=3Ddimmed-zebra" might be more to the point fo= r >> someone like me. I would need to experiment with it more in order to >> confirm my hypotheses about what it is doing. To say nothing of building= >=20 > Yup, this looks a bit painful for me too (need experiments to confirm hypo= theses ...).=20 >=20 >> trust in it. Plus I have to open a color terminal to use it effectively.= >> So maybe "git blame -M" continues to be the tool for me? >>=20 >> Thanx, Paul