[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAO49afLTe3CF36GxjhPOT3CeoXf14_6qpav9Cv4kMbYdnFrOsg@mail.gmail.com>
Date: Tue, 9 Oct 2018 17:19:45 -0500
From: Anthony LaTorre <tlatorre9@...il.com>
To: jolsa@...hat.com
Cc: peterz@...radead.org, mingo@...hat.com, jolsa@...nel.org,
acme@...nel.org, alexander.shishkin@...ux.intel.com,
namhyung@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: perf report segfault
Ok, I tried it with the version compiled from the latest sources and I
don't get the segfault, so it must be an issue with the version
distributed with Fedora 27.
Tony
On Tue, Oct 9, 2018 at 4:47 PM Anthony LaTorre <tlatorre9@...il.com> wrote:
>
> I can try building perf from the latest sources. I've attached the
> perf.data and perf.data.tar.bz2 from the test program I sent earlier.
> On Tue, Oct 9, 2018 at 4:42 PM Jiri Olsa <jolsa@...hat.com> wrote:
> >
> > 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
Powered by blists - more mailing lists