From f1f05d477b7698a30c0d909f8fcc0fc60c175bda Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 11 Mar 2006 17:33:10 +0000 Subject: [PATCH] initial move git-svn-id: http://ltt.polymtl.ca/svn@1685 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt-control/AUTHORS | 25 +++ ltt-control/Makefile.am | 6 + ltt-control/README | 77 ++++++++++ ltt-control/configure.in | 144 ++++++++++++++++++ .../facilities/Makefile.am | 0 .../poly => ltt-control}/facilities/core.xml | 0 .../poly => ltt-control}/facilities/fs.xml | 0 .../poly => ltt-control}/facilities/ipc.xml | 0 .../facilities/kernel.xml | 0 .../facilities/kernel_arch_arm.xml | 0 .../facilities/kernel_arch_i386.xml | 0 .../facilities/kernel_arch_mips.xml | 0 .../facilities/locking.xml | 0 .../facilities/memory.xml | 0 .../facilities/network.xml | 0 .../facilities/network_ip_interface.xml | 0 .../facilities/process.xml | 0 .../facilities/socket.xml | 0 .../facilities/stack_arch_i386.xml | 0 .../facilities/statedump.xml | 0 .../poly => ltt-control}/facilities/timer.xml | 0 .../facilities/user_generic.xml | 0 .../liblttctl/Makefile.am | 0 .../liblttctl/liblttctl.c | 0 .../poly => ltt-control}/liblttctl/lttctl.h | 0 .../poly => ltt-control}/lttctl/Makefile.am | 0 .../poly => ltt-control}/lttctl/lttctl.c | 0 .../poly => ltt-control}/lttd/Makefile.am | 0 .../branches/poly => ltt-control}/lttd/lttd.c | 0 29 files changed, 252 insertions(+) create mode 100644 ltt-control/AUTHORS create mode 100644 ltt-control/Makefile.am create mode 100644 ltt-control/README create mode 100644 ltt-control/configure.in rename {ltt/branches/poly => ltt-control}/facilities/Makefile.am (100%) rename {ltt/branches/poly => ltt-control}/facilities/core.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/fs.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/ipc.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/kernel.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/kernel_arch_arm.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/kernel_arch_i386.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/kernel_arch_mips.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/locking.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/memory.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/network.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/network_ip_interface.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/process.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/socket.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/stack_arch_i386.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/statedump.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/timer.xml (100%) rename {ltt/branches/poly => ltt-control}/facilities/user_generic.xml (100%) rename {ltt/branches/poly => ltt-control}/liblttctl/Makefile.am (100%) rename {ltt/branches/poly => ltt-control}/liblttctl/liblttctl.c (100%) rename {ltt/branches/poly => ltt-control}/liblttctl/lttctl.h (100%) rename {ltt/branches/poly => ltt-control}/lttctl/Makefile.am (100%) rename {ltt/branches/poly => ltt-control}/lttctl/lttctl.c (100%) rename {ltt/branches/poly => ltt-control}/lttd/Makefile.am (100%) rename {ltt/branches/poly => ltt-control}/lttd/lttd.c (100%) diff --git a/ltt-control/AUTHORS b/ltt-control/AUTHORS new file mode 100644 index 00000000..032edf04 --- /dev/null +++ b/ltt-control/AUTHORS @@ -0,0 +1,25 @@ +Linux Trace Toolkit Viewer + +Contributors : + +Michel Dagenais (New trace format, lttv main) +Mathieu Desnoyers (Kernel Tracer, Directory structure, build with automake/conf, + lttv gui, control flow view, gui cooperative trace reading + scheduler with interruptible foreground and background + computation, detailed event list (rewrite), trace reading + library (rewrite)) +Benoit Des Ligneris, Éric Clement (Cluster adaptation, work in progress) +Xang-Xiu Yang (trace reading library and converter, lttv gui, + detailed event list and statistics view) +Tom Zanussi (RelayFS) + +Strongly inspired from the original Linux Trace Toolkit Visualizer made by +Karim Yaghmour. + +Linux Trace Toolkit Viewer, Copyright (C) 2004 + Michel Dagenais + Mathieu Desnoyers + Xang-Xiu Yang +Linux Trace Toolkit comes with ABSOLUTELY NO WARRANTY. +This is free software, and you are welcome to redistribute it +under certain conditions. See COPYING for details. diff --git a/ltt-control/Makefile.am b/ltt-control/Makefile.am new file mode 100644 index 00000000..66afa906 --- /dev/null +++ b/ltt-control/Makefile.am @@ -0,0 +1,6 @@ +# WARNING : ltt must come before lttv, so that the traceread library is +# up to date + +SUBDIRS = liblttctl ltt lttctl lttv lttd doc facilities + +EXTRA_DIST = QUICKSTART diff --git a/ltt-control/README b/ltt-control/README new file mode 100644 index 00000000..836472ad --- /dev/null +++ b/ltt-control/README @@ -0,0 +1,77 @@ + +This package contains the trace reading library and trace viewing tools for +the new Linux Trace Toolkit trace format. It also contains the lttd, lttctl and +liblttctl programs which are necessary to obtain a trace. + +* Compiling + +gcc 3.2 or better +gtk 2.4 or better development libraries + (Debian : libgtk2.0, libgtk2.0-dev) + (Fedora : gtk2, gtk2-devel) + note : For Fedora users : this might require at least core 3 from Fedora, + or you might have to compile your own GTK2 library. +glib 2.4 or better development libraries + (Debian : libglib2.0-0, libglib2.0-dev) + (Fedora : glib2, glib2-devel) +libpopt development libraries + (Debian : libpopt0, libpopt-dev) + (Fedora : popt) +libpango development libraries + (Debian : libpango1.0, libpango1.0-dev) + (Fedora : pango, pango-devel) +libc6 development librairies + (Debian : libc6, libc6-dev) + (Fedora : glibc, glibc) + + +To compile the source tree from a tarball, simply follow these steps : + +- ./configure +- make +- make install + +After running ./configure, you can also go in specific subdirectories and +use make, make install. + + +* Quick Start + +See QUICKSTART + +* Source Tree Structure + +Here is the tree structure of the Linux Trace Toolkit Viewer package. + +ltt: new trace format reading library. +README: This file. +debian: debian config files (currently empty). +doc: Documentation. +doc/user: User related documentation. +doc/developer: Developer related documentation. +liblttctl: Library to communicate with the kernel tracer control module. +lttctl: Command line program to use the liblttctl library. +lttd: Linux Trace Toolkit daemon. +lttv: Linux Trace Toolkit trace analysis tool and viewer. +lttv/modules: Linux Trace Toolkit analysis tool and viewer plugin modules. +specs: RPM config files (currently empty). + + +* For Developers + +This source tree is based on the autotools suite from GNU to simplify +portability. Here are some things you should have on your system in order to +compile the subversion repository tree : + + +GNU autotools (automake-1,7, autoconf2.50, autoheader2.50) +(make sure your system wide "automake" points to version 1.7!) +GNU Libtool +(for more information, go to http://www.gnu.org/software/autoconf/) + +If you get the tree from the repository, you will need to use the autogen.sh +script. It calls all the GNU tools needed to prepare the tree configuration. + + + +Mathieu Desnoyers diff --git a/ltt-control/configure.in b/ltt-control/configure.in new file mode 100644 index 00000000..b9b8c831 --- /dev/null +++ b/ltt-control/configure.in @@ -0,0 +1,144 @@ +# This file is part of the Linux Trace Toolkit viewer +# Copyright (C) 2003-2004 Mathieu Desnoyers +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License Version 2 as +# published by the Free Software Foundation; +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, +# MA 02111-1307, USA. + + + +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.57) +AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) +#AC_WITH_LTDL # not needed ? +AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.31-11032006) +AM_CONFIG_HEADER(config.h) +AM_PROG_LIBTOOL + +AM_PATH_GLIB_2_0(2.4.0, ,AC_MSG_ERROR([glib is required in order to compile LinuxTraceToolkit - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule) + +AM_PATH_GTK_2_0(2.4.0, ,AC_MSG_ERROR([gtk is required in order to compile GUI - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule) + +AC_PATH_PROGS(BASH, bash) + +AC_SYS_LARGEFILE + +# Checks for programs. +AC_PROG_CC + +# Checks for libraries. +AC_CHECK_LIB([popt], [poptGetNextOpt], POPT_LIBS="-lpopt",AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) ) +#AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) ) + +AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is +required in order to compile LinuxTraceToolkit])) + + +# pthread for lttd +AC_CHECK_LIB(pthread, pthread_join,[THREAD_LIBS="-lpthread"], AC_MSG_ERROR([LinuxThreads is required in order to compile lttd])) + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h]) + +AC_ISC_POSIX +AC_PROG_CC +AM_PROG_CC_STDC +AC_HEADER_STDC + +pkg_modules="gtk+-2.0 >= 2.0.0" +PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) +PACKAGE_CFLAGS="-Wall -Wformat" +AC_SUBST(PACKAGE_CFLAGS) +AC_SUBST(PACKAGE_LIBS) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_CONST +AC_C_INLINE +AC_TYPE_OFF_T +AC_TYPE_SIZE_T +AC_HEADER_TIME + +# Checks for library functions. +AC_FUNC_ERROR_AT_LINE +#AC_FUNC_MALLOC +AC_FUNC_SELECT_ARGTYPES +AC_CHECK_FUNCS([select]) + +#CPPFLAGS="$CPPFLAGS -I" + +AM_CONDITIONAL(LTTVSTATIC, test "$enable_lttvstatic" = yes) +lttvlibdir="${libdir}/lttv" +lttvplugindir="${lttvlibdir}/plugins" +#lttlibdir="${libdir}/ltt" +top_lttvdir="\$(top_srcdir)/lttv" +top_lttvwindowdir="\$(top_srcdir)/lttv/modules/gui/lttvwindow" + +DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_lttvdir) -I\$(top_lttvwindowdir)" + +#CPPFLAGS="${GLIB_CFLAGS}" +#AC_SUBST(CPPFLAGS) + +lttincludedir="${includedir}/ltt" +lttvincludedir="${includedir}/lttv" +lttvwindowincludedir="${includedir}/lttvwindow" +lttctlincludedir="${includedir}/liblttctl" + +AC_SUBST(POPT_LIBS) +AC_SUBST(UTIL_LIBS) +AC_SUBST(THREAD_LIBS) +AC_SUBST(lttvlibdir) +AC_SUBST(lttvplugindir) +#AC_SUBST(lttlibdir) +AC_SUBST(top_lttvdir) +AC_SUBST(top_lttvwindowdir) +AC_SUBST(DEFAULT_INCLUDES) +AC_SUBST(lttincludedir) +AC_SUBST(lttvincludedir) +AC_SUBST(lttvwindowincludedir) +AC_SUBST(lttctlincludedir) + +AC_CONFIG_FILES([Makefile + liblttctl/Makefile + lttctl/Makefile + lttv/Makefile + lttv/lttv/Makefile + lttv/modules/Makefile + lttv/modules/text/Makefile + lttv/modules/gui/Makefile + lttv/modules/gui/lttvwindow/Makefile + lttv/modules/gui/interrupts/Makefile + lttv/modules/gui/diskperformance/Makefile + lttv/modules/gui/lttvwindow/lttvwindow/Makefile + lttv/modules/gui/lttvwindow/pixmaps/Makefile + lttv/modules/gui/controlflow/Makefile + lttv/modules/gui/detailedevents/Makefile + lttv/modules/gui/statistics/Makefile + lttv/modules/gui/filter/Makefile + lttv/modules/gui/tracecontrol/Makefile + lttd/Makefile + ltt/Makefile + doc/Makefile + doc/developer/Makefile + doc/developer/developer_guide/Makefile + doc/developer/developer_guide/docbook/Makefile + doc/developer/developer_guide/html/Makefile + doc/user/Makefile + doc/user/user_guide/Makefile + doc/user/user_guide/docbook/Makefile + doc/user/user_guide/html/Makefile + facilities/Makefile]) +AC_OUTPUT diff --git a/ltt/branches/poly/facilities/Makefile.am b/ltt-control/facilities/Makefile.am similarity index 100% rename from ltt/branches/poly/facilities/Makefile.am rename to ltt-control/facilities/Makefile.am diff --git a/ltt/branches/poly/facilities/core.xml b/ltt-control/facilities/core.xml similarity index 100% rename from ltt/branches/poly/facilities/core.xml rename to ltt-control/facilities/core.xml diff --git a/ltt/branches/poly/facilities/fs.xml b/ltt-control/facilities/fs.xml similarity index 100% rename from ltt/branches/poly/facilities/fs.xml rename to ltt-control/facilities/fs.xml diff --git a/ltt/branches/poly/facilities/ipc.xml b/ltt-control/facilities/ipc.xml similarity index 100% rename from ltt/branches/poly/facilities/ipc.xml rename to ltt-control/facilities/ipc.xml diff --git a/ltt/branches/poly/facilities/kernel.xml b/ltt-control/facilities/kernel.xml similarity index 100% rename from ltt/branches/poly/facilities/kernel.xml rename to ltt-control/facilities/kernel.xml diff --git a/ltt/branches/poly/facilities/kernel_arch_arm.xml b/ltt-control/facilities/kernel_arch_arm.xml similarity index 100% rename from ltt/branches/poly/facilities/kernel_arch_arm.xml rename to ltt-control/facilities/kernel_arch_arm.xml diff --git a/ltt/branches/poly/facilities/kernel_arch_i386.xml b/ltt-control/facilities/kernel_arch_i386.xml similarity index 100% rename from ltt/branches/poly/facilities/kernel_arch_i386.xml rename to ltt-control/facilities/kernel_arch_i386.xml diff --git a/ltt/branches/poly/facilities/kernel_arch_mips.xml b/ltt-control/facilities/kernel_arch_mips.xml similarity index 100% rename from ltt/branches/poly/facilities/kernel_arch_mips.xml rename to ltt-control/facilities/kernel_arch_mips.xml diff --git a/ltt/branches/poly/facilities/locking.xml b/ltt-control/facilities/locking.xml similarity index 100% rename from ltt/branches/poly/facilities/locking.xml rename to ltt-control/facilities/locking.xml diff --git a/ltt/branches/poly/facilities/memory.xml b/ltt-control/facilities/memory.xml similarity index 100% rename from ltt/branches/poly/facilities/memory.xml rename to ltt-control/facilities/memory.xml diff --git a/ltt/branches/poly/facilities/network.xml b/ltt-control/facilities/network.xml similarity index 100% rename from ltt/branches/poly/facilities/network.xml rename to ltt-control/facilities/network.xml diff --git a/ltt/branches/poly/facilities/network_ip_interface.xml b/ltt-control/facilities/network_ip_interface.xml similarity index 100% rename from ltt/branches/poly/facilities/network_ip_interface.xml rename to ltt-control/facilities/network_ip_interface.xml diff --git a/ltt/branches/poly/facilities/process.xml b/ltt-control/facilities/process.xml similarity index 100% rename from ltt/branches/poly/facilities/process.xml rename to ltt-control/facilities/process.xml diff --git a/ltt/branches/poly/facilities/socket.xml b/ltt-control/facilities/socket.xml similarity index 100% rename from ltt/branches/poly/facilities/socket.xml rename to ltt-control/facilities/socket.xml diff --git a/ltt/branches/poly/facilities/stack_arch_i386.xml b/ltt-control/facilities/stack_arch_i386.xml similarity index 100% rename from ltt/branches/poly/facilities/stack_arch_i386.xml rename to ltt-control/facilities/stack_arch_i386.xml diff --git a/ltt/branches/poly/facilities/statedump.xml b/ltt-control/facilities/statedump.xml similarity index 100% rename from ltt/branches/poly/facilities/statedump.xml rename to ltt-control/facilities/statedump.xml diff --git a/ltt/branches/poly/facilities/timer.xml b/ltt-control/facilities/timer.xml similarity index 100% rename from ltt/branches/poly/facilities/timer.xml rename to ltt-control/facilities/timer.xml diff --git a/ltt/branches/poly/facilities/user_generic.xml b/ltt-control/facilities/user_generic.xml similarity index 100% rename from ltt/branches/poly/facilities/user_generic.xml rename to ltt-control/facilities/user_generic.xml diff --git a/ltt/branches/poly/liblttctl/Makefile.am b/ltt-control/liblttctl/Makefile.am similarity index 100% rename from ltt/branches/poly/liblttctl/Makefile.am rename to ltt-control/liblttctl/Makefile.am diff --git a/ltt/branches/poly/liblttctl/liblttctl.c b/ltt-control/liblttctl/liblttctl.c similarity index 100% rename from ltt/branches/poly/liblttctl/liblttctl.c rename to ltt-control/liblttctl/liblttctl.c diff --git a/ltt/branches/poly/liblttctl/lttctl.h b/ltt-control/liblttctl/lttctl.h similarity index 100% rename from ltt/branches/poly/liblttctl/lttctl.h rename to ltt-control/liblttctl/lttctl.h diff --git a/ltt/branches/poly/lttctl/Makefile.am b/ltt-control/lttctl/Makefile.am similarity index 100% rename from ltt/branches/poly/lttctl/Makefile.am rename to ltt-control/lttctl/Makefile.am diff --git a/ltt/branches/poly/lttctl/lttctl.c b/ltt-control/lttctl/lttctl.c similarity index 100% rename from ltt/branches/poly/lttctl/lttctl.c rename to ltt-control/lttctl/lttctl.c diff --git a/ltt/branches/poly/lttd/Makefile.am b/ltt-control/lttd/Makefile.am similarity index 100% rename from ltt/branches/poly/lttd/Makefile.am rename to ltt-control/lttd/Makefile.am diff --git a/ltt/branches/poly/lttd/lttd.c b/ltt-control/lttd/lttd.c similarity index 100% rename from ltt/branches/poly/lttd/lttd.c rename to ltt-control/lttd/lttd.c -- 2.34.1