From ae410d24f7330ba5805ec47285ff61b4f60f4e45 Mon Sep 17 00:00:00 2001 From: compudj Date: Mon, 15 Oct 2007 16:34:05 +0000 Subject: [PATCH] remove facilities from ltt-control git-svn-id: http://ltt.polymtl.ca/svn@2684 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt-control/Makefile.am | 2 +- ltt-control/configure.in | 3 +- ltt-control/facilities/Makefile.am | 49 - ltt-control/facilities/block.xml | 21 - ltt-control/facilities/compact.xml | 46 - ltt-control/facilities/core.xml | 48 - ltt-control/facilities/fs.xml | 131 --- ltt-control/facilities/kernel.xml | 264 ----- ltt-control/facilities/kernel_arch_arm.xml | 397 -------- ltt-control/facilities/kernel_arch_c2.xml | 606 ------------ ltt-control/facilities/kernel_arch_i386.xml | 367 ------- ltt-control/facilities/kernel_arch_mips.xml | 923 ------------------ .../facilities/kernel_arch_powerpc.xml | 347 ------- ltt-control/facilities/kernel_arch_ppc.xml | 347 ------- ltt-control/facilities/kernel_arch_sh.xml | 355 ------- ltt-control/facilities/kernel_arch_x86_64.xml | 658 ------------- ltt-control/facilities/list.xml | 104 -- ltt-control/facilities/locking.xml | 40 - ltt-control/facilities/mm.xml | 47 - ltt-control/facilities/net.xml | 132 --- ltt-control/facilities/stack_arch_i386.xml | 55 -- ltt-control/facilities/stack_arch_x86_64.xml | 75 -- ltt-control/facilities/user_generic.xml | 37 - ltt-control/facilities/xen.xml | 44 - ltt-control/lttd/lttd.c | 3 +- 25 files changed, 3 insertions(+), 5098 deletions(-) delete mode 100644 ltt-control/facilities/Makefile.am delete mode 100644 ltt-control/facilities/block.xml delete mode 100644 ltt-control/facilities/compact.xml delete mode 100644 ltt-control/facilities/core.xml delete mode 100644 ltt-control/facilities/fs.xml delete mode 100644 ltt-control/facilities/kernel.xml delete mode 100644 ltt-control/facilities/kernel_arch_arm.xml delete mode 100644 ltt-control/facilities/kernel_arch_c2.xml delete mode 100644 ltt-control/facilities/kernel_arch_i386.xml delete mode 100644 ltt-control/facilities/kernel_arch_mips.xml delete mode 100644 ltt-control/facilities/kernel_arch_powerpc.xml delete mode 100644 ltt-control/facilities/kernel_arch_ppc.xml delete mode 100644 ltt-control/facilities/kernel_arch_sh.xml delete mode 100644 ltt-control/facilities/kernel_arch_x86_64.xml delete mode 100644 ltt-control/facilities/list.xml delete mode 100644 ltt-control/facilities/locking.xml delete mode 100644 ltt-control/facilities/mm.xml delete mode 100644 ltt-control/facilities/net.xml delete mode 100644 ltt-control/facilities/stack_arch_i386.xml delete mode 100644 ltt-control/facilities/stack_arch_x86_64.xml delete mode 100644 ltt-control/facilities/user_generic.xml delete mode 100644 ltt-control/facilities/xen.xml diff --git a/ltt-control/Makefile.am b/ltt-control/Makefile.am index eb8a7f1..8f9974d 100644 --- a/ltt-control/Makefile.am +++ b/ltt-control/Makefile.am @@ -1,2 +1,2 @@ -SUBDIRS = liblttctl lttctl lttd facilities specs +SUBDIRS = liblttctl lttctl lttd specs diff --git a/ltt-control/configure.in b/ltt-control/configure.in index c604edd..33fe0e1 100644 --- a/ltt-control/configure.in +++ b/ltt-control/configure.in @@ -23,7 +23,7 @@ AC_PREREQ(2.57) AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) #AC_WITH_LTDL # not needed ? -AM_INIT_AUTOMAKE(ltt-control,0.44-21092007) +AM_INIT_AUTOMAKE(ltt-control,0.45-11102007) AM_CONFIG_HEADER(config.h) AM_PROG_LIBTOOL @@ -86,6 +86,5 @@ AC_CONFIG_FILES([Makefile liblttctl/Makefile lttctl/Makefile lttd/Makefile - facilities/Makefile specs/Makefile]) AC_OUTPUT diff --git a/ltt-control/facilities/Makefile.am b/ltt-control/facilities/Makefile.am deleted file mode 100644 index 3f6f698..0000000 --- a/ltt-control/facilities/Makefile.am +++ /dev/null @@ -1,49 +0,0 @@ - -EXTRA_DIST = \ -core.xml \ -fs.xml \ -kernel.xml \ -kernel_arch_arm.xml \ -kernel_arch_c2.xml \ -kernel_arch_i386.xml \ -kernel_arch_mips.xml \ -kernel_arch_powerpc.xml \ -kernel_arch_ppc.xml \ -kernel_arch_sh.xml \ -kernel_arch_x86_64.xml \ -locking.xml \ -mm.xml \ -net.xml \ -stack_arch_i386.xml \ -stack_arch_x86_64.xml \ -list.xml \ -user_generic.xml \ -xen.xml \ -compact.xml \ -block.xml - -facilities_DATA = \ -core.xml \ -fs.xml \ -kernel.xml \ -kernel_arch_arm.xml \ -kernel_arch_c2.xml \ -kernel_arch_i386.xml \ -kernel_arch_mips.xml \ -kernel_arch_powerpc.xml \ -kernel_arch_ppc.xml \ -kernel_arch_sh.xml \ -kernel_arch_x86_64.xml \ -locking.xml \ -mm.xml \ -net.xml \ -stack_arch_i386.xml \ -stack_arch_x86_64.xml \ -list.xml \ -user_generic.xml \ -xen.xml \ -compact.xml \ -block.xml - - -facilitiesdir = $(pkgdatadir)/facilities diff --git a/ltt-control/facilities/block.xml b/ltt-control/facilities/block.xml deleted file mode 100644 index 2b7cfa6..0000000 --- a/ltt-control/facilities/block.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/ltt-control/facilities/compact.xml b/ltt-control/facilities/compact.xml deleted file mode 100644 index e48ae33..0000000 --- a/ltt-control/facilities/compact.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - The compact facility contains high rate compact events. - - - System time values sent periodically to detect cycle counter - rollovers. Useful when only the 32 LSB of the TSC are saved in events - header : we save the full 64 bits in this event. Put here for core.xml - facility compatibility. - - - - - System time, full 64 bits TSC. Saved before trace restart. - Forced write, even if trace is stopped. - - - - - - Compact event with no data - - - - Compact event with 4 bytes of data - - - - - Compact event with 8 bytes of data - - - - - Compact data event - - - - - Compact data event - - - - - - diff --git a/ltt-control/facilities/core.xml b/ltt-control/facilities/core.xml deleted file mode 100644 index b38c6a6..0000000 --- a/ltt-control/facilities/core.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - The core facility contains the basic tracing related events - - - Facility is loaded - - - - - - - - - - - - Facility is unloaded - - - - - System time values sent periodically to detect cycle counter - rollovers. Useful when only the 32 LSB of the TSC are saved in events - header : we save the full 64 bits in this event. - - - - - System time, full 64 bits TSC. Saved before trace restart. - Forced write, even if trace is stopped. - - - - - - Facility is loaded while in state dump - - - - - - - - - - - diff --git a/ltt-control/facilities/fs.xml b/ltt-control/facilities/fs.xml deleted file mode 100644 index d87187e..0000000 --- a/ltt-control/facilities/fs.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - The fs facility contains events related to file system operation - - - Staring to wait for a buffer - Address of the buffer head. - - - - Ending to wait for a buffer - Address of the buffer head. - - - - Executing a file - File name - - - - - - Opening a file - File descriptor - File name - - - - - - Closing a file descriptor - File descriptor - - - - Reading from a file descriptor - File descriptor - Number of bytes to read - - - - Reading from a file descriptor - File descriptor - Number of bytes to read - Position - - - - Read vector from a file descriptor - File descriptor - Vector length - - - - - Write to a file descriptor - File descriptor - Number of bytes to write - - - - Reading from a file descriptor - File descriptor - Number of bytes to read - Position - - - - Write vector to a file descriptor - File descriptor - Vector length - - - - Seek a file descriptor - File descriptor - Number of bytes to write - Number of bytes to write - - - - Seek a file descriptor - File descriptor - Number of bytes to write - Number of bytes to write - - - - - Do a IOCTL on a file descriptor - File descriptor - Command - Argument - - - - Do a select on a file descriptor - File descriptor - Timeout - - - - Do a poll on a file descriptor - File descriptor - - - - Reading from a file descriptor - File descriptor - Number of bytes to read - data read - - - - - - - - - Write to a file descriptor - File descriptor - Number of bytes to write - data written - - - - - - - - diff --git a/ltt-control/facilities/kernel.xml b/ltt-control/facilities/kernel.xml deleted file mode 100644 index 32f831e..0000000 --- a/ltt-control/facilities/kernel.xml +++ /dev/null @@ -1,264 +0,0 @@ - - - The kernel facility has events related to kernel execution status. - - - - - - - - - - - - - - - - - - - - - - - Process fork - PID of the parent process - PID of the child process - Thread group ID of the child process (POSIX PID) - - - - Process exit - PID of the process - - - - Process exit - PID of the process - - - - Process exit - PID of the process we are waiting for - - - - Process exit - PID of the process we are signaling - - - - - Process exit - PID of the process we are waiting for - State of the process we are waiting for : -1 unrunnable, 0 runnable, >0 stopped - - - - Process exit - PID of the process we are waiting for - State of the process we are waiting for : -1 unrunnable, 0 runnable, >0 stopped - - - - Process exit - PID of the process we are waiting for - State of the process we are waiting for : -1 unrunnable, 0 runnable, >0 stopped - - - - Process exit - PID of the process we are waiting for - State of the process we are waiting for : -1 unrunnable, 0 runnable, >0 stopped - Destination CPU - - - - Process exit - Previously scheduled PID - Next PID to be scheduled - State of the process we are scheduling out : -1 unrunnable, 0 runnable, >0 stopped - - - - Kernel printk - Instruction - - - - - - Kernel vprintk - loglevel - - - printk string - - - - - - Instruction - - - - - - An itimer has expired. - - PID of the process to wake up. - - - - - - An interval timer is set. - kind of interval timer. - - - - - - - - - - A timer is added/modified/migrated. - - - - - - - The time is updated (timer interrupt). - - - - - - - - - A timer has expired. - - PID of the process to wake up. - - - - - - Soft IRQ entry - Soft IRQ number - - - - Soft IRQ exit - Soft IRQ number - - - - Low priority tasklet entry - Tasklet function address - Tasklet data address - - - - Low priority tasklet exit - Tasklet function address - Tasklet data address - - - - High priority tasklet entry - Tasklet function address - Tasklet data address - - - - High priority tasklet exit - Tasklet function address - Tasklet data address - - - - Process exit - PID of the kthread we stop - - - - Process exit - Return value of the kthread_stop call - - - - Load module - Module name - - - - - - Unload module - Module name - - - - - - Entry in an irq - IRQ number - Are we executing kernel code - - - - Exit from an IRQ - - - diff --git a/ltt-control/facilities/kernel_arch_arm.xml b/ltt-control/facilities/kernel_arch_arm.xml deleted file mode 100644 index 92ff249..0000000 --- a/ltt-control/facilities/kernel_arch_arm.xml +++ /dev/null @@ -1,397 +0,0 @@ - - - The kernel facility has events related to kernel execution status for the arm architecture. - - - - - - - Entry in a trap - Trap number - Address where trap occured - - - - Exit from a trap - - - - System call entry - Syscall entry number in entry.S - Address from which call was made - - - - System call exit - - - - IPC call - Number of IPC call - First argument - - - - Just created a new kernel thread - PID of the kernel thread - Function called - - - diff --git a/ltt-control/facilities/kernel_arch_c2.xml b/ltt-control/facilities/kernel_arch_c2.xml deleted file mode 100644 index f89a8e6..0000000 --- a/ltt-control/facilities/kernel_arch_c2.xml +++ /dev/null @@ -1,606 +0,0 @@ - - - The kernel facility has events related to kernel execution status - for the MIPS architecture. - - - - - - - System call entry - Syscall entry number in entry.S - - Address from which call was made - - - - System call exit - - diff --git a/ltt-control/facilities/kernel_arch_i386.xml b/ltt-control/facilities/kernel_arch_i386.xml deleted file mode 100644 index fddad46..0000000 --- a/ltt-control/facilities/kernel_arch_i386.xml +++ /dev/null @@ -1,367 +0,0 @@ - - - The kernel facility has events related to kernel execution status for the i386 architecture. - - - - - - - Entry in a trap - Trap number - Address where trap occured - - - - Exit from a trap - - - - System call entry - Syscall entry number in entry.S - Address from which call was made - - - - System call exit - - - - IPC call - Number of IPC call - First argument - - - - Just created a new kernel thread - PID of the kernel thread - Function called - - - diff --git a/ltt-control/facilities/kernel_arch_mips.xml b/ltt-control/facilities/kernel_arch_mips.xml deleted file mode 100644 index 16911ce..0000000 --- a/ltt-control/facilities/kernel_arch_mips.xml +++ /dev/null @@ -1,923 +0,0 @@ - - - The kernel facility has events related to kernel execution status - for the MIPS architecture. - - - - - - - Entry in a trap - Trap number - Address where trap occured - - - - Exit from a trap - - - - System call entry - Syscall entry number in entry.S - Address from which call was made - - - - System call exit - - - - IPC call - Number of IPC call - First argument - - - - Just created a new kernel thread - PID of the kernel thread - Function called - - - diff --git a/ltt-control/facilities/kernel_arch_powerpc.xml b/ltt-control/facilities/kernel_arch_powerpc.xml deleted file mode 100644 index 8d3ee68..0000000 --- a/ltt-control/facilities/kernel_arch_powerpc.xml +++ /dev/null @@ -1,347 +0,0 @@ - - - The kernel facility has events related to kernel execution status for the powerpc architecture. - - - - - - - Entry in a trap - Trap number - Address where trap occured - - - - Exit from a trap - - - - System call entry - Syscall entry number in entry.S - Address from which call was made - - - - System call exit - - - - IPC call - Number of IPC call - First argument - - - - Just created a new kernel thread - PID of the kernel thread - Function called - - - diff --git a/ltt-control/facilities/kernel_arch_ppc.xml b/ltt-control/facilities/kernel_arch_ppc.xml deleted file mode 100644 index 09d45ce..0000000 --- a/ltt-control/facilities/kernel_arch_ppc.xml +++ /dev/null @@ -1,347 +0,0 @@ - - - The kernel facility has events related to kernel execution status for the ppc architecture. - - - - - - - Entry in a trap - Trap number - Address where trap occured - - - - Exit from a trap - - - - System call entry - Syscall entry number in entry.S - Address from which call was made - - - - System call exit - - - - IPC call - Number of IPC call - First argument - - - - Just created a new kernel thread - PID of the kernel thread - Function called - - - diff --git a/ltt-control/facilities/kernel_arch_sh.xml b/ltt-control/facilities/kernel_arch_sh.xml deleted file mode 100644 index 1872863..0000000 --- a/ltt-control/facilities/kernel_arch_sh.xml +++ /dev/null @@ -1,355 +0,0 @@ - - - The kernel facility has events related to kernel execution status for the SH4 architecture. - - - - - - - Entry in a trap - Trap number - Address where trap occured - - - - Exit from a trap - - - - System call entry - Syscall entry number in entry.S - Address from which call was made - - - - System call exit - - - - IPC call - Number of IPC call - First argument - - - - Just created a new kernel thread - PID of the kernel thread - Function called - - - diff --git a/ltt-control/facilities/kernel_arch_x86_64.xml b/ltt-control/facilities/kernel_arch_x86_64.xml deleted file mode 100644 index a65c0af..0000000 --- a/ltt-control/facilities/kernel_arch_x86_64.xml +++ /dev/null @@ -1,658 +0,0 @@ - - - The kernel facility has events related to kernel execution status for the x86_64 architecture. - - - - - - - Entry in a trap - Trap number - Address where trap occured - - - - Exit from a trap - - - - System call entry - Syscall entry number in entry.S - Address from which call was made - - - - System call exit - - - - IPC call - Number of IPC call - First argument - - - - Just created a new kernel thread - PID of the kernel thread - Function called - - - diff --git a/ltt-control/facilities/list.xml b/ltt-control/facilities/list.xml deleted file mode 100644 index 14d8a2f..0000000 --- a/ltt-control/facilities/list.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - The statedump facility contains the events generated at trace startup - - - - - - - - - - - - - - - - - - - - - - - - - - - - List of loaded kernel modules - Module name - Module's state - Number of references to this module - - - - List of open file descriptors - File name - Process identifier - File descriptor index in this process's task_struct - - - - List of active vm maps - Process identifier - VM's start address - VM's end address - VM area flags - VM's page offset - Inode associated with this VM map - - - - List of registered interrupts - Interrupt name - action triggered by interrupt - Interrupt number - - - - State of each process when statedump is performed - Process identifier - Parent process identifier - Process name - Thread type - Execution submode - Execution submode - Process status - Thread group ID (POSIX PID) - - - - List of each IP interface up - Interface name - IP address - Status of the interface - - - - Kernel state dump complete - - - diff --git a/ltt-control/facilities/locking.xml b/ltt-control/facilities/locking.xml deleted file mode 100644 index 5dd9e55..0000000 --- a/ltt-control/facilities/locking.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - The locking facility instruments the kernel locking. - - - Enable IRQs - Instruction address - - - - Disable IRQs - Instruction address - - - - Enable SoftIRQs - Instruction address - - - - Disable SoftIRQs - Instruction address - - - - Acquire lock - Instruction address - Lock subclass - Lock address - Trylock ? - - - - Release lock - Instruction address - Lock address - Nested release ? - - - diff --git a/ltt-control/facilities/mm.xml b/ltt-control/facilities/mm.xml deleted file mode 100644 index 1b2fff2..0000000 --- a/ltt-control/facilities/mm.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - The memory facility has memory management events. - - - Entry in the page fault handler - Pointer that caused the page fault - Instruction at which the page fault occured - - - - Exit from the fault handler - - - - Staring to wait for a page - Address of the page we wait for. - - - - Ending wait for a page - Address of the page we wait for. - - - - Page allocation - Order of the page to allocate - Assigned page address, or 0 if failed. - - - - Page free - Order of the page to free - Address of the page to free. - - - - Page swapped into memory - Address of the page to swap in. - - - - Page swapped to disk - Address of the page to swap out. - - - diff --git a/ltt-control/facilities/net.xml b/ltt-control/facilities/net.xml deleted file mode 100644 index 0fc2b24..0000000 --- a/ltt-control/facilities/net.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - The network facility contains events related to low level network operations - - - Sending a socket message - - Socket structure address - - - - Socket family - - - - Socket type - - - - Socket protocol - - - - Size of the message - - - - - - Receiving a socket message - - Socket structure address - - - - Socket family - - - - Socket type - - - - Socket protocol - - - - Size of the message - - - - - - Create a socket - - Socket structure address - - - - Socket family - - - - Socket type - - - - Socket protocol - - - - Socket file descriptor - - - - - - Generic socket call : FIXME : should be more detailed. - - Number of socket call - - - - First argument of socket call - - - - - - - We send a packet - Socket buffer pointer : identify the socket buffer - - - - Protocol of the packet - - - - - - A packet is arriving - - Socket buffer pointer : identify the socket buffer - - - - Protocol of the packet - - - - - - IP interface up - - Interface name - - - - IP address - - - - - - IP interface down - - Interface name - - - - diff --git a/ltt-control/facilities/stack_arch_i386.xml b/ltt-control/facilities/stack_arch_i386.xml deleted file mode 100644 index 367753e..0000000 --- a/ltt-control/facilities/stack_arch_i386.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - The stack facility has events related to getting process stack. - - - Dump EIPs on the kernel stack - Sequence of EIP - - - - - - - - - Dump EIPs on the kernel stack - Sequence of EIP - - - - - - - - - Dump EIPs on the kernel stack - Sequence of EIP - - - - - - - - - Dump process EIPs on the user stack for a 32 bits process - Sequence of EIP - - - - - - - - - Dump process EIPs on the user stack for a 32 bits process - Sequence of EIP - - - - - - - - diff --git a/ltt-control/facilities/stack_arch_x86_64.xml b/ltt-control/facilities/stack_arch_x86_64.xml deleted file mode 100644 index 2a4f6d1..0000000 --- a/ltt-control/facilities/stack_arch_x86_64.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - The stack facility has events related to getting process stack. - - - Dump EIPs on the kernel stack - Sequence of EIP - - - - - - - - - Dump EIPs on the kernel stack - Sequence of EIP - - - - - - - - - Dump EIPs on the kernel stack - Sequence of EIP - - - - - - - - - Dump process EIPs on the user stack for a 32 bits process - Sequence of EIP - - - - - - - - - Dump process EIPs on the user stack for a 32 bits process - Sequence of EIP - - - - - - - - - Dump process EIPs on the user stack for a 64 bits process - Sequence of EIP - - - - - - - - - Dump process EIPs on the user stack for a 64 bits process - Sequence of EIP - - - - - - - - diff --git a/ltt-control/facilities/user_generic.xml b/ltt-control/facilities/user_generic.xml deleted file mode 100644 index f0e7464..0000000 --- a/ltt-control/facilities/user_generic.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - Generic user space facility - - - Takes a string from user space - - - - - Takes a string and pointer from user space - - - - - - Takes a buffer of variable size (written by printf) and log it. - - - - - Entry in a function - - - - - - Exit from a function - - - - - - Name a thread - - - diff --git a/ltt-control/facilities/xen.xml b/ltt-control/facilities/xen.xml deleted file mode 100644 index 99ecd53..0000000 --- a/ltt-control/facilities/xen.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - The Xen facility containts hypervisor events. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ltt-control/lttd/lttd.c b/ltt-control/lttd/lttd.c index 3498342..4764838 100644 --- a/ltt-control/lttd/lttd.c +++ b/ltt-control/lttd/lttd.c @@ -813,7 +813,6 @@ close_channel: return (void*)ret; } - int main(int argc, char ** argv) { int ret = 0; @@ -850,9 +849,9 @@ int main(int argc, char ** argv) sigaction(SIGQUIT, &act, NULL); sigaction(SIGINT, &act, NULL); - tids = malloc(sizeof(pthread_t) * num_threads); for(i=0; i