diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2010-08-20 12:24:43 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 13:00:06 +0100 |
commit | e76f76a37d046957f46814d9a106f0f5b4f8af72 (patch) | |
tree | cadd962b3cdc9e64cde697a8efa9f032371217f0 | |
parent | 70cd1ff43ff1109847cce2f2fe891fb9bdfdb3b2 (diff) | |
download | poky-e76f76a37d046957f46814d9a106f0f5b4f8af72.tar.gz |
ftrace: add trace-cmd for ftrace control and config
Rather than manually configuring ftrace, trace-cmd was created
to provide a more user friendly interface to the tracer.
Some examples are:
# ./trace-cmd record -e all ls /bin
Then to see the information:
# ./trace-cmd report
To see just a subsystem:
# ./trace-cmd record -e irq ls /bin
To list the available trace events:
# ./trace-cmd list -e
You can also trace a single trace point with one of two methods:
# ./trace-cmd record -e sched:sched_wakeup ls /bin
Or simply:
# ./trace-cmd record -e sched_wakeup ls /bin
This tool also works with tracers (plugins) as well as events
# ./trace-cmd list -p
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | meta/conf/distro/include/poky-default-revisions.inc | 1 | ||||
-rw-r--r-- | meta/packages/trace-cmd/trace-cmd_git.bb | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/meta/conf/distro/include/poky-default-revisions.inc b/meta/conf/distro/include/poky-default-revisions.inc index 19d69aa2d1..e0b46120bd 100644 --- a/meta/conf/distro/include/poky-default-revisions.inc +++ b/meta/conf/distro/include/poky-default-revisions.inc | |||
@@ -123,6 +123,7 @@ SRCREV_pn-qemugl-nativesdk ??= "d888bbc723c00d197d34a39b5b7448660ec1b1c0" | |||
123 | SRCREV_pn-screenshot ??= "292" | 123 | SRCREV_pn-screenshot ??= "292" |
124 | SRCREV_pn-table ??= "4b267533ce16656cba4104fc39dc12709c1bdddf" | 124 | SRCREV_pn-table ??= "4b267533ce16656cba4104fc39dc12709c1bdddf" |
125 | SRCREV_pn-tasks ??= "ea52d46d691c5fce4473ea4e24a35411381f3a65" | 125 | SRCREV_pn-tasks ??= "ea52d46d691c5fce4473ea4e24a35411381f3a65" |
126 | SRCREV_pn-trace-cmd ??= "0d252224626bd6926324f023a65f20c165232891" | ||
126 | SRCREV_pn-tidy ??= "e25416e1293e1074bfa6727c80527dcff5b1f3cb" | 127 | SRCREV_pn-tidy ??= "e25416e1293e1074bfa6727c80527dcff5b1f3cb" |
127 | SRCREV_pn-settings-daemon ??= "2059" | 128 | SRCREV_pn-settings-daemon ??= "2059" |
128 | SRCREV_pn-ubootchart ??= "10" | 129 | SRCREV_pn-ubootchart ??= "10" |
diff --git a/meta/packages/trace-cmd/trace-cmd_git.bb b/meta/packages/trace-cmd/trace-cmd_git.bb new file mode 100644 index 0000000000..57d54d6683 --- /dev/null +++ b/meta/packages/trace-cmd/trace-cmd_git.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | DESCRIPTION = "User interface to Ftrace" | ||
2 | LICENSE = "GPL" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
4 | |||
5 | DEPENDS = "glibc" | ||
6 | |||
7 | PR = r0 | ||
8 | PV = "1.0.4+git${SRCPV}" | ||
9 | |||
10 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git" | ||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | |||
14 | do_compile() { | ||
15 | oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix} | ||
16 | } | ||
17 | |||
18 | do_install() { | ||
19 | oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \ | ||
20 | prefix=${prefix} DESTDIR=${D} install | ||
21 | } | ||