From: compudj Date: Mon, 15 Oct 2007 16:34:05 +0000 (+0000) Subject: remove facilities from ltt-control X-Git-Tag: v0.12.20~805 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d3b6d84ffbb4a98aec491134474951aec44694b9;p=lttv.git remove facilities from ltt-control git-svn-id: http://ltt.polymtl.ca/svn@2684 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt-control/Makefile.am b/ltt-control/Makefile.am index eb8a7f18..8f9974d5 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 c604edd0..33fe0e13 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 3f6f6988..00000000 --- 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 2b7cfa6f..00000000 --- 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 e48ae33f..00000000 --- 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 b38c6a63..00000000 --- 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 d87187e0..00000000 --- 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 32f831eb..00000000 --- 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 92ff2499..00000000 --- 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 f89a8e6c..00000000 --- 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 fddad46f..00000000 --- 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 16911ceb..00000000 --- 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 8d3ee685..00000000 --- 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 09d45ce0..00000000 --- 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 18728637..00000000 --- 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 a65c0afa..00000000 --- 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 14d8a2f2..00000000 --- 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 5dd9e55b..00000000 --- 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 1b2fff2a..00000000 --- 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 0fc2b242..00000000 --- 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 367753ed..00000000 --- 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 2a4f6d15..00000000 --- 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 f0e74646..00000000 --- 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 99ecd531..00000000 --- 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 34983429..4764838c 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