From: Zumeng Chen <zumeng.chen@windriver.com>
To: <yocto@yoctoproject.org>, <richard.purdie@linuxfoundation.org>,
<bruce.ashfield@windriver.com>, <sgw@linux.intel.com>
Subject: [PATCH 0/4]lttng-2.0 new recipe
Date: Fri, 6 Jan 2012 14:11:50 +0800 [thread overview]
Message-ID: <cover.1325824274.git.zumeng.chen@windriver.com> (raw)
Hi All,
This patchset adds support for lttng-2.0, including the folloing
four bb files:
babeltrace_0.8.bb
lttng-modules_v2.0.pre11.bb
lttng-tools_2.0-pre16.bb
lttng-ust_1.9.4.bb
And two patches for smoothly compiling:
lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch
lttng-tools-fix-compiling-error-for-powerpc-arm-and-mips.patch
There is a clear description of the LTTng 2.0 architecture in the
followiing site:
http://lttng.org/sites/lttng.org/files/LTTng2_0Architecture_pa3.pdf
Currently lttng-2.0 is still in pre-release phrase, so I add this
into the patch header for reminder. And another goal of this RR
is intended to bring forward the following issues:
lttng-2.0 has been added into recipies-kernel, which coexisted
with lttng(the previous version), because there are some mainly
changes from lttng-control to lttng-tools, which both monitors
tracepoints and dynamic probes from kernel and userspace. But
I'm not sure if we should remove the previous version lttng.
My suggestion is to preserve for 2.6.37 kernel :-)
lttng-2.0 supports lttng-modules extra builds, which don't need
any patches on Linux kernel vs the previous version of lttng.
As described in README of lttng-modules-2.0, so far, it has been
tested in current 3.0 kernel on x86 32/64-bit, and powerpc 32-bit,
, build tested on ARM. So the related tests on qemux86 and qemuppc
has been validated and a build test on qemuarm passed too with
this patcheset.
Babeltrace provides as a trace converter, which used to convert
LTTng 2.0 traces into human-readable log(see below example for
qemuppc)
lttng-ust_1.9.4 is Linux Trace Toolkit 2.0 Userspace Tracer.
I'm still keep an eye on the development of lttng for updates.
Regard,
Zumeng
root@qemuppc:/# lttng list -k
Kernel events:
-------------
sched_kthread_stop (type: tracepoint)
sched_kthread_stop_ret (type: tracepoint)
sched_wakeup (type: tracepoint)
sched_wakeup_new (type: tracepoint)
sched_switch (type: tracepoint)
sched_migrate_task (type: tracepoint)
sched_process_free (type: tracepoint)
sched_process_exit (type: tracepoint)
sched_wait_task (type: tracepoint)
sched_process_wait (type: tracepoint)
sched_process_fork (type: tracepoint)
sched_stat_wait (type: tracepoint)
sched_stat_sleep (type: tracepoint)
sched_stat_iowait (type: tracepoint)
sched_stat_runtime (type: tracepoint)
sched_pi_setprio (type: tracepoint)
irq_handler_entry (type: tracepoint)
irq_handler_exit (type: tracepoint)
softirq_entry (type: tracepoint)
softirq_exit (type: tracepoint)
softirq_raise (type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
(type: tracepoint) [disabled]
root@qemuppc:/# lttng create mysession
Session mysession created.
Traces will be written in /home/root/lttng-traces/mysession-20111230-152610
root@qemuppc:/# lttng enable-event -a -k
All kernel events are enabled in channel channel0
root@qemuppc:/# lttng enable-event sched_switch,sched_wakeup -k
kernel event sched_switch created in channel channel0
kernel event sched_wakeup created in channel channel0
root@qemuppc:/# lttng enable-event -a -k --tracepoint
All kernel tracepoints are enabled in channel channel0
root@qemuppc:/# lttng add-context -k -e sched_switch -t pid
kernel context pid added to sched_switch event in all channels
root@qemuppc:/# lttng start
Tracing started for session mysession
root@qemuppc:/# lttng list -u
UST events:
-------------
None
root@qemuppc:/# lttng stop
Tracing stopped for session mysession
root@qemuppc:/# lttng list -u
UST events:
-------------
None
root@qemuppc:/# uname -a
Linux qemuppc 3.0.12-yocto-standard+ #1 PREEMPT Thu Dec 29 22:23:52 CST 2011 ppc GNU/Linux
root@qemuppc:/#
root@qemuppc:/# babeltrace /home/root/lttng-traces/mysession-20111230-152610 | less
[2078772597067] softirq_raise: { 0 }, { vec = 1 }
[2078773657367] softirq_raise: { 0 }, { vec = 9 }
[2078773943557] sched_stat_runtime: { 0 }, { comm = "lttng-sessiond", tid = 404, runtime = 5104592, vruntime = 61173667721 }
[2078774051587] softirq_entry: { 0 }, { vec = 1 }
[2078774081797] softirq_exit: { 0 }, { vec = 1 }
[2078774086557] softirq_entry: { 0 }, { vec = 9 }
[2078774094247] softirq_exit: { 0 }, { vec = 9 }
[2078774105437] sched_stat_runtime: { 0 }, { comm = "lttng-sessiond", tid = 404, runtime = 230192, vruntime = 61173897913 }
[2078774185387] sched_stat_wait: { 0 }, { comm = "lttng-consumerd", tid = 418, delay = 5334784 }
[2078774328677] sched_switch: { 0 }, 385, { prev_comm = "lttng-sessiond", prev_tid = 404, prev_prio = 20, prev_state = 0, next_comm = "lttng-consumerd", next_tid = 418, next_prio = 20 }
[2078774802747] exit_syscall: { 0 }, { ret = 1 }
[2078774968937] sys_unknown: { 0 }, { id = 102, args = [ [0] = 17, [1] = 1218120660, [2] = 0, [3] = 268526120, [4] = 32, [5] = 4294967232 ] }
[2078775075597] exit_syscall: { 0 }, { ret = 4136 }
[2078775109747] sys_unknown: { 0 }, { id = 167, args = [ [0] = 1218124968, [1] = 2, [2] = 4294967295, [3] = 268526120, [4] = 32, [5] = 4294967232 ] }
[2078775130867] exit_syscall: { 0 }, { ret = 1 }
[2078775339007] sys_unknown: { 0 }, { id = 102, args = [ [0] = 17, [1] = 1218120612, [2] = 0, [3] = 268526120, [4] = 32, [5] = 4294967232 ] }
[2078776095757] exit_syscall: { 0 }, { ret = 1 }
[2078776238357] softirq_raise: { 0 }, { vec = 1 }
[2078776245827] softirq_raise: { 0 }, { vec = 9 }
[2078776265487] sched_stat_runtime: { 0 }, { comm = "lttng-consumerd", tid = 418, runtime = 2149408, vruntime = 61169846169 }
[2078776291187] softirq_entry: { 0 }, { vec = 1 }
[2078776306217] softirq_exit: { 0 }, { vec = 1 }
[2078776310607] softirq_entry: { 0 }, { vec = 9 }
[2078776317337] softirq_exit: { 0 }, { vec = 9 }
....snip..........................
The following changes since commit 5797feac5f06f5cc363869cd440b82b3eaafd456:
image-mklibs/package_ipk: Remove bashisms (2012-01-05 22:26:25 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib zumeng/lttng-2.0
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=zumeng/lttng-2.0
Zumeng Chen (4):
lttng-ust: Integrate into yocto linux
lttng-tools: Integrated from git repo.
lttng-modules: from lttng-modules 2.0 git repo.
babeltrace: Integrated from version 0.8
meta/recipes-kernel/lttng-2.0/babeltrace_0.8.bb | 30 ++++++++++++++
...modules-replace-KERNELDIR-with-KERNEL_SRC.patch | 41 ++++++++++++++++++++
.../lttng-2.0/lttng-modules_v2.0.pre11.bb | 23 +++++++++++
...-compiling-error-for-powerpc-arm-and-mips.patch | 23 +++++++++++
.../lttng-2.0/lttng-tools_2.0-pre16.bb | 24 +++++++++++
meta/recipes-kernel/lttng-2.0/lttng-ust_1.9.4.bb | 23 +++++++++++
6 files changed, 164 insertions(+), 0 deletions(-)
create mode 100644 meta/recipes-kernel/lttng-2.0/babeltrace_0.8.bb
create mode 100644 meta/recipes-kernel/lttng-2.0/lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch
create mode 100644 meta/recipes-kernel/lttng-2.0/lttng-modules_v2.0.pre11.bb
create mode 100644 meta/recipes-kernel/lttng-2.0/lttng-tools-fix-compiling-error-for-powerpc-arm-and-mips.patch
create mode 100644 meta/recipes-kernel/lttng-2.0/lttng-tools_2.0-pre16.bb
create mode 100644 meta/recipes-kernel/lttng-2.0/lttng-ust_1.9.4.bb
--
1.7.5.4
next reply other threads:[~2012-01-06 6:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-06 6:11 Zumeng Chen [this message]
2012-01-06 6:11 ` [PATCH 1/4] lttng-ust: Integrate into yocto linux Zumeng Chen
2012-01-07 2:01 ` Darren Hart
2012-01-09 4:27 ` Zumeng Chen
2012-01-06 6:11 ` [PATCH 2/4] lttng-tools: Integrated from git repo Zumeng Chen
2012-01-06 6:27 ` Zumeng Chen
2012-01-07 2:05 ` Darren Hart
2012-01-09 4:31 ` Zumeng Chen
2012-01-06 6:11 ` [PATCH 3/4] lttng-modules: from lttng-modules 2.0 " Zumeng Chen
2012-01-07 2:10 ` Darren Hart
2012-01-09 4:33 ` Zumeng Chen
2012-01-06 6:11 ` [PATCH 4/4] babeltrace: Integrated from version 0.8 Zumeng Chen
2012-01-07 15:54 ` Darren Hart
2012-01-09 4:35 ` Zumeng Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1325824274.git.zumeng.chen@windriver.com \
--to=zumeng.chen@windriver.com \
--cc=bruce.ashfield@windriver.com \
--cc=richard.purdie@linuxfoundation.org \
--cc=sgw@linux.intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.