diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/lttng | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | openembedded-core-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz openembedded-core-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.bz2 openembedded-core-b2f192faabe412adce79534e22efe9fb69ee40e2.zip |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/lttng')
-rw-r--r-- | meta/packages/lttng/lttng-control-0.10/lttctl_sti-r0.patch | 147 | ||||
-rw-r--r-- | meta/packages/lttng/lttng-control-0.6/lttctl_sti-r0.patch | 134 | ||||
-rw-r--r-- | meta/packages/lttng/lttng-control_0.10.bb | 17 | ||||
-rw-r--r-- | meta/packages/lttng/lttng-control_0.6.bb | 16 | ||||
-rw-r--r-- | meta/packages/lttng/lttng-viewer_0.8.41-20060512.bb | 20 |
5 files changed, 334 insertions, 0 deletions
diff --git a/meta/packages/lttng/lttng-control-0.10/lttctl_sti-r0.patch b/meta/packages/lttng/lttng-control-0.10/lttctl_sti-r0.patch new file mode 100644 index 0000000000..9b04752bca --- /dev/null +++ b/meta/packages/lttng/lttng-control-0.10/lttctl_sti-r0.patch @@ -0,0 +1,147 @@ +Index: ltt-control-0.6-28042006/liblttctl/liblttctl.c +=================================================================== +--- ltt-control-0.6-28042006.orig/liblttctl/liblttctl.c 2006-03-11 17:30:32.000000000 +0000 ++++ ltt-control-0.6-28042006/liblttctl/liblttctl.c 2006-06-01 14:39:05.000000000 +0100 +@@ -298,7 +298,7 @@ + + + int lttctl_create_trace(const struct lttctl_handle *h, +- char *name, enum trace_mode mode, unsigned subbuf_size, unsigned n_subbufs) ++ char *name, enum trace_mode mode, char *trace_type, unsigned subbuf_size, unsigned n_subbufs) + { + int err; + +@@ -320,6 +320,7 @@ + req.nlh.nlmsg_seq = 0; + + strncpy(req.msg.trace_name, name, NAME_MAX); ++ strncpy(req.msg.trace_type, trace_type, NAME_MAX); + req.msg.op = OP_CREATE; + req.msg.args.new_trace.mode = mode; + req.msg.args.new_trace.subbuf_size = subbuf_size; +Index: ltt-control-0.6-28042006/liblttctl/lttctl.h +=================================================================== +--- ltt-control-0.6-28042006.orig/liblttctl/lttctl.h 2006-03-11 17:30:32.000000000 +0000 ++++ ltt-control-0.6-28042006/liblttctl/lttctl.h 2006-06-01 14:40:16.000000000 +0100 +@@ -47,6 +47,7 @@ + + typedef struct lttctl_peer_msg { + char trace_name[NAME_MAX]; ++ char trace_type[NAME_MAX]; + enum trace_op op; + union { + struct { +@@ -76,7 +77,7 @@ + + + int lttctl_create_trace(const struct lttctl_handle *h, +- char *name, enum trace_mode mode, unsigned subbuf_size, unsigned n_subbufs); ++ char *name, enum trace_mode mode, char *trace_type, unsigned subbuf_size, unsigned n_subbufs); + + int lttctl_destroy_trace(const struct lttctl_handle *handle, char *name); + +Index: ltt-control-0.6-28042006/lttctl/lttctl.c +=================================================================== +--- ltt-control-0.6-28042006.orig/lttctl/lttctl.c 2006-03-11 17:30:27.000000000 +0000 ++++ ltt-control-0.6-28042006/lttctl/lttctl.c 2006-06-01 14:40:47.000000000 +0100 +@@ -40,6 +40,7 @@ + }; + + static char *trace_name = NULL; ++static char *trace_type = "relayfs"; + static char *mode_name = NULL; + static unsigned subbuf_size = 0; + static unsigned n_subbufs = 0; +@@ -81,6 +82,7 @@ + printf(" (optionnaly, you can set LTT_DAEMON\n"); + printf(" and the LTT_FACILITIES env. vars.)\n"); + printf("-t Trace root path. (ex. /root/traces/example_trace)\n"); ++ printf("-T Type of trace (ex. relayfs, sti, stirelayfs)\n"); + printf("-l LTT channels root path. (ex. /mnt/relayfs/ltt)\n"); + printf("-z Size of the subbuffers (will be rounded to next page size)\n"); + printf("-x Number of subbuffers\n"); +@@ -217,6 +219,16 @@ + argn++; + } + break; ++ case 'T': ++ if(argn+1 < argc) { ++ trace_type = argv[argn+1]; ++ argn++; ++ } else { ++ printf("Specify a trace type after -T.\n"); ++ printf("\n"); ++ ret = EINVAL; ++ } ++ break; + default: + printf("Invalid argument '%s'.\n", argv[argn]); + printf("\n"); +@@ -390,7 +402,7 @@ + strcat(channel_path, trace_name); + + +- ret = lttctl_create_trace(handle, trace_name, mode, subbuf_size, n_subbufs); ++ ret = lttctl_create_trace(handle, trace_name, mode, trace_type, subbuf_size, n_subbufs); + if(ret != 0) goto create_error; + + act.sa_handler = sigchld_handler; +@@ -466,13 +478,13 @@ + + switch(op) { + case CTL_OP_CREATE_START: +- ret = lttctl_create_trace(handle, trace_name, mode, subbuf_size, ++ ret = lttctl_create_trace(handle, trace_name, mode, trace_type, subbuf_size, + n_subbufs); + if(!ret) + ret = lttctl_start(handle, trace_name); + break; + case CTL_OP_CREATE: +- ret = lttctl_create_trace(handle, trace_name, mode, subbuf_size, ++ ret = lttctl_create_trace(handle, trace_name, mode, trace_type, subbuf_size, + n_subbufs); + break; + case CTL_OP_DESTROY: +Index: ltt-control-0.6-28042006/facilities/dynticks.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ ltt-control-0.6-28042006/facilities/dynticks.xml 2006-06-05 18:03:41.000000000 +0100 +@@ -0,0 +1,18 @@ ++<?xml version="1.0"?> ++<facility name="dynticks"> ++ <description>Dynamic Timer Events</description> ++ ++ <event name="handler_entry"> ++ <description>Dynticks Handler Entered</description> ++ </event> ++ ++ <event name="handler_exit"> ++ <description>Dynticks Handler Exitted</description> ++ </event> ++ ++ <event name="reprogram"> ++ <description>Dynticks Reprogram</description> ++ <field name="ticks"><description>Number of ticks to sleep for</description><uint size="4"></field> ++ </event> ++ ++</facility> +Index: ltt-control-0.6-28042006/facilities/Makefile.am +=================================================================== +--- ltt-control-0.6-28042006.orig/facilities/Makefile.am 2006-04-28 21:26:26.000000000 +0100 ++++ ltt-control-0.6-28042006/facilities/Makefile.am 2006-06-05 18:04:30.000000000 +0100 +@@ -1,6 +1,7 @@ + + EXTRA_DIST = \ + core.xml \ ++dynticks.xml \ + fs.xml \ + ipc.xml \ + kernel.xml \ +@@ -21,6 +22,7 @@ + + facilities_DATA = \ + core.xml \ ++dynticks.xml \ + fs.xml \ + ipc.xml \ + kernel.xml \ diff --git a/meta/packages/lttng/lttng-control-0.6/lttctl_sti-r0.patch b/meta/packages/lttng/lttng-control-0.6/lttctl_sti-r0.patch new file mode 100644 index 0000000000..f1e45ac159 --- /dev/null +++ b/meta/packages/lttng/lttng-control-0.6/lttctl_sti-r0.patch @@ -0,0 +1,134 @@ +Index: ltt-control-0.6-28042006/liblttctl/liblttctl.c +=================================================================== +--- ltt-control-0.6-28042006.orig/liblttctl/liblttctl.c 2006-03-11 17:30:32.000000000 +0000 ++++ ltt-control-0.6-28042006/liblttctl/liblttctl.c 2006-05-12 11:21:13.000000000 +0100 +@@ -298,7 +298,7 @@ + + + int lttctl_create_trace(const struct lttctl_handle *h, +- char *name, enum trace_mode mode, unsigned subbuf_size, unsigned n_subbufs) ++ char *name, enum trace_mode mode, enum ltt_trace_type type, unsigned subbuf_size, unsigned n_subbufs) + { + int err; + +@@ -324,6 +324,7 @@ + req.msg.args.new_trace.mode = mode; + req.msg.args.new_trace.subbuf_size = subbuf_size; + req.msg.args.new_trace.n_subbufs = n_subbufs; ++ req.msg.args.new_trace.type = type; + + err = lttctl_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len); + if(err < 0) goto senderr; +Index: ltt-control-0.6-28042006/liblttctl/lttctl.h +=================================================================== +--- ltt-control-0.6-28042006.orig/liblttctl/lttctl.h 2006-03-11 17:30:32.000000000 +0000 ++++ ltt-control-0.6-28042006/liblttctl/lttctl.h 2006-05-12 11:20:46.000000000 +0100 +@@ -45,6 +45,12 @@ + LTT_TRACE_FLIGHT + }; + ++enum ltt_trace_type { ++ LTT_TYPE_RELAYFS, ++ LTT_TYPE_STI, ++ LTT_TYPE_STIRELAYFS ++}; ++ + typedef struct lttctl_peer_msg { + char trace_name[NAME_MAX]; + enum trace_op op; +@@ -53,6 +59,7 @@ + enum trace_mode mode; + unsigned subbuf_size; + unsigned n_subbufs; ++ enum ltt_trace_type type; + } new_trace; + } args; + } lttctl_peer_msg_t; +@@ -76,7 +83,7 @@ + + + int lttctl_create_trace(const struct lttctl_handle *h, +- char *name, enum trace_mode mode, unsigned subbuf_size, unsigned n_subbufs); ++ char *name, enum trace_mode mode, enum ltt_trace_type type, unsigned subbuf_size, unsigned n_subbufs); + + int lttctl_destroy_trace(const struct lttctl_handle *handle, char *name); + +Index: ltt-control-0.6-28042006/lttctl/lttctl.c +=================================================================== +--- ltt-control-0.6-28042006.orig/lttctl/lttctl.c 2006-03-11 17:30:27.000000000 +0000 ++++ ltt-control-0.6-28042006/lttctl/lttctl.c 2006-05-12 11:19:53.000000000 +0100 +@@ -40,11 +40,13 @@ + }; + + static char *trace_name = NULL; ++static char *trace_type = NULL; + static char *mode_name = NULL; + static unsigned subbuf_size = 0; + static unsigned n_subbufs = 0; + static unsigned append_trace = 0; + static enum trace_mode mode = LTT_TRACE_NORMAL; ++static enum ltt_trace_type type = LTT_TYPE_RELAYFS; + static enum trace_ctl_op op = CTL_OP_NONE; + static char *channel_root = NULL; + static char *trace_root = NULL; +@@ -81,6 +83,7 @@ + printf(" (optionnaly, you can set LTT_DAEMON\n"); + printf(" and the LTT_FACILITIES env. vars.)\n"); + printf("-t Trace root path. (ex. /root/traces/example_trace)\n"); ++ printf("-T Type of trace (ex. relayfs, sti, stirelayfs)\n"); + printf("-l LTT channels root path. (ex. /mnt/relayfs/ltt)\n"); + printf("-z Size of the subbuffers (will be rounded to next page size)\n"); + printf("-x Number of subbuffers\n"); +@@ -217,6 +220,27 @@ + argn++; + } + break; ++ case 'T': ++ if(argn+1 < argc) { ++ trace_type = argv[argn+1]; ++ argn++; ++ if(strcmp(trace_type, "relayfs") == 0) ++ type = LTT_TYPE_RELAYFS; ++ else if(strcmp(trace_type, "sti") == 0) ++ type = LTT_TYPE_STI; ++ else if(strcmp(trace_type, "stirelayfs") == 0) ++ type = LTT_TYPE_STIRELAYFS; ++ else { ++ printf("Invalid trace type '%s'.\n", argv[argn]); ++ printf("\n"); ++ ret = EINVAL; ++ } ++ } else { ++ printf("Specify a trace type after -T.\n"); ++ printf("\n"); ++ ret = EINVAL; ++ } ++ break; + default: + printf("Invalid argument '%s'.\n", argv[argn]); + printf("\n"); +@@ -390,7 +414,7 @@ + strcat(channel_path, trace_name); + + +- ret = lttctl_create_trace(handle, trace_name, mode, subbuf_size, n_subbufs); ++ ret = lttctl_create_trace(handle, trace_name, mode, type, subbuf_size, n_subbufs); + if(ret != 0) goto create_error; + + act.sa_handler = sigchld_handler; +@@ -466,13 +490,13 @@ + + switch(op) { + case CTL_OP_CREATE_START: +- ret = lttctl_create_trace(handle, trace_name, mode, subbuf_size, ++ ret = lttctl_create_trace(handle, trace_name, mode, type, subbuf_size, + n_subbufs); + if(!ret) + ret = lttctl_start(handle, trace_name); + break; + case CTL_OP_CREATE: +- ret = lttctl_create_trace(handle, trace_name, mode, subbuf_size, ++ ret = lttctl_create_trace(handle, trace_name, mode, type, subbuf_size, + n_subbufs); + break; + case CTL_OP_DESTROY: diff --git a/meta/packages/lttng/lttng-control_0.10.bb b/meta/packages/lttng/lttng-control_0.10.bb new file mode 100644 index 0000000000..24399e4ec8 --- /dev/null +++ b/meta/packages/lttng/lttng-control_0.10.bb @@ -0,0 +1,17 @@ +SECTION = "devel" +DESCRIPTION = "The Linux trace toolkit is a suite of tools designed to \ +extract program execution details from the Linux operating system and \ +interpret them." +LICENSE = "GPL" +MAINTAINER = "Richard Purdie <rpurdie@rpsys.net>" + +SRC_URI = "http://ltt.polymtl.ca/lttng/ltt-control-${PV}-12062006.tar.gz \ + file://lttctl_sti-r0.patch;patch=1 " + +S = "${WORKDIR}/ltt-control-${PV}-12062006" + +inherit autotools + +export KERNELDIR="${STAGING_KERNEL_DIR}" + +FILES_${PN} += "${datadir}/ltt-control/facilities/*"
\ No newline at end of file diff --git a/meta/packages/lttng/lttng-control_0.6.bb b/meta/packages/lttng/lttng-control_0.6.bb new file mode 100644 index 0000000000..b18f507e9d --- /dev/null +++ b/meta/packages/lttng/lttng-control_0.6.bb @@ -0,0 +1,16 @@ +SECTION = "devel" +DESCRIPTION = "The Linux trace toolkit is a suite of tools designed to \ +extract program execution details from the Linux operating system and \ +interpret them." +LICENSE = "GPL" +MAINTAINER = "Richard Purdie <rpurdie@rpsys.net>" + +SRC_URI = "http://ltt.polymtl.ca/lttng/ltt-control-${PV}-28042006.tar.gz" + +S = "${WORKDIR}/ltt-control-${PV}-28042006" + +inherit autotools + +export KERNELDIR="${STAGING_KERNEL_DIR}" + +FILES_${PN} += "${datadir}/ltt-control/facilities/*"
\ No newline at end of file diff --git a/meta/packages/lttng/lttng-viewer_0.8.41-20060512.bb b/meta/packages/lttng/lttng-viewer_0.8.41-20060512.bb new file mode 100644 index 0000000000..c6069bc794 --- /dev/null +++ b/meta/packages/lttng/lttng-viewer_0.8.41-20060512.bb @@ -0,0 +1,20 @@ +SECTION = "devel" +DESCRIPTION = "The Linux trace toolkit is a suite of tools designed to \ +extract program execution details from the Linux operating system and \ +interpret them." +LICENSE = "GPL" +MAINTAINER = "Richrd Purdie <richard@openedhand.com>" +PR = "r1" +DEPENDS = "gtk+ pango popt" + +ALTNAME = "LinuxTraceToolkitViewer-0.8.41-12052006" + +SRC_URI = "http://ltt.polymtl.ca/packages/${ALTNAME}.tar.gz " +S = "${WORKDIR}/${ALTNAME}" + +inherit autotools + +FILES_${PN} += "\ + ${libdir}/lttv/plugins/* \ + ${datadir}/LinuxTraceToolkitViewer/facilities/* \ + ${datadir}/LinuxTraceToolkitViewer/pixmaps/* " |