mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joel Fernandes <joel@joelfernandes.org>
To: "Zhuo, Qiuxu" <qiuxu.zhuo@intel.com>
Cc: paulmck@kernel.org, rcu@vger.kernel.org,
	linux-kernel@vger.kernel.org, kernel-team@meta.com,
	rostedt@goodmis.org
Subject: Re: [PATCH rcu 3/6] rcu/rcuscale: Move rcu_scale_*() after kfree_scale_cleanup()
Date: Thu, 11 May 2023 21:15:17 -0700	[thread overview]
Message-ID: <30F06C03-6950-4E2B-B3CE-3939B3CDD295@joelfernandes.org> (raw)
In-Reply-To: <IA1PR11MB6171B1AD7716B95B0B2C683889759@IA1PR11MB6171.namprd11.prod.outlook.com>



> On May 11, 2023, at 8:20 PM, Zhuo, Qiuxu <qiuxu.zhuo@intel.com> wrote:
> 
> 
>> 
>> From: Paul E. McKenney <paulmck@kernel.org>
>> ...
>>>> I wish diff was better at showing what really changed. The meld tool
>>>> can help but its gui...
>>>> 
>>>> 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 ? :)
>>>> 
>>> 
>>> 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 ;-).
>>> 
>>>      meld --diff ./rcuscale.c.before ./rcuscale.c.after
>> 
>> Nice, thank you both!
>> 
>> Another option is to check out the commit corresponding to this patch, then
>> 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.
> 
> Just had a good experiment with the "git blame -M" option: 
> - Used this option to prove a move-only commit quickly (no line tagged with that commit) (the fastest method to me). 
> - Then just only needed to quickly check the positions of the moved code chunk by myself (easy).  
> 
> Thank you, Paul for sharing this. It's very useful to me. 

Looks good to me as well and thank you both for sharing the tips.

 - Joel



> 
>> They say that another option is to use "git diff --color-moved", which colors
>> the changes.  That it does, but I am hard-pressed to work out exactly what
>> distinguishes a moved hunk from an added or removed hunk.
>> Fall colors vs. winter colors?  Exterior vs. interior?  Any particular decade in
>> the endless rush of changes to fashion?  Perhaps someone with normal color
>> vision (to say nothing of better fashion sense) could try it.
>> 
>> 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.  ;-)
>> 
>> You can also apparently choose colors using "color.diff.newMoved" and
>> "color.diff.oldMoved" when using "--color-moved=plain".
>> 
>> But "git diff --color-moved=dimmed-zebra" might be more to the point for
>> 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
> 
> Yup, this looks a bit painful for me too (need experiments to confirm hypotheses ...). 
> 
>> 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?
>> 
>>                            Thanx, Paul

  reply	other threads:[~2023-05-12  4:15 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-10 17:12 [PATCH rcu 0/6] Torture-test updates for v6.5 Paul E. McKenney
2023-05-10 17:12 ` [PATCH rcu 1/6] locktorture: Add long_hold to adjust lock-hold delays Paul E. McKenney
2023-05-10 17:12 ` [PATCH rcu 2/6] rcutorture: Correct name of use_softirq module parameter Paul E. McKenney
2023-05-10 17:12 ` [PATCH rcu 3/6] rcu/rcuscale: Move rcu_scale_*() after kfree_scale_cleanup() Paul E. McKenney
2023-05-11  5:23   ` Joel Fernandes
2023-05-11  7:01     ` Zhuo, Qiuxu
2023-05-11 13:56       ` Paul E. McKenney
2023-05-12  3:20         ` Zhuo, Qiuxu
2023-05-12  4:15           ` Joel Fernandes [this message]
2023-05-12 16:40             ` Paul E. McKenney
2023-05-13  9:52               ` Zhuo, Qiuxu
2023-05-13 15:05                 ` Paul E. McKenney
2023-05-14 13:38                   ` Zhuo, Qiuxu
2023-05-10 17:12 ` [PATCH rcu 4/6] rcu/rcuscale: Stop kfree_scale_thread thread(s) after unloading rcuscale Paul E. McKenney
2023-05-10 17:12 ` [PATCH rcu 5/6] doc/rcutorture: Add description of rcutorture.stall_cpu_block Paul E. McKenney
2023-05-11  5:47   ` Joel Fernandes
2023-05-11 18:11     ` Paul E. McKenney
2023-05-12  5:00       ` Joel Fernandes
2023-05-15 18:04         ` Paul E. McKenney
2023-05-10 17:12 ` [PATCH rcu 6/6] torture: Remove duplicated argument -enable-kvm for ppc64 Paul E. McKenney
2023-05-11  5:26   ` Joel Fernandes
2023-05-11  6:18     ` Zhouyi Zhou
2023-05-11 17:49       ` Paul E. McKenney
2023-05-11  5:48 ` [PATCH rcu 0/6] Torture-test updates for v6.5 Joel Fernandes
2023-05-11 18:12   ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30F06C03-6950-4E2B-B3CE-3939B3CDD295@joelfernandes.org \
    --to=joel@joelfernandes.org \
    --cc=kernel-team@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@kernel.org \
    --cc=qiuxu.zhuo@intel.com \
    --cc=rcu@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®