Re: [BUG] perf/script: segfault on simple command

2015-08-06 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 06, 2015 at 11:28:29AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Aug 06, 2015 at 07:41:20AM +0200, Jiri Olsa escreveu: > > On Wed, Aug 05, 2015 at 03:40:32PM -0700, Stephane Eranian wrote: > > > $ perf script > > > Segmentation fault (core dumped) > > > > event-parse.c:464 >

Re: [BUG] perf/script: segfault on simple command

2015-08-06 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 06, 2015 at 07:41:20AM +0200, Jiri Olsa escreveu: > On Wed, Aug 05, 2015 at 03:40:32PM -0700, Stephane Eranian wrote: > > $ perf script > > Segmentation fault (core dumped) > > $ gdb perf > > (gdb) r script > > Program received signal SIGSEGV, Segmentation fault. > >

Re: [BUG] perf/script: segfault on simple command

2015-08-06 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 06, 2015 at 07:41:20AM +0200, Jiri Olsa escreveu: On Wed, Aug 05, 2015 at 03:40:32PM -0700, Stephane Eranian wrote: $ perf script Segmentation fault (core dumped) $ gdb perf (gdb) r script Program received signal SIGSEGV, Segmentation fault. 0x0050f98b in

Re: [BUG] perf/script: segfault on simple command

2015-08-06 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 06, 2015 at 11:28:29AM -0300, Arnaldo Carvalho de Melo escreveu: Em Thu, Aug 06, 2015 at 07:41:20AM +0200, Jiri Olsa escreveu: On Wed, Aug 05, 2015 at 03:40:32PM -0700, Stephane Eranian wrote: $ perf script Segmentation fault (core dumped) event-parse.c:464 Looks like

Re: [BUG] perf/script: segfault on simple command

2015-08-05 Thread Jiri Olsa
On Wed, Aug 05, 2015 at 03:40:32PM -0700, Stephane Eranian wrote: > Hi Arnaldo, Jiri > > Running this simple command from tip.git tree, I get: > > > $ perf record ls > > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.011 MB perf.data (9 samples) ] > > $

[BUG] perf/script: segfault on simple command

2015-08-05 Thread Stephane Eranian
Hi Arnaldo, Jiri Running this simple command from tip.git tree, I get: $ perf record ls [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.011 MB perf.data (9 samples) ] $ perf script Segmentation fault (core dumped) $ gdb perf (gdb) r script Program

Re: [BUG] perf/script: segfault on simple command

2015-08-05 Thread Jiri Olsa
On Wed, Aug 05, 2015 at 03:40:32PM -0700, Stephane Eranian wrote: Hi Arnaldo, Jiri Running this simple command from tip.git tree, I get: $ perf record ls [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.011 MB perf.data (9 samples) ] $ perf script

[BUG] perf/script: segfault on simple command

2015-08-05 Thread Stephane Eranian
Hi Arnaldo, Jiri Running this simple command from tip.git tree, I get: $ perf record ls [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.011 MB perf.data (9 samples) ] $ perf script Segmentation fault (core dumped) $ gdb perf (gdb) r script Program

Re: [BUG] perf script segfault

2015-04-07 Thread David Ahern
On 4/7/15 5:41 PM, David Ahern wrote: what happened to this patch? not in your core or urgent branches and perf-script is still bombing d'oh. never mind; user error. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: [BUG] perf script segfault

2015-04-07 Thread David Ahern
what happened to this patch? not in your core or urgent branches and perf-script is still bombing On 3/31/15 7:36 AM, David Ahern wrote: On 3/31/15 6:59 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Mar 30, 2015 at

Re: [BUG] perf script segfault

2015-04-07 Thread David Ahern
what happened to this patch? not in your core or urgent branches and perf-script is still bombing On 3/31/15 7:36 AM, David Ahern wrote: On 3/31/15 6:59 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Mar 30, 2015 at

Re: [BUG] perf script segfault

2015-04-07 Thread David Ahern
On 4/7/15 5:41 PM, David Ahern wrote: what happened to this patch? not in your core or urgent branches and perf-script is still bombing d'oh. never mind; user error. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 01:14:20PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Mar 31, 2015 at 05:50:48PM +0200, Jiri Olsa escreveu: > > On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: > > > On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: > > > > > > SNIP

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 01:14:20PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Mar 31, 2015 at 05:50:48PM +0200, Jiri Olsa escreveu: > > On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: > > > On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: > > > > > >

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 05:50:48PM +0200, Jiri Olsa escreveu: > On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: > > On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: > > > > SNIP > > > > > struct ordered_events *oe = >ordered_events; > > > - struct perf_tool

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: > On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: > > SNIP > > > struct ordered_events *oe = >ordered_events; > > - struct perf_tool *tool = oe->tool; > > + struct perf_tool *tool = session->tool; > >

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > struct ordered_events *oe = >ordered_events; > - struct perf_tool *tool = oe->tool; > + struct perf_tool *tool = session->tool; > int fd = perf_data_file__fd(session->file); > u64 head,

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 11:37:44AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Mar 31, 2015 at 04:25:57PM +0200, Jiri Olsa escreveu: > > I was just replying to the poluted ordered_events .. I haven't tracked > :-) Yeah, that was kinda a layering violation, its good that we can > remove

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 04:25:57PM +0200, Jiri Olsa escreveu: > On Tue, Mar 31, 2015 at 11:13:26AM -0300, Arnaldo Carvalho de Melo wrote: > > SNIP > > > And setting tool->ordered_events to false; > > > > What fails is perf_evlist__sample_id_all(session->evlist), I went as far as > > looking at

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 11:13:26AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > And setting tool->ordered_events to false; > > What fails is perf_evlist__sample_id_all(session->evlist), I went as far as > looking at the perf_evlist__sample_id_all call that will find a first evsel, > with all

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 11:02:16AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Mar 31, 2015 at 03:58:01PM +0200, Jiri Olsa escreveu: > > On Tue, Mar 31, 2015 at 09:59:20AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo > > >

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 03:58:01PM +0200, Jiri Olsa escreveu: > On Tue, Mar 31, 2015 at 09:59:20AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: > > > >

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 09:59:20AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: > > > tool was moved to ordered_events and is not initialized for pipe mode.

Re: [BUG] perf script segfault

2015-03-31 Thread David Ahern
On 3/31/15 6:59 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: tool was moved to ordered_events and is not initialized for pipe mode. I don't have time to look into

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: > > tool was moved to ordered_events and is not initialized for pipe mode. I > > don't have time to look into it more than that before PTO on Wednesday.

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: tool was moved to ordered_events and is not initialized for pipe mode. I don't have time to look into it more than that before PTO on Wednesday. I

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 03:58:01PM +0200, Jiri Olsa escreveu: On Tue, Mar 31, 2015 at 09:59:20AM -0300, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: tool was

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 11:02:16AM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Mar 31, 2015 at 03:58:01PM +0200, Jiri Olsa escreveu: On Tue, Mar 31, 2015 at 09:59:20AM -0300, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 11:13:26AM -0300, Arnaldo Carvalho de Melo wrote: SNIP And setting tool-ordered_events to false; What fails is perf_evlist__sample_id_all(session-evlist), I went as far as looking at the perf_evlist__sample_id_all call that will find a first evsel, with all its

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 04:25:57PM +0200, Jiri Olsa escreveu: On Tue, Mar 31, 2015 at 11:13:26AM -0300, Arnaldo Carvalho de Melo wrote: SNIP And setting tool-ordered_events to false; What fails is perf_evlist__sample_id_all(session-evlist), I went as far as looking at the

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 11:37:44AM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Mar 31, 2015 at 04:25:57PM +0200, Jiri Olsa escreveu: I was just replying to the poluted ordered_events .. I haven't tracked :-) Yeah, that was kinda a layering violation, its good that we can remove it

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: SNIP struct ordered_events *oe = session-ordered_events; - struct perf_tool *tool = oe-tool; + struct perf_tool *tool = session-tool; int fd = perf_data_file__fd(session-file); u64 head,

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 01:14:20PM -0300, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 31, 2015 at 05:50:48PM +0200, Jiri Olsa escreveu: On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: SNIP

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 01:14:20PM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Mar 31, 2015 at 05:50:48PM +0200, Jiri Olsa escreveu: On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: SNIP

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 05:50:48PM +0200, Jiri Olsa escreveu: On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: SNIP struct ordered_events *oe = session-ordered_events; - struct perf_tool *tool =

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: SNIP struct ordered_events *oe = session-ordered_events; - struct perf_tool *tool = oe-tool; + struct perf_tool *tool = session-tool; int

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 09:59:20AM -0300, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: tool was moved to ordered_events and is not initialized for pipe mode. I

Re: [BUG] perf script segfault

2015-03-31 Thread David Ahern
On 3/31/15 6:59 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 30, 2015 at 08:45:33PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: tool was moved to ordered_events and is not initialized for pipe mode. I don't have time to look into

Re: [BUG] perf script segfault

2015-03-30 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: > Surprised Stephane has not hit this one yet: > > $ perf record -e -a | perf script > Segmentation fault (core dumped) > > It's the second one that core dumps. > > $ gdb perf core.16704 > ... > [New LWP 16704] > [Thread debugging

[BUG] perf script segfault

2015-03-30 Thread David Ahern
Surprised Stephane has not hit this one yet: $ perf record -e -a | perf script Segmentation fault (core dumped) It's the second one that core dumps. $ gdb perf core.16704 ... [New LWP 16704] [Thread debugging using libthread_db enabled] Using host libthread_db library

Re: [BUG] perf script segfault

2015-03-30 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 30, 2015 at 04:51:34PM -0600, David Ahern escreveu: Surprised Stephane has not hit this one yet: $ perf record -e any-event -a | perf script Segmentation fault (core dumped) It's the second one that core dumps. $ gdb perf core.16704 ... [New LWP 16704] [Thread debugging

[BUG] perf script segfault

2015-03-30 Thread David Ahern
Surprised Stephane has not hit this one yet: $ perf record -e any-event -a | perf script Segmentation fault (core dumped) It's the second one that core dumps. $ gdb perf core.16704 ... [New LWP 16704] [Thread debugging using libthread_db enabled] Using host libthread_db library