From: Erik Faye-Lund <kusmabite@googlemail.com>
To: mingo@redhat.com, acme@redhat.com, jkacur@redhat.com,
a.p.zijlstra@chello.nl, rusty@rustcorp.com.au, efault@gmx.de,
mitake@dcl.info.waseda.ac.jp, imunsie@au1.ibm.com,
fweisbec@gmail.com, rostedt@goodmis.org,
hirofumi@mail.parknet.co.jp, imunsie@au.ibm.com,
tglx@linutronix.de, mhiramat@redhat.com, paulus@samba.org,
hpa@zytor.com, linux-kernel@vger.kernel.org, anton@samba.org,
tzanussi@gmail.com, arjan@linux.intel.com, lizf@cn.fujitsu.com,
tfransosi@gmail.com, xiaoguangrong@cn.fujitsu.com,
git@vger.kernel.org, amwang@redhat.com, davem@davemloft.net,
jaswinderrajput@gmail.com, ebmunson@us.ibm.com,
kosaki.motohiro@jp.fujitsu.com, mingo@elte.hu
Cc: linux-tip-commits@vger.kernel.org
Subject: Re: [tip:perf/core] perf: Fix endianness argument compatibility with OPT_BOOLEAN() and introduce OPT_INCR()
Date: Wed, 14 Apr 2010 17:12:40 +0200 [thread overview]
Message-ID: <j2k40aa078e1004140812s3d9fab4auf559b1e87af60b5b@mail.gmail.com> (raw)
In-Reply-To: <tip-c05556421742eb47f80301767653a4bcb19de9de@git.kernel.org>
I'd just like to point out that I'm commenting from the Git
pont-of-view, since this patch was CC'ed to the Git mailing-list.
On Wed, Apr 14, 2010 at 11:36 AM, tip-bot for Ian Munsie
<imunsie@au.ibm.com> wrote:
> Commit-ID: c05556421742eb47f80301767653a4bcb19de9de
> Gitweb: http://git.kernel.org/tip/c05556421742eb47f80301767653a4bcb19de9de
> Author: Ian Munsie <imunsie@au.ibm.com>
> AuthorDate: Tue, 13 Apr 2010 18:37:33 +1000
> Committer: Ingo Molnar <mingo@elte.hu>
> CommitDate: Wed, 14 Apr 2010 11:26:44 +0200
>
> perf: Fix endianness argument compatibility with OPT_BOOLEAN() and introduce OPT_INCR()
>
> Parsing an option from the command line with OPT_BOOLEAN on a
> bool data type would not work on a big-endian machine due to the
> manner in which the boolean was being cast into an int and
> incremented.
We don't use C99 features like the "bool"-type in Git, so this
shouldn't really be a problem in our end.
> For example, running 'perf probe --list' on a
> PowerPC machine would fail to properly set the list_events bool
> and would therefore print out the usage information and
> terminate.
>
I don't know what this 'perf'-thing is, but it sounds like it's some
external client for the parse-options-API that uses OPT_BOOLEAN
incorrectly.
Looking at linux-next.git, it seems so. The code in tools/perf/ seems
to use OPT_BOOLEAN with C99 bools, and it seems to have imported git's
parse-options API (in commit 0780060124011b94af55830939c86cc0916be0f5,
it seems).
I'd suggest either fixing the call-sites to use int, or just keeping
these changes in linux-next.git.
--
Erik "kusma" Faye-Lund
next prev parent reply other threads:[~2010-04-14 15:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1271147857-11604-1-git-send-email-imunsie@au.ibm.com>
[not found] ` <20100413.014821.34906166.davem@davemloft.net>
2010-04-14 9:28 ` [PATCH] perf: Fix endianness argument compatibility Ingo Molnar
2010-04-14 9:52 ` Jeff King
2010-04-14 9:36 ` [tip:perf/core] perf: Fix endianness argument compatibility with OPT_BOOLEAN() and introduce OPT_INCR() tip-bot for Ian Munsie
2010-04-14 15:12 ` Erik Faye-Lund [this message]
2010-04-14 15:12 ` Erik Faye-Lund
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=j2k40aa078e1004140812s3d9fab4auf559b1e87af60b5b@mail.gmail.com \
--to=kusmabite@googlemail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=amwang@redhat.com \
--cc=anton@samba.org \
--cc=arjan@linux.intel.com \
--cc=davem@davemloft.net \
--cc=ebmunson@us.ibm.com \
--cc=efault@gmx.de \
--cc=fweisbec@gmail.com \
--cc=git@vger.kernel.org \
--cc=hirofumi@mail.parknet.co.jp \
--cc=hpa@zytor.com \
--cc=imunsie@au.ibm.com \
--cc=imunsie@au1.ibm.com \
--cc=jaswinderrajput@gmail.com \
--cc=jkacur@redhat.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=kusmabite@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--cc=mhiramat@redhat.com \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=mitake@dcl.info.waseda.ac.jp \
--cc=paulus@samba.org \
--cc=rostedt@goodmis.org \
--cc=rusty@rustcorp.com.au \
--cc=tfransosi@gmail.com \
--cc=tglx@linutronix.de \
--cc=tzanussi@gmail.com \
--cc=xiaoguangrong@cn.fujitsu.com \
/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;
as well as URLs for NNTP newsgroup(s).