[lttng-dev] A problem

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri Mar 2 09:52:42 EST 2012


* Alexandre Montplaisir (alexandre.montplaisir at polymtl.ca) wrote:
> Hi,
> 
> You need to be root to use the kernel tracer, or alternatively, your
> user needs to be in the "tracing" group.

One clarification: to use kernel tracing from the tracing group, one
need to explicitely start "lttng-sessiond" from root first. This could,
and should, be done by init scripts by the package.

Thanks,

Mathieu

> But on a single-user machine it
> might be a bit more simple to just use "sudo".
> 
> The quickstart example uses the root user directly, which is why the
> commands start with "#".
> 
> On 12-03-01 10:08 PM, 岳鹏 wrote:
> > lttngers:
> > hello,I have met a problem when I first used the tool lttng.
> > The situation as following:
> > my system is ubuntu 11.10,and the kernel's version is 3.0.0-12,the lttng's
> > version which I used is lttng2.0.
> > I have installed this tool successfully,following the guide on
> > https://launchpad.net/~lttng/+archive/ppa.
> > But when I use lttng following
> > https://bugs.lttng.org/projects/lttng-tools/wiki,I met a issue.
> > the terminal is:
> > *yuepeng at cheery-lucifer:~$ lttng create mysession
> 
> Replace this with "sudo lttng create mysession"
> 
> > Session mysession created.
> > Traces will be written in
> > /home/yuepeng/lttng-traces/mysession-20120302-105623
> > yuepeng at cheery-lucifer:~$ lttng enable-event -a -k
> 
> and "sudo lttng enable-event -a -k" here
> 
> Let us know if you still have problems. The Oneiric packages in the PPA
> are still fresh, so testing is appreciated ;)
> 
> 
> Cheers,
> 
> -- 
> Alexandre Montplaisir
> DORSAL lab,
> École Polytechnique de Montréal
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list