Re: [PATCH] perf record: Remove the '--(null)' long_name for --list-opts

2015-02-27 Thread Yunlong Song
On 2015/2/19 1:56, Ingo Molnar wrote: > > * Yunlong Song wrote: > >> If the long_name of a 'struct option' is defined as NULL, --list-opts >> will incorrectly print '--(null)' in its output. As a result, '--(null)' >> will finally appear in the case of bash completion, e.g. 'perf record --'. >>

Re: [PATCH] perf record: Remove the '--(null)' long_name for --list-opts

2015-02-27 Thread Yunlong Song
On 2015/2/19 1:56, Ingo Molnar wrote: * Yunlong Song yunlong.s...@huawei.com wrote: If the long_name of a 'struct option' is defined as NULL, --list-opts will incorrectly print '--(null)' in its output. As a result, '--(null)' will finally appear in the case of bash completion, e.g. 'perf

Re: [PATCH] perf record: Remove the '--(null)' long_name for --list-opts

2015-02-18 Thread Ingo Molnar
* Yunlong Song wrote: > If the long_name of a 'struct option' is defined as NULL, --list-opts > will incorrectly print '--(null)' in its output. As a result, '--(null)' > will finally appear in the case of bash completion, e.g. 'perf record --'. > > Example: > > Before this patch: > > $

Re: [PATCH] perf record: Remove the '--(null)' long_name for --list-opts

2015-02-18 Thread Ingo Molnar
* Yunlong Song yunlong.s...@huawei.com wrote: If the long_name of a 'struct option' is defined as NULL, --list-opts will incorrectly print '--(null)' in its output. As a result, '--(null)' will finally appear in the case of bash completion, e.g. 'perf record --'. Example: Before this

[PATCH] perf record: Remove the '--(null)' long_name for --list-opts

2015-02-16 Thread Yunlong Song
If the long_name of a 'struct option' is defined as NULL, --list-opts will incorrectly print '--(null)' in its output. As a result, '--(null)' will finally appear in the case of bash completion, e.g. 'perf record --'. Example: Before this patch: $ perf record --list-opts --event --filter

[PATCH] perf record: Remove the '--(null)' long_name for --list-opts

2015-02-16 Thread Yunlong Song
If the long_name of a 'struct option' is defined as NULL, --list-opts will incorrectly print '--(null)' in its output. As a result, '--(null)' will finally appear in the case of bash completion, e.g. 'perf record --'. Example: Before this patch: $ perf record --list-opts --event --filter