From: Michal Marek <mmarek@suse.cz>
To: Jason Cooper <jason@lakedaemon.net>,
Andrew Morton <akpm@linux-foundation.org>,
Joe Perches <joe@perches.com>,
"Yann E . MORIN" <yann.morin.1998@free.fr>,
Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2] scripts: objdiff: detect object code changes between two commits
Date: Sat, 29 Mar 2014 22:31:28 +0100 [thread overview]
Message-ID: <53373BB0.9060403@suse.cz> (raw)
In-Reply-To: <1395627288-19975-1-git-send-email-jason@lakedaemon.net>
Dne 24.3.2014 03:14, Jason Cooper napsal(a):
>
> objdiff can be used in conjunction with a git rebase to confirm that
> each commit made no changes to the resulting object code. It has the
> same return values as diff(1).
This looks nice. Just a few comments below:
> +# usage example:
> +#
> +# $ git checkout COMMIT_A
> +# $ <your fancy build command here>
> +# $ ./scripts/objdiff record path/to/*.o
> +#
> +# $ git checkout COMMIT_B
> +# $ <your fancy build command here>
> +# $ ./scripts/objdiff record path/to/*.o
> +#
> +# $ ./scripts/objdiff diff COMMIT_A COMMIT_B
> +# $
> +
> +# And to clean up (everything is in /tmp/objdiff-*)
> +# $ ./scripts/objdiff clean all
Can you change it to use some path in the source tree, like .tmp_objdiff
or so? Then you can have make distclean remove it and you can avoid the
fixed paths in /tmp.
> + # force rebuild
> + rm -f "$f"
Is this working around some kbuild bug, or is it more a "just in case?"
One usually assumes that "record" is a readonly operation and can be
repeated.
Thanks,
Michal
next prev parent reply other threads:[~2014-03-29 21:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-24 2:14 [PATCH V2] scripts: objdiff: detect object code changes between two commits Jason Cooper
2014-03-29 21:31 ` Michal Marek [this message]
2014-04-07 18:30 ` [PATCH V3] " Jason Cooper
2014-04-08 14:43 ` Michal Marek
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=53373BB0.9060403@suse.cz \
--to=mmarek@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=jason@lakedaemon.net \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=yann.morin.1998@free.fr \
/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