Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1636138
| From | "Jin, Yao" <yao.jin@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] perf report: Make --branch-history work without callgraphs(-g) option in perf record |
| Date | 2017-05-05 05:20 +0200 |
| Message-ID | <tDBWG-4lL-7@gated-at.bofh.it> (permalink) |
| References | <tDcYh-4mS-1@gated-at.bofh.it> <tDkMa-15Z-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
SNIP
>> - if (symbol_conf.use_callchain) {
>> + if (symbol_conf.use_callchain &&
>> + !symbol_conf.show_branchflag_count) {
>> ui__error("Selected -g or --branch-history but no "
>> "callchain data. Did\n"
>> "you call 'perf record' without -g?\n");
> The `--branch-history` part of this error message is now stale, no?
Yes, the error message is obsolete. I will change it in next version.
>
>> @@ -397,7 +398,8 @@ static int perf_evlist__tty_browse_hists(struct
>> perf_evlist *evlist,
>>
>> hists__fprintf_nr_sample_events(hists, rep, evname, stdout);
>> hists__fprintf(hists, !quiet, 0, 0, rep->min_percent, stdout,
>> - symbol_conf.use_callchain);
>> + symbol_conf.use_callchain |
>> + symbol_conf.show_branchflag_count);
>> fprintf(stdout, "\n\n");
>> }
> Not sure about the coding style here, but shouldn't this be a boolean or
> operator here '||' - semantically? Functionality wise it will be the same, I
> guess?
Should be same. While I will follow your comments to change it to '||'.
I will wait other comments for some days and then send out the next version.
Thanks
Jin Yao
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] perf report: Make --branch-history work without callgraphs(-g) option in perf record Jin Yao <yao.jin@linux.intel.com> - 2017-05-04 02:40 +0200
Re: [PATCH] perf report: Make --branch-history work without callgraphs(-g) option in perf record Milian Wolff <milian.wolff@kdab.com> - 2017-05-04 11:00 +0200
Re: [PATCH] perf report: Make --branch-history work without callgraphs(-g) option in perf record "Jin, Yao" <yao.jin@linux.intel.com> - 2017-05-05 05:20 +0200
csiph-web