You'll want to dig into the past month's threads referring to Android on the lttng-dev mailing list.
Some work has been done on lttng-tools to support it, but the patches have never been cleaned up following our feedback, so it is not merged yet. Thanks, Mathieu * Cao Gao ([email protected]) wrote: > Hi, > > I’m trying to use LTTng on Android 4.0.4 with Linux kernel version of > 3.0.15. > I cross-compiled the LTTng modules and tools on my Ubuntu 12.04 machine. > > First I installed all the LTTng modules using *insmod*, because there is no > *modprobe* in Android. It worked fine. > However, when I tried to run *lttng*, it failed due to "No session daemon > is available" error. I tried to run* lttng-sessiond*, then it just kept > hanging and cannot finish. > Even I kept *lttng-sessiond* hanging in a new terminal session and ran * > lttng* in a separate terminal, it gave the same error. > > I'm posting the log below. > > Any help would be greatly appreciated! > > Thanks, > Cao > > *root@android:/data/lttng/bin # ./lttng -vvv list -k* > > DEBUG1 [2016/2016]: Session daemon at: /data/lttng/bin/lttng-sessiond > > (in check_sessiond() at lttng.c:381) > > Spawning a session daemon > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-tracer > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-lib-ring-buffer > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-client-discard > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-client-overwrite > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-metadata-client > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-client-mmap-discard > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-client-mmap-overwrite > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-metadata-mmap-client > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-probe-lttng > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > sh: /sbin/modprobe: not found > > Warning: No tracing group detected > > DEBUG1 [2016/2016]: SIGUSR1 caught (in sighandler() at lttng.c:204) > > DEBUG2 [2016/2016]: Session name: (null) (in cmd_list() at > > commands/list.c:743) > > DEBUG1 [2016/2016]: Getting kernel tracing events (in > > list_kernel_events() at commands/list.c:433) > > Error: Unable to list kernel events: No session daemon is available > > Error: Command error > > DEBUG1 [2016/2016]: Clean exit (in clean_exit() at lttng.c:175) > > > > *root@android:/data/lttng/bin # ./lttng-sessiond -vvv* > > > > > DEBUG3 [2132/2132]: Creating LTTng run directory: /data/lttng (in > > create_lttng_rundir() at main.c:3853) > > DEBUG2 [2132/2132]: Kernel consumer err path: > > /data/lttng/kconsumerd/error (in main() at main.c:4140) > > DEBUG2 [2132/2132]: Kernel consumer cmd path: > > /data/lttng/kconsumerd/command (in main() at main.c:4142) > > DEBUG1 [2132/2132]: Client socket path > > /data/lttng/client-lttng-sessiond (in main() at main.c:4195) > > DEBUG1 [2132/2132]: Application socket path > > /data/lttng/lttng-ust-sock-4 (in main() at main.c:4196) > > DEBUG1 [2132/2132]: Application wait path /lttng-ust-wait-4 (in main() > > at main.c:4197) > > DEBUG1 [2132/2132]: LTTng run directory path: /data/lttng (in main() > > at main.c:4198) > > DEBUG2 [2132/2132]: UST consumer 32 bits err path: > > /data/lttng/ustconsumerd32/error (in main() at main.c:4207) > > DEBUG2 [2132/2132]: UST consumer 32 bits cmd path: > > /data/lttng/ustconsumerd32/command (in main() at main.c:4209) > > DEBUG2 [2132/2132]: UST consumer 64 bits err path: > > /data/lttng/ustconsumerd64/error (in main() at main.c:4218) > > DEBUG2 [2132/2132]: UST consumer 64 bits cmd path: > > /data/lttng/ustconsumerd64/command (in main() at main.c:4220) > > DEBUG2 [2132/2132]: Creating consumer directory: > > /data/lttng/kconsumerd (in set_consumer_sockets() at main.c:3895) > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-tracer > > DEBUG2 [2132/2132]: Kernel tracer version validated (major version 2) > > (in kernel_validate_version() at kernel.c:688) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-ftrace (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-kprobes (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-kretprobes (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-lib-ring-buffer > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-client-discard > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-client-overwrite > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-metadata-client > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-client-mmap-discard > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-client-mmap-overwrite > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-ring-buffer-metadata-mmap-client > > sh: /sbin/modprobe: not found > > Error: Unable to load module lttng-probe-lttng > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-types (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-asoc (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-block (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-btrfs (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-compaction (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-ext3 (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-ext4 (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-gpio (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-irq (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-jbd (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-jbd2 (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-kmem (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-kvm (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-lock (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-module (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-napi (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-net (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-power (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-printk (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-random (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-rcu (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-regmap (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-regulator (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-rpm (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-sched (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-scsi (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-signal (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-skb (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-sock (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-statedump (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-sunrpc (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-timer (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-udp (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-vmscan (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-workqueue (in > > modprobe_lttng_data() at modprobe.c:227) > > sh: /sbin/modprobe: not found > > DEBUG1 [2132/2132]: Modprobe successfully lttng-probe-writeback (in > > modprobe_lttng_data() at modprobe.c:227) > > DEBUG1 [2132/2132]: Kernel tracer fd 6 (in init_kernel_tracer() at > > main.c:2139) > > DEBUG2 [2132/2132]: Creating consumer directory: > > /data/lttng/ustconsumerd64 (in set_consumer_sockets() at main.c:3895) > > DEBUG2 [2132/2132]: Creating consumer directory: > > /data/lttng/ustconsumerd32 (in set_consumer_sockets() at main.c:3895) > > DEBUG1 [2132/2132]: Signal handler set for SIGTERM, SIGPIPE and SIGINT > > (in set_signal_handler() at main.c:3987) > > DEBUG3 [2132/2132]: Session daemon client socket 10 and application > > socket 11 created (in init_daemon_socket() at main.c:3757) > > Warning: No tracing group detected > > DEBUG3 [2132/2132]: Created hashtable size 4 at 0x1250208 of type 2 > > (in lttng_ht_new() at hashtable.c:112) > > DEBUG3 [2132/2132]: Global buffer per UID registry initialized (in > > buffer_reg_init_uid_registry() at buffer-registry.c:98) > > DEBUG3 [2132/2132]: Created hashtable size 4 at 0x1250360 of type 1 > > (in lttng_ht_new() at hashtable.c:112) > > DEBUG3 [2132/2132]: Global buffer per PID registry initialized (in > > buffer_reg_init_pid_registry() at buffer-registry.c:219) > > DEBUG1 [2132/2132]: epoll set max size is 153106 (in > > compat_epoll_set_max_size() at compat-epoll.c:270) > > DEBUG1 [2132/2132]: Command subsystem initialized (in cmd_init() at > > cmd.c:2146) > > DEBUG1 [2132/2132]: Pid 2132 written in file > > /data/lttng/lttng-sessiond.pid (in utils_create_pid_file() at utils.c:237) > > DEBUG1 [2132/2182]: [thread] Manage health check started (in > > thread_manage_health() at main.c:3106) > > DEBUG1 [2132/2182]: Health check ready (in thread_manage_health() at > > main.c:3148) > > DEBUG1 [2132/2185]: [thread] Manage application registration started > > (in thread_registration_apps() at main.c:1542) > > DEBUG1 [2132/2185]: Notifying applications of session daemon state: 1 > > (in notify_ust_apps() at main.c:507) > > DEBUG1 [2132/2185]: Got the wait shm fd 21 (in get_wait_shm() at > > shm.c:122) > > DEBUG1 [2132/2185]: Futex wait update active 1 (in futex_wait_update() > > at futex.c:63) > > DEBUG1 [2132/2185]: Accepting application registration (in > > thread_registration_apps() at main.c:1579) > > DEBUG1 [2132/2183]: [thread] Manage client started (in > > thread_manage_clients() at main.c:3303) > > DEBUG1 [2132/2183]: Accepting client command ... (in > > thread_manage_clients() at main.c:3349) > > DEBUG1 [2132/2186]: [thread] Manage application started (in > > thread_manage_apps() at main.c:1152) > > DEBUG1 [2132/2186]: Apps thread polling on 2 fds (in > > thread_manage_apps() at main.c:1182) > > DEBUG1 [2132/2188]: [thread] Thread manage kernel started (in > > thread_manage_kernel() at main.c:702) > > DEBUG1 [2132/2188]: Updating kernel poll set (in update_kernel_poll() > > at main.c:568) > > DEBUG1 [2132/2188]: Thread kernel polling on 2 fds (in > > thread_manage_kernel() at main.c:747) > > DEBUG1 [2132/2184]: [thread] Dispatch UST command started (in > > thread_dispatch_ust_registration() at main.c:1352) > > DEBUG1 [2132/2184]: Futex n to 1 prepare done (in futex_nto1_prepare() > > at futex.c:75) > > DEBUG1 [2132/2184]: Woken up but nothing in the UST command queue (in > > thread_dispatch_ust_registration() at main.c:1365) > _______________________________________________ > lttng-dev mailing list > [email protected] > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
