lkml.org 
[lkml]   [2018]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: perf report segfault
On Tue, Oct 09, 2018 at 03:18:12PM -0500, Anthony LaTorre wrote:
> Ok, I can reliably reproduce it by profiling the following program:
>
> #include <math.h>
>
> int main(int argc, char **argv)
> {
> int i;
> double sum;
>
> while (1) {
> sum += exp(++i);
> }
>
> return 0;
> }
>
> compiled with:
>
> $ cc -o test test.c -lm
>
> with the following command:
>
> $ perf record -F 99 -p 20016 --call-graph dwarf sleep 10

still nothing.. any chance you could try on latest perf sources?

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git
$ cd linux
$ git checkout -b perf/core origin/perf/core
$ cd tools/perf
$ make
$ ./perf ...

you might need some packages mentioned in (search for 'yum install'):
https://perf.wiki.kernel.org/index.php/Jolsa_Howto_Install_Sources

it's little outdated, but the packages lists will do

thanks,
jirka

\
 
 \ /
  Last update: 2018-10-09 23:42    [W:0.533 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site