Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-19 Thread Philippe Proulx
On Mon, Sep 19, 2016 at 11:38 AM, David Aldrich wrote: > > Hi Jonathan > > Thanks for your reply. What is 'comm' in 'prev_comm'? "comm" stands for "command". See this in sched.h: /* Task command name length */ #define TASK_COMM_LEN 16 Phil > > Best regards

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-19 Thread Jonathan Rajotte Julien
rds David -Original Message- From: lttng-dev [mailto:lttng-dev-boun...@lists.lttng.org] On Behalf Of Jonathan Rajotte Julien Sent: 16 September 2016 18:37 To: lttng-dev@lists.lttng.org Subject: Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application? Hi On

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-19 Thread David Aldrich
g > Subject: Re: [lttng-dev] Beginner question: how to inspect scheduling of > multi-threaded user application? > > Hi > > > On 2016-09-16 07:43 AM, David Aldrich wrote: > > Hi > > > > I wonder if I might ask for some more guidance please? > > >

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-16 Thread Jonathan Rajotte Julien
Hi On 2016-09-16 07:43 AM, David Aldrich wrote: Hi I wonder if I might ask for some more guidance please? I now have lttng and Trace Compass running on Ubuntu. I want to inspect the scheduling of threads in my user-space application. So far, I have successfully captured a trace with the

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-16 Thread David Aldrich
Hi I wonder if I might ask for some more guidance please? I now have lttng and Trace Compass running on Ubuntu. I want to inspect the scheduling of threads in my user-space application. So far, I have successfully captured a trace with the sched_switch event enabled: $ sudo lttng

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-15 Thread David Aldrich
> Subject: Re: [lttng-dev] Beginner question: how to inspect scheduling of > multi-threaded user application? > > Hi, > > On 2016-09-15 11:41 AM, David Aldrich wrote: > > Hi Jonathan > > > > Thanks, I had not logged out/in after joining the tracing group. > >

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-15 Thread Jonathan Rajotte Julien
Hi, On 2016-09-15 11:41 AM, David Aldrich wrote: Hi Jonathan Thanks, I had not logged out/in after joining the tracing group. I now see: $ lttng create demo_session Session demo_session created. $ sudo lttng enable-event -k sched_switch -s demo_session Error: Event sched_switch: Kernel

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-15 Thread David Aldrich
Hi Jonathan Thanks, I had not logged out/in after joining the tracing group. I now see: $ lttng create demo_session Session demo_session created. $ sudo lttng enable-event -k sched_switch -s demo_session Error: Event sched_switch: Kernel tracer not available (channel channel0, session

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-15 Thread Jonathan Rajotte Julien
Hi, On 2016-09-15 10:36 AM, David Aldrich wrote: Hi I'm afraid I'm still struggling with getting started with lttng. To recap, I want to use lttng + TraceCompass to monitor the scheduling of threads in my multi-threaded C++ application on Ubuntu. Here is my session: $ sudo pkill

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-15 Thread David Aldrich
Hi I'm afraid I'm still struggling with getting started with lttng. To recap, I want to use lttng + TraceCompass to monitor the scheduling of threads in my multi-threaded C++ application on Ubuntu. Here is my session: $ sudo pkill lttng-sessiond $ sudo lttng-sessiond Error: Already running

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-08-26 Thread Jonathan Rajotte Julien
ttng-dev@lists.lttng.org Subject: Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application? Sorry had a sending problem. Here is the rest. On Wed, Aug 24, 2016 at 12:35 PM, Jonathan Rajotte <jonathan.r.jul...@gmail.com<mailto:jonathan.r.jul...@gmail.co

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-08-24 Thread Jonathan Rajotte
Sorry had a sending problem. Here is the rest. On Wed, Aug 24, 2016 at 12:35 PM, Jonathan Rajotte < jonathan.r.jul...@gmail.com> wrote: > Hi, > > On Aug 24, 2016 12:18 PM, "Francis Deslauriers" < > francis.deslauri...@mail.utoronto.ca> wrote: > > > > Hi David, > > If you specifically want to

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-08-24 Thread Jonathan Rajotte
Hi, On Aug 24, 2016 12:18 PM, "Francis Deslauriers" wrote: > > Hi David, > If you specifically want to trace the scheduling of the threads of your app, you don't need custom tracepoints. > Enabling the sched_switch kernel event will give you both of cpu id

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-08-24 Thread Francis Deslauriers
Hi David, If you specifically want to trace the scheduling of the threads of your app, you don't need custom tracepoints. Enabling the sched_switch kernel event will give you both of cpu id and thread id. Look at the cpu_id and next_tid fields. You can enable the sched_switch event using : lttng

[lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-08-24 Thread David Aldrich
Hi I am new to tracing in Linux and to lttng. I have a multi-threaded user application and I want to see: 1) When the threads are scheduled to run 2) Which cores the threads are running on. I have installed lttng on Ubuntu 14.04 LTS. I am expecting to visualise the trace using