<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"\7EAF\6587\672C Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.Char
{mso-style-name:"\7EAF\6587\672C Char";
mso-style-priority:99;
mso-style-link:\7EAF\6587\672C;
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> I want to use lttng trace kernel event,I installed lttng-tools 2.7.1 lttng-ust 2.7.2 lttng-modules 2.7.2 on my arm64 board,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And then I create my session like sub command as root,but there is nothing result to view.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> # lttng create<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> # lttng enable-event --kernel --all<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> # lttng start<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> # sleep 10 # let the system generate some activity<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> # lttng stop<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> # lttng view<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US"># lttng destroy<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-bash-4.3# lttng view<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Trace directory: /root/lttng-traces/auto-20160407-211248<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[error] Cannot open any trace for reading.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[error] opening trace "/root/lttng-traces/auto-20160407-211248" for reading.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[error] none of the specified trace paths could be opened.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Get thes session daemon log as follow:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">bash-4.3# lttng-sessiond -vvv <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.396991 [5621/5621]: run_as signal handler set for SIGTERM and SIGINT (in set_worker_sighandlers() at runas.c:600)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.397410 [5620/5620]: Health check time delta in seconds set to 20 (in health_init() at health.c:74)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.397661 [5620/5620]: epoll set max size is 27037798 (in compat_epoll_set_max_size() at compat-epoll.c:290)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG3 - 21:52:15.397838 [5620/5620]: Creating LTTng run directory: /var/run/lttng (in create_lttng_rundir() at main.c:5156)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.397852 [5620/5622]: [ht-thread] startup. (in thread_ht_cleanup() at ht-cleanup.c:37)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG2 - 21:52:15.397986 [5620/5620]: Kernel consumer err path: /var/run/lttng/kconsumerd/error (in main() at main.c:5601)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG2 - 21:52:15.398070 [5620/5620]: Kernel consumer cmd path: /var/run/lttng/kconsumerd/command (in main() at main.c:5603)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG3 - 21:52:15.398034 [5620/5622]: [ht-thread] Polling. (in thread_ht_cleanup() at ht-cleanup.c:67)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: Could not get lock file /var/run/lttng/lttng-sessiond.lck, another instance is running.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398240 [5620/5620]: Cleanup sessiond (in sessiond_cleanup() at main.c:622)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398294 [5620/5620]: Removing sessiond and consumerd content of directory /var/run/lttng (in sessiond_cleanup() at main.c:641)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398321 [5620/5620]: Removing /var/run/lttng/lttng-sessiond.pid (in sessiond_cleanup() at main.c:647)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398372 [5620/5620]: Removing /var/run/lttng/agent.port (in sessiond_cleanup() at main.c:652)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398420 [5620/5620]: Removing /var/run/lttng/kconsumerd/error (in sessiond_cleanup() at main.c:659)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398472 [5620/5620]: Removing directory /var/run/lttng/kconsumerd (in sessiond_cleanup() at main.c:665)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398526 [5620/5620]: Removing /var/run/lttng/ustconsumerd32/error (in sessiond_cleanup() at main.c:672)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398579 [5620/5620]: Removing directory /var/run/lttng/ustconsumerd32 (in sessiond_cleanup() at main.c:678)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398620 [5620/5620]: Removing /var/run/lttng/ustconsumerd64/error (in sessiond_cleanup() at main.c:685)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398673 [5620/5620]: Removing directory /var/run/lttng/ustconsumerd64 (in sessiond_cleanup() at main.c:691)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398734 [5620/5620]: Cleaning up all sessions (in sessiond_cleanup() at main.c:694)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398765 [5620/5620]: Cleaning up all agent apps (in sessiond_cleanup() at main.c:711)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398789 [5620/5620]: Closing all UST sockets (in sessiond_cleanup() at main.c:714)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG2 - 21:52:15.398813 [5620/5620]: UST app cleaning registered apps hash table (in ust_app_clean_list() at ust-app.c:3702)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG3 - 21:52:15.398837 [5620/5620]: Buffer registry destroy all registry (in buffer_reg_destroy_registries() at buffer-registry.c:716)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG2 - 21:52:15.398861 [5620/5620]: Closing kernel fd (in sessiond_cleanup() at main.c:719)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.398884 [5620/5620]: Unloading kernel modules (in sessiond_cleanup() at main.c:726)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.403580 [5620/5620]: Modprobe removal successful lttng-kretprobes (in modprobe_remove_lttng() at modprobe.c:126)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.407855 [5620/5620]: Modprobe removal successful lttng-kprobes (in modprobe_remove_lttng() at modprobe.c:126)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.412073 [5620/5620]: Modprobe removal successful lttng-ftrace (in modprobe_remove_lttng() at modprobe.c:126)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.416256 [5620/5620]: Modprobe removal successful lttng-types (in modprobe_remove_lttng() at modprobe.c:126)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.420593 [5620/5620]: Modprobe removal successful lttng-ring-buffer-metadata-mmap-client (in modprobe_remove_lttng() at modprobe.c:126)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.425108 [5620/5620]: Modprobe removal successful lttng-ring-buffer-client-mmap-overwrite (in modprobe_remove_lttng() at modprobe.c:126)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.429745 [5620/5620]: Modprobe removal successful lttng-ring-buffer-client-mmap-discard (in modprobe_remove_lttng() at modprobe.c:126)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: Unable to remove module lttng-ring-buffer-metadata-client<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.438779 [5620/5620]: Modprobe removal successful lttng-ring-buffer-client-overwrite (in modprobe_remove_lttng() at modprobe.c:126)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: Unable to remove module lttng-ring-buffer-client-discard<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: Unable to remove module lttng-lib-ring-buffer<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: Unable to remove module lttng-tracer<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG3 - 21:52:15.452135 [5620/5622]: [ht-thread] Returning from poll on 2 fds. (in thread_ht_cleanup() at ht-cleanup.c:74)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.452186 [5620/5622]: [ht-cleanup] quit. (in thread_ht_cleanup() at ht-cleanup.c:153)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.452225 [5620/5622]: [ht-cleanup] Thread terminates. (in thread_ht_cleanup() at ht-cleanup.c:164)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.452333 [5620/5620]: Cleaning up options (in sessiond_cleanup_options() at main.c:773)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.453308 [5620/5620]: lttng-runas terminated with status code 0 (in run_as_destroy_worker() at runas.c:737)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG1 - 21:52:15.453349 [5620/5620]: *** assert failed :-) *** ==> Matthew, BEET driven development works! (in sessiond_cleanup_options() at main.c:805)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">can anybody help me ?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">thanks very much.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">lichuanbao<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">ShenZhen in China<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>