From: Jiri Olsa <jo...@redhat.com> Date: Mon, 5 Nov 2018 21:34:47 +0100
> I pushed it in perf/fixes branch in: > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git Build fix for sparc below, I'm playing with this now. perf: Use PRIu64 for printing top lost events count. Signed-off-by: David S. Miller <da...@davemloft.net> diff --git a/tools/perf/util/top.c b/tools/perf/util/top.c index db3413e..2c8eac8 100644 --- a/tools/perf/util/top.c +++ b/tools/perf/util/top.c @@ -46,7 +46,7 @@ size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size) samples_per_sec; ret = SNPRINTF(bf, size, " PerfTop:%8.0f irqs/sec kernel:%4.1f%%" - " exact: %4.1f%% lost: %lu [", samples_per_sec, + " exact: %4.1f%% lost: %" PRIu64 " [", samples_per_sec, ksamples_percent, esamples_percent, top->lost); } else { float us_samples_per_sec = top->us_samples / top->delay_secs;