[lttng-dev] session create failed

Thibault, Daniel Daniel.Thibault at drdc-rddc.gc.ca
Tue Mar 18 17:08:24 EDT 2014


----------------------------------------------------------------------
Date: Wed, 19 Mar 2014 01:19:52 +0800
From: Lingyu Zhu <lynuszhu at gmail.com>
To: Jonathan Rajotte <jonathan.r.julien at gmail.com>

> Thanks for point that out. But My point is creating session would fail as
> root, only after I  failed enable kernel event as normal user.

   Your session creation remains successful.  You just can't do kernel tracing from it.  You could have gone on to enable user-space events, etc.

   The later JUL problem is because you did not 'kill' the local session daemon the first lttng command spawned.

   In a nutshell, use 'lttng <command>' for local user-space tracing, 'sudo -H lttng <command>' for kernel and multiple user-space tracing.  Alternately, join the 'tracing' group (log off and back on for the change to take), then use 'lttng <command>' for all tracing -but make sure the root daemon is the only lttng session daemon running.

   As late as lttng 2.3, the lttng -g option does not work.  Has it been fixed?

Daniel U. Thibault
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Québec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>



More information about the lttng-dev mailing list