Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1626148
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jiri Olsa <jolsa@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 6/7] perf report: Show branch type statistics for stdio mode |
| Date | Wed, 19 Apr 2017 16:20:02 +0200 |
| Message-ID | <txYCC-4sd-29@gated-at.bofh.it> (permalink) |
| References | <txSGR-FS-7@gated-at.bofh.it> <txSGW-FS-147@gated-at.bofh.it> |
| X-Original-To | Jin Yao <yao.jin@linux.intel.com> |
| Dmarc-Filter | OpenDMARC Filter v1.3.2 mx1.redhat.com 7728F811A7 |
| Authentication-Results | ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com |
| Authentication-Results | ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jolsa@redhat.com |
| Dkim-Filter | OpenDKIM Filter v2.11.0 mx1.redhat.com 7728F811A7 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.8.0 (2017-02-23) |
| X-Scanned-By | MIMEDefang 2.79 on 10.5.11.14 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 19 Apr 2017 14:15:27 +0000 (UTC) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 43 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com, linuxppc-dev@lists.ozlabs.org |
| X-Original-Date | Wed, 19 Apr 2017 16:15:23 +0200 |
| X-Original-Message-ID | <20170419141523.GC19643@krava> |
| X-Original-References | <1492616894-3635-1-git-send-email-yao.jin@linux.intel.com> <1492616894-3635-7-git-send-email-yao.jin@linux.intel.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1626148 |
Show key headers only | View raw
On Wed, Apr 19, 2017 at 11:48:13PM +0800, Jin Yao wrote:
SNIP
> +static void branch_type_stat_display(FILE *fp, struct branch_type_stat *stat)
> +{
> + u64 total = 0;
> + int i;
> +
> + for (i = 0; i < PERF_BR_MAX; i++)
> + total += stat->counts[i];
> +
> + if (total == 0)
> + return;
> +
> + fprintf(fp, "\n#");
> + fprintf(fp, "\n# Branch Statistics:");
> + fprintf(fp, "\n#");
> +
> + if (stat->jcc_fwd > 0)
> + fprintf(fp, "\n%12s: %5.1f%%",
> + "JCC forward",
> + 100.0 * (double)stat->jcc_fwd / (double)total);
> +
> + if (stat->jcc_bwd > 0)
> + fprintf(fp, "\n%12s: %5.1f%%",
> + "JCC backward",
> + 100.0 * (double)stat->jcc_bwd / (double)total);
> +
> + if (stat->cross_4k > 0)
> + fprintf(fp, "\n%12s: %5.1f%%",
> + "CROSS_4K",
> + 100.0 * (double)stat->cross_4k / (double)total);
> +
> + if (stat->cross_2m > 0)
> + fprintf(fp, "\n%12s: %5.1f%%",
> + "CROSS_2M",
> + 100.0 * (double)stat->cross_2m / (double)total);
{} brackets here as well
thanks,
jirka
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v5 0/7] perf report: Show branch type Jin Yao <yao.jin@linux.intel.com> - 2017-04-19 10:00 +0200
[PATCH v5 5/7] perf util: Create branch.c/.h for common branch functions Jin Yao <yao.jin@linux.intel.com> - 2017-04-19 10:00 +0200
[PATCH v5 7/7] perf report: Show branch type in callchain entry Jin Yao <yao.jin@linux.intel.com> - 2017-04-19 10:00 +0200
Re: [PATCH v5 7/7] perf report: Show branch type in callchain entry Jiri Olsa <jolsa@redhat.com> - 2017-04-19 16:20 +0200
Re: [PATCH v5 7/7] perf report: Show branch type in callchain entry Jiri Olsa <jolsa@redhat.com> - 2017-04-19 16:20 +0200
Re: [PATCH v5 7/7] perf report: Show branch type in callchain entry "Jin, Yao" <yao.jin@linux.intel.com> - 2017-04-20 02:40 +0200
[PATCH v5 3/7] perf record: Create a new option save_type in --branch-filter Jin Yao <yao.jin@linux.intel.com> - 2017-04-19 10:00 +0200
[PATCH v5 6/7] perf report: Show branch type statistics for stdio mode Jin Yao <yao.jin@linux.intel.com> - 2017-04-19 10:00 +0200
Re: [PATCH v5 6/7] perf report: Show branch type statistics for stdio mode Jiri Olsa <jolsa@redhat.com> - 2017-04-19 16:20 +0200
Re: [PATCH v5 6/7] perf report: Show branch type statistics for stdio mode Jiri Olsa <jolsa@redhat.com> - 2017-04-19 16:20 +0200
[PATCH v5 2/7] perf/x86/intel: Record branch type Jin Yao <yao.jin@linux.intel.com> - 2017-04-19 10:00 +0200
csiph-web