Re: [PATCH] perf, tools, script: Add brstackinsn for branch stacks

From: Andi Kleen
Date: Wed Mar 15 2017 - 22:22:26 EST


> > + memset(&al, 0, sizeof(al));
> > + if (end - start > MAXBB - MAXINSN) {
> > + if (last)
> > + printf("\tbrstack does not reach to final jump (%" PRIx64 "-%" PRIx64 ")\n",
> > + start, end);
> > + else
> > + printf("\tblock %" PRIx64 "-%" PRIx64 " (%ld) too long to dump\n",

Thanks. Should be %" PRIu64 " of course.

Arnaldo, can you do the change or should I send a patch?

-Andi

> > + start, end, end - start);
>
> This looks to be breaking the build on ppc64:
>
> builtin-script.c: In function âgrab_bbâ:
> builtin-script.c:595:11: error: format â%ldâ expects argument of type âlong intâ, but argument 4 has type âu64 {aka long long unsigned int}â [-Werror=format=]
> printf("\tblock %" PRIx64 "-%" PRIx64 " (%ld) too long to dump\n", start, end, end - start);
> ^
>
> cheers
>