* [PATCH] perf annotate: fix -i option, which is currently ignored.
@ 2015-05-29 12:06 Martin Liška
2015-05-29 12:42 ` Arnaldo Carvalho de Melo
2015-05-29 18:35 ` [tip:perf/core] perf annotate: Fix " tip-bot for Martin Liška
0 siblings, 2 replies; 12+ messages in thread
From: Martin Liška @ 2015-05-29 12:06 UTC (permalink / raw)
To: linux-kernel
Cc: Arnaldo Carvalho de Melo, Ingo Molnar, Peter Zijlstra,
Paul Mackerras
Assign input_name, received from program arguments, to
file data structure.
Signed-off-by: Martin Liska <mliska@suse.cz>
---
tools/perf/builtin-annotate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index c434e12..4e08c2d 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -289,7 +289,6 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
},
};
struct perf_data_file file = {
- .path = input_name,
.mode = PERF_DATA_MODE_READ,
};
const struct option options[] = {
@@ -346,6 +345,8 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
else if (annotate.use_gtk)
use_browser = 2;
+ file.path = input_name;
+
setup_browser(true);
annotate.session = perf_session__new(&file, false, &annotate.tool);
--
2.1.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 12:06 [PATCH] perf annotate: fix -i option, which is currently ignored Martin Liška
@ 2015-05-29 12:42 ` Arnaldo Carvalho de Melo
2015-05-29 12:43 ` Arnaldo Carvalho de Melo
2015-05-29 18:35 ` [tip:perf/core] perf annotate: Fix " tip-bot for Martin Liška
1 sibling, 1 reply; 12+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-05-29 12:42 UTC (permalink / raw)
To: Martin Liška
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras
Em Fri, May 29, 2015 at 02:06:44PM +0200, Martin Liška escreveu:
> Assign input_name, received from program arguments, to
> file data structure.
Doesn't apply:
pat[acme@zoo linux]$ patch -p1 < /wb/1.patch
patching file tools/perf/builtin-annotate.c
Hunk #1 FAILED at 289.
Hunk #2 FAILED at 346.
2 out of 2 hunks FAILED -- saving rejects to file
tools/perf/builtin-annotate.c.rej
[acme@zoo linux]$
What branch is this intended for? I.e. where have you cloned this from?
Yeah, I reproduced the problem and will try to figure this out, but
please always be explicit where to apply this.
- Arnaldo
> Signed-off-by: Martin Liska <mliska@suse.cz>
> ---
> tools/perf/builtin-annotate.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
> index c434e12..4e08c2d 100644
> --- a/tools/perf/builtin-annotate.c
> +++ b/tools/perf/builtin-annotate.c
> @@ -289,7 +289,6 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
> },
> };
> struct perf_data_file file = {
> - .path = input_name,
> .mode = PERF_DATA_MODE_READ,
> };
> const struct option options[] = {
> @@ -346,6 +345,8 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
> else if (annotate.use_gtk)
> use_browser = 2;
> + file.path = input_name;
> +
> setup_browser(true);
> annotate.session = perf_session__new(&file, false, &annotate.tool);
> --
> 2.1.4
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 12:42 ` Arnaldo Carvalho de Melo
@ 2015-05-29 12:43 ` Arnaldo Carvalho de Melo
2015-05-29 12:47 ` Martin Liška
0 siblings, 1 reply; 12+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-05-29 12:43 UTC (permalink / raw)
To: Martin Liška
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras
Em Fri, May 29, 2015 at 09:42:41AM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Fri, May 29, 2015 at 02:06:44PM +0200, Martin Liška escreveu:
> > Assign input_name, received from program arguments, to
> > file data structure.
>
> Doesn't apply:
>
> pat[acme@zoo linux]$ patch -p1 < /wb/1.patch
> patching file tools/perf/builtin-annotate.c
> Hunk #1 FAILED at 289.
> Hunk #2 FAILED at 346.
> 2 out of 2 hunks FAILED -- saving rejects to file
> tools/perf/builtin-annotate.c.rej
> [acme@zoo linux]$
>
> What branch is this intended for? I.e. where have you cloned this from?
>
> Yeah, I reproduced the problem and will try to figure this out, but
> please always be explicit where to apply this.
I tried first on perf/core, then on perf/urgent, and it didn't apply in
both cases :-(
- Arnaldo
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 12:43 ` Arnaldo Carvalho de Melo
@ 2015-05-29 12:47 ` Martin Liška
2015-05-29 12:51 ` Arnaldo Carvalho de Melo
2015-05-29 13:08 ` Arnaldo Carvalho de Melo
0 siblings, 2 replies; 12+ messages in thread
From: Martin Liška @ 2015-05-29 12:47 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras
On 05/29/2015 02:43 PM, Arnaldo Carvalho de Melo wrote:
> Em Fri, May 29, 2015 at 09:42:41AM -0300, Arnaldo Carvalho de Melo escreveu:
>> Em Fri, May 29, 2015 at 02:06:44PM +0200, Martin Liška escreveu:
>>> Assign input_name, received from program arguments, to
>>> file data structure.
>>
>> Doesn't apply:
>>
>> pat[acme@zoo linux]$ patch -p1 < /wb/1.patch
>> patching file tools/perf/builtin-annotate.c
>> Hunk #1 FAILED at 289.
>> Hunk #2 FAILED at 346.
>> 2 out of 2 hunks FAILED -- saving rejects to file
>> tools/perf/builtin-annotate.c.rej
>> [acme@zoo linux]$
>>
>> What branch is this intended for? I.e. where have you cloned this from?
>>
>> Yeah, I reproduced the problem and will try to figure this out, but
>> please always be explicit where to apply this.
>
> I tried first on perf/core, then on perf/urgent, and it didn't apply in
> both cases :-(
>
> - Arnaldo
>
Hello.
I've just pulled perf, patch is a diff against perf/perf/core.
$ git log --oneline | head -n2
95b12b3 perf annotate: fix -i option, which is currently ignored.
f1942b9 Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Thanks,
Martin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 12:47 ` Martin Liška
@ 2015-05-29 12:51 ` Arnaldo Carvalho de Melo
2015-05-29 13:08 ` Arnaldo Carvalho de Melo
1 sibling, 0 replies; 12+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-05-29 12:51 UTC (permalink / raw)
To: Martin Liška
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras
Em Fri, May 29, 2015 at 02:47:39PM +0200, Martin Liška escreveu:
> On 05/29/2015 02:43 PM, Arnaldo Carvalho de Melo wrote:
> >Em Fri, May 29, 2015 at 09:42:41AM -0300, Arnaldo Carvalho de Melo escreveu:
> >>Em Fri, May 29, 2015 at 02:06:44PM +0200, Martin Liška escreveu:
> >>>Assign input_name, received from program arguments, to
> >>>file data structure.
> >>
> >>Doesn't apply:
> >>
> >>pat[acme@zoo linux]$ patch -p1 < /wb/1.patch
> >>patching file tools/perf/builtin-annotate.c
> >>Hunk #1 FAILED at 289.
> >>Hunk #2 FAILED at 346.
> >>2 out of 2 hunks FAILED -- saving rejects to file
> >>tools/perf/builtin-annotate.c.rej
> >>[acme@zoo linux]$
> >>
> >>What branch is this intended for? I.e. where have you cloned this from?
> >>
> >>Yeah, I reproduced the problem and will try to figure this out, but
> >>please always be explicit where to apply this.
> >
> >I tried first on perf/core, then on perf/urgent, and it didn't apply in
> >both cases :-(
> >
> >- Arnaldo
> >
>
> Hello.
>
> I've just pulled perf, patch is a diff against perf/perf/core.
>
> $ git log --oneline | head -n2
> 95b12b3 perf annotate: fix -i option, which is currently ignored.
> f1942b9 Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Rechecking...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 12:47 ` Martin Liška
2015-05-29 12:51 ` Arnaldo Carvalho de Melo
@ 2015-05-29 13:08 ` Arnaldo Carvalho de Melo
2015-05-29 13:09 ` Martin Liška
2015-05-29 13:16 ` Arnaldo Carvalho de Melo
1 sibling, 2 replies; 12+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-05-29 13:08 UTC (permalink / raw)
To: Martin Liška
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras
Em Fri, May 29, 2015 at 02:47:39PM +0200, Martin Liška escreveu:
> On 05/29/2015 02:43 PM, Arnaldo Carvalho de Melo wrote:
> >Em Fri, May 29, 2015 at 09:42:41AM -0300, Arnaldo Carvalho de Melo escreveu:
> >>Yeah, I reproduced the problem and will try to figure this out, but
> >>please always be explicit where to apply this.
> >I tried first on perf/core, then on perf/urgent, and it didn't apply in
> >both cases :-(
> I've just pulled perf, patch is a diff against perf/perf/core.
> $ git log --oneline | head -n2
> 95b12b3 perf annotate: fix -i option, which is currently ignored.
> f1942b9 Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
[acme@zoo linux]$ git remote update tip
Fetching tip
[acme@zoo linux]$ git pull tip perf/core
>From git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* branch perf/core -> FETCH_HEAD
Already up-to-date.
[acme@zoo linux]$ git log --oneline | head -n2
f1942b96b4b4 Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
09a216ea5c52 perf: Remove myself from MAINTAINERS entry
[acme@zoo linux]$ grep '^\(Subject\|Message-ID\)' /wb/1.patch
Message-ID: <55685654.2010209@suse.cz>
Subject: [PATCH] perf annotate: fix -i option, which is currently ignored.
[acme@zoo linux]$
[acme@zoo linux]$ git am /wb/1.patch
Applying: perf annotate: fix -i option, which is currently ignored.
error: patch failed: tools/perf/builtin-annotate.c:289
error: tools/perf/builtin-annotate.c: patch does not apply
Patch failed at 0001 perf annotate: fix -i option, which is currently
ignored.
The copy of the patch that failed is found in:
/home/acme/git/linux/.git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
[acme@zoo linux]$
[acme@zoo linux]$ git reset --hard
HEAD is now at f1942b96b4b4 Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
[acme@zoo linux]$ patch -p1 < /wb/1.patch
patching file tools/perf/builtin-annotate.c
Hunk #1 FAILED at 289.
Hunk #2 FAILED at 346.
2 out of 2 hunks FAILED -- saving rejects to file
tools/perf/builtin-annotate.c.rej
[acme@zoo linux]$
I failed to find the problem, ouch, the patches looks the same, applying
by hand...
- Arnaldo
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 13:08 ` Arnaldo Carvalho de Melo
@ 2015-05-29 13:09 ` Martin Liška
2015-05-29 13:59 ` Arnaldo Carvalho de Melo
2015-05-29 13:16 ` Arnaldo Carvalho de Melo
1 sibling, 1 reply; 12+ messages in thread
From: Martin Liška @ 2015-05-29 13:09 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras
On 05/29/2015 03:08 PM, Arnaldo Carvalho de Melo wrote:
> Em Fri, May 29, 2015 at 02:47:39PM +0200, Martin Liška escreveu:
>> On 05/29/2015 02:43 PM, Arnaldo Carvalho de Melo wrote:
>>> Em Fri, May 29, 2015 at 09:42:41AM -0300, Arnaldo Carvalho de Melo escreveu:
>>>> Yeah, I reproduced the problem and will try to figure this out, but
>>>> please always be explicit where to apply this.
>
>>> I tried first on perf/core, then on perf/urgent, and it didn't apply in
>>> both cases :-(
>
>> I've just pulled perf, patch is a diff against perf/perf/core.
>
>> $ git log --oneline | head -n2
>> 95b12b3 perf annotate: fix -i option, which is currently ignored.
>> f1942b9 Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
>
> [acme@zoo linux]$ git remote update tip
> Fetching tip
> [acme@zoo linux]$ git pull tip perf/core
> From git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
> * branch perf/core -> FETCH_HEAD
> Already up-to-date.
> [acme@zoo linux]$ git log --oneline | head -n2
> f1942b96b4b4 Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
> 09a216ea5c52 perf: Remove myself from MAINTAINERS entry
> [acme@zoo linux]$ grep '^\(Subject\|Message-ID\)' /wb/1.patch
> Message-ID: <55685654.2010209@suse.cz>
> Subject: [PATCH] perf annotate: fix -i option, which is currently ignored.
> [acme@zoo linux]$
>
> [acme@zoo linux]$ git am /wb/1.patch
> Applying: perf annotate: fix -i option, which is currently ignored.
> error: patch failed: tools/perf/builtin-annotate.c:289
> error: tools/perf/builtin-annotate.c: patch does not apply
> Patch failed at 0001 perf annotate: fix -i option, which is currently
> ignored.
> The copy of the patch that failed is found in:
> /home/acme/git/linux/.git/rebase-apply/patch
> When you have resolved this problem, run "git am --continue".
> If you prefer to skip this patch, run "git am --skip" instead.
> To restore the original branch and stop patching, run "git am --abort".
> [acme@zoo linux]$
> [acme@zoo linux]$ git reset --hard
> HEAD is now at f1942b96b4b4 Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
> [acme@zoo linux]$ patch -p1 < /wb/1.patch
> patching file tools/perf/builtin-annotate.c
> Hunk #1 FAILED at 289.
> Hunk #2 FAILED at 346.
> 2 out of 2 hunks FAILED -- saving rejects to file
> tools/perf/builtin-annotate.c.rej
> [acme@zoo linux]$
>
> I failed to find the problem, ouch, the patches looks the same, applying
> by hand...
>
> - Arnaldo
>
That's really strange ;)
Anyway, thanks for application.
Martin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 13:08 ` Arnaldo Carvalho de Melo
2015-05-29 13:09 ` Martin Liška
@ 2015-05-29 13:16 ` Arnaldo Carvalho de Melo
1 sibling, 0 replies; 12+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-05-29 13:16 UTC (permalink / raw)
To: Martin Liška
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras
Em Fri, May 29, 2015 at 10:08:06AM -0300, Arnaldo Carvalho de Melo escreveu:
> [acme@zoo linux]$ patch -p1 < /wb/1.patch
> patching file tools/perf/builtin-annotate.c
> Hunk #1 FAILED at 289.
> Hunk #2 FAILED at 346.
> 2 out of 2 hunks FAILED -- saving rejects to file
> tools/perf/builtin-annotate.c.rej
> [acme@zoo linux]$
> I failed to find the problem, ouch, the patches looks the same, applying
> by hand...
Somehow your patch came with extra leading spaces, saw using 'set list'
on vim:
diff --git a/tools/perf/builtin-annotate.c
b/tools/perf/builtin-annotate.c$
index c434e12..4e08c2d 100644$
--- a/tools/perf/builtin-annotate.c$
+++ b/tools/perf/builtin-annotate.c$
@@ -289,7 +289,6 @@ int cmd_annotate(int argc, const char **argv, const
char *prefix __maybe_unused)$
^I^I},$
^I};$
^Istruct perf_data_file file = {$
-^I^I.path = input_name,$
^I^I.mode = PERF_DATA_MODE_READ,$
^I};$
^Iconst struct option options[] = {$
@@ -346,6 +345,8 @@ int cmd_annotate(int argc, const char **argv, const
char *prefix __maybe_unused)$
^Ielse if (annotate.use_gtk)$
^I^Iuse_browser = 2;$
$
+^Ifile.path = input_name;$
+$
^Isetup_browser(true);$
$
^Iannotate.session = perf_session__new(&file, false, &annotate.tool);$
-- $
2.1.4$
and then, if I remove those, it applies, please check your thunderbird
environment:
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
- Arnaldo
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 13:09 ` Martin Liška
@ 2015-05-29 13:59 ` Arnaldo Carvalho de Melo
2015-05-29 14:01 ` Martin Liška
0 siblings, 1 reply; 12+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-05-29 13:59 UTC (permalink / raw)
To: Martin Liška
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras
Em Fri, May 29, 2015 at 03:09:24PM +0200, Martin Liška escreveu:
> >I failed to find the problem, ouch, the patches looks the same, applying
> >by hand...
> That's really strange ;)
> Anyway, thanks for application.
I ended up wasting^Winvesting some more time on that, it seems it was
all thansk to Thunderbird ;-\
- Arnaldo
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 13:59 ` Arnaldo Carvalho de Melo
@ 2015-05-29 14:01 ` Martin Liška
2015-05-29 14:17 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 12+ messages in thread
From: Martin Liška @ 2015-05-29 14:01 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras
On 05/29/2015 03:59 PM, Arnaldo Carvalho de Melo wrote:
> Em Fri, May 29, 2015 at 03:09:24PM +0200, Martin Liška escreveu:
>>> I failed to find the problem, ouch, the patches looks the same, applying
>>> by hand...
>
>> That's really strange ;)
>> Anyway, thanks for application.
>
> I ended up wasting^Winvesting some more time on that, it seems it was
> all thansk to Thunderbird ;-\
>
> - Arnaldo
>
Ok, thank you.
I'm going to double check my preferences. Are there any recommended settings
in case of sending kernel patches?
Thanks,
Martin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] perf annotate: fix -i option, which is currently ignored.
2015-05-29 14:01 ` Martin Liška
@ 2015-05-29 14:17 ` Arnaldo Carvalho de Melo
0 siblings, 0 replies; 12+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-05-29 14:17 UTC (permalink / raw)
To: Martin Liška
Cc: linux-kernel, Ingo Molnar, Peter Zijlstra, Paul Mackerras,
Jiri Olsa
Em Fri, May 29, 2015 at 04:01:38PM +0200, Martin Liška escreveu:
> On 05/29/2015 03:59 PM, Arnaldo Carvalho de Melo wrote:
> >Em Fri, May 29, 2015 at 03:09:24PM +0200, Martin Liška escreveu:
> >>>I failed to find the problem, ouch, the patches looks the same, applying
> >>>by hand...
> >>That's really strange ;)
> >>Anyway, thanks for application.
> >I ended up wasting^Winvesting some more time on that, it seems it was
> >all thansk to Thunderbird ;-\
> Ok, thank you.
> I'm going to double check my preferences. Are there any recommended settings
> in case of sending kernel patches?
I think there are recommendation somewhere, perhaps in Documentation/?
Lemme check...
[acme@zoo linux]$ find Documentation/ -type f | xargs grep -i thunderbird
Documentation/email-clients.txt:Thunderbird (GUI)
Documentation/email-clients.txt:Thunderbird is an Outlook clone that likes to mangle text, but there are ways
Documentation/email-clients.txt: The easiest thing to do with Thunderbird and patches is to use an
Documentation/email-clients.txt:- Edit your Thunderbird config settings so that it won't use format=flowed.
Documentation/email-clients.txt: thunderbird's registry editor.
Documentation/zh_CN/email-clients.txt:Thunderbird (GUI)
Documentation/zh_CN/email-clients.txt:默认情况下,thunderbird很容易损坏文本,但是还有一些方法可以强制它变得更好。
Documentation/zh_CN/email-clients.txt:- 编辑你的Thunderbird配置设置来使它不要拆行使用:user_pref("mailnews.wraplength", 0);
Documentation/zh_CN/email-clients.txt:- 编辑你的Thunderbird配置设置,使它不要使用"format=flowed"格式:user_pref("mailnews.
Documentation/zh_CN/email-clients.txt:- 你需要使Thunderbird变为预先格式方式:
Documentation/zh_CN/email-clients.txt: 针对Thunderbird打补丁最简单的方法就是使用一个"external editor"扩展,然后使用你最喜欢的
[acme@zoo linux]$
Heya! Even in chinese:
"Thunderbird (GUI)
Thunderbird is an Outlook clone that likes to mangle text, but there are ways
to coerce it into behaving."
So, go read that and coerce it! :-P
- Arnaldo
^ permalink raw reply [flat|nested] 12+ messages in thread
* [tip:perf/core] perf annotate: Fix -i option, which is currently ignored.
2015-05-29 12:06 [PATCH] perf annotate: fix -i option, which is currently ignored Martin Liška
2015-05-29 12:42 ` Arnaldo Carvalho de Melo
@ 2015-05-29 18:35 ` tip-bot for Martin Liška
1 sibling, 0 replies; 12+ messages in thread
From: tip-bot for Martin Liška @ 2015-05-29 18:35 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, mingo, a.p.zijlstra, acme, mliska, tglx, paulus,
hpa
Commit-ID: 44848cdbbd1bacbac2a825920b699adc000d51c7
Gitweb: http://git.kernel.org/tip/44848cdbbd1bacbac2a825920b699adc000d51c7
Author: Martin Liška <mliska@suse.cz>
AuthorDate: Fri, 29 May 2015 14:06:44 +0200
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Fri, 29 May 2015 12:43:34 -0300
perf annotate: Fix -i option, which is currently ignored.
Assign input_name, received from program arguments, to file data
structure.
Signed-off-by: Martin Liska <mliska@suse.cz>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/55685654.2010209@suse.cz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/builtin-annotate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index c434e12..4e08c2d 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -289,7 +289,6 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
},
};
struct perf_data_file file = {
- .path = input_name,
.mode = PERF_DATA_MODE_READ,
};
const struct option options[] = {
@@ -346,6 +345,8 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
else if (annotate.use_gtk)
use_browser = 2;
+ file.path = input_name;
+
setup_browser(true);
annotate.session = perf_session__new(&file, false, &annotate.tool);
^ permalink raw reply related [flat|nested] 12+ messages in thread
end of thread, other threads:[~2015-05-29 18:35 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 12:06 [PATCH] perf annotate: fix -i option, which is currently ignored Martin Liška
2015-05-29 12:42 ` Arnaldo Carvalho de Melo
2015-05-29 12:43 ` Arnaldo Carvalho de Melo
2015-05-29 12:47 ` Martin Liška
2015-05-29 12:51 ` Arnaldo Carvalho de Melo
2015-05-29 13:08 ` Arnaldo Carvalho de Melo
2015-05-29 13:09 ` Martin Liška
2015-05-29 13:59 ` Arnaldo Carvalho de Melo
2015-05-29 14:01 ` Martin Liška
2015-05-29 14:17 ` Arnaldo Carvalho de Melo
2015-05-29 13:16 ` Arnaldo Carvalho de Melo
2015-05-29 18:35 ` [tip:perf/core] perf annotate: Fix " tip-bot for Martin Liška
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox