TimeTrac Event Analyzer |
This is TimeTrac Version 2.0; the first release of the standalone version of SKY's TimeTrac Event Analyzer.
TimeTrac consists of two easy-to-use parts:
- Application instrumentation consisting of simple, minimally-invasive code linked with a SKY provided library.
- Easy-to-use, intuitive GUI with results viewing and analysis done off-line at the user's convenience.
You should read these Release Notes in their entirety before starting the TimeTrac software install.
To link with the TimeTrac library:
- Linux x86 based development system, version 2.6 or later
To use the TimeTrac viewer, you must have:
- Linux x86 based system, version 2.6 or later; tested on Fedora by Red Hat, SuSE Linux, and more recently Ubuntu (10.04) .
- Spare USB port and TimeTrac USB dongle from SKY.
You may not install or use this software except in compliance with the License. You may obtain a copy of the License at www.skycomputers.com/Software/TimeTrac_SW_Lic.html
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, without warranties or conditions of any kind, either express or implied. refer to the License for the specific language governing permissions and limitations under the License.
You may install TimeTrac from files copied from CD or from the web; refer to the procedure below for installation. You must have root privileges to install the TimeTrac software into the system directories. The install script will ask if you want to install into system directories. A positive response will do the following:Or you may elect to install these files manually into directories of your choice. To uninstall TimeTrac, you must manually remove these files.
- Copy time_trac.h to the /usr/local/include directory
- Copy libtime_trac.a to the /usr/local/lib directory
- Copy TimeTrac to the /usr/local/bin directory
You may install TimeTrac from a compressed tar file by following this procedure. All of the required files are included on the CDROM.Motif Libraries:
- Log into the system as root.
su root ;; requires root password- Create a clean directory in the location of your choice and copy the compressed tar file (TimeTrac-2.0.tgz) and the install script (install) from their current location to this directory. Create or select another directory to hold the example programs.
cp ...../wherever/TimeTrac-2.0.tgz ...../clean_dir/. cp ...../wherever/install ...../clean_dir/.- Go to the directory we just copied the files to:
cd ...../clean_dir ;; as above- Execute the install script from this directory:
./install ;; and respond to the questions asked- This install script will ask you where to install the TimeTrac example programs and Timetrac system files. The directory you select must exist and you must have read/write access to it. It should also be clean and contain no other files or subdirectories. Use the directory you created or decided on above and enter a fully qualified pathname.
- The install script will ask you if you wish the 32-bit or 64-bit version of TimeTrac to be installed. Select the one that matches your Linux distribution. (uname -m ending in _64 indicates a 64-bit version.)
- The install script will attempt to discover your Motif libraries, if any. You may use your existing installation by answering No, or install Motif from the included open source tar file by answering Yes.
- If all the necessary files are present, the script will relink TimeTrac. If the relink fails, the install script will terminate and you must manually install the missing components and then relink TimeTrac.
- You will be asked if you want to install the TimeTrac files into the system directories. You should do this if you are developing applications on this system. If you do not install TimeTrac into the system directories, you must manually copy the TimeTrac files into the directories of your choice:
TimeTrac ;; This is the viewer executable. It should be ;; copied to a location in your search path time_trac.h ;; This is the TimeTrac include file that your ;; application code must include. libtime_trac.a ;; This library file must be used when you link ;; your application- If a CD was used, remove the CD and store in a safe place when done,
cd / ;; you may not be attached to the CD eject ;; if this is the default device- For the example directory, set the permissions appropriately for your environment depending on who will be allowed to rebuild and execute the examples. Failure to do so may cause the examples to not build.
TimeTrac requires the Motif run-time library. If you do not have it installed on your system, you should use the appropiate package manager and install it from the web.If the TimeTrac executable still fails to run:
A copy of the OpenMotif source tar file has been included in this release but on some systems, this does not build completely. If necessary, you should get the latest version from the web and rebuild with that. We suggest that you rebuild the Motif library only if it is not currently installed on your system.
If you have installed the library but get the following error when you run TimeTrac:TimeTrac: error while loading shared libraries:You should link your version of the library to libXm.so.4.
libXm.so.4: cannot open shared object file: No such file or directoryReview the suggestions below for the various Linux distributions.
On current Linux distributions, the usb device drive is part of the kernel and usbfs is no longer supported. This may cause the usb dongle to not work properly. It may be necessary to execute the following commands as a workaround:
sudo mount --bind /dev/bus /proc/bus
sudo ln -s /sys/kernel/debug/usb/devices /proc/bus/usb/devices
If the TimeTrac viewer fails to run, you may need to review the following list. On Ubuntu, you may need to do the following (or use the appropiate package manager):
sudo apt-get pmountand then a system restart.Verify that the proper USB device drivers are loaded. On a typical system use the lsmod command to view the installed drivers. The output should be similar to:
# lsmod | grep _hcd ehci_hcd 50572 0 ohci_hcd 38020 0 usbcore 155816 5 usb_storage,usbhid,ehci_hcd,ohci_hcdIf necessary (they did not appear in the list, above), load the device drivers:insmod usbcore insmod uhci_hcd insmod ehci_hcdand mount the usb file system.mount -t usbfs -o devmode=0666 none /proc/bus/usbTo automatically mount the usbfs filesystem each time the system is booted, you must manually add the following to /etc/fstabnone /proc/bus/usb usbfs auto,devmode=0666 0 0On some Linux distributions, the insertion of the TimeTrac dongle in a USB port results in the dongle not being accessible or being accessible only by root; in this case, TimeTrac will not execute or will execute only when you are root. To allow running TimeTrac as a normal user, we can:Note that you may install TimeTrac on as many machines as you want; this will:
- Fedora / SuSE: Copy a rules file (installed by the install script) to /etc/udev/rules.d that will cause the TimeTrac dongle (actually the USB port) to have r/w access by all users.
- Debian: Verify that the usbfs is mounted, as above.
- Other suggestions (if needed): Manually change the access rights on the TimeTrac executable to be executable by all with root permisssions (you must be root to do this):
chmod 6711 TimeTrac
- Allow application development on multiple machines even though you have purchased a limited number of TimeTrac licenses.
- Allow you to use the TimeTrac viewer when there is a TimeTrac dongle from SKY installed on the viewing machine.
- Note that the viewing machine need not be the same as the system that created the TimeTrac files. Just copy the *.trc files created on the application machine to the viewing machine and start the TimeTrac viewer.
You must have your application instrumented with the TimeTrac calls, compiled with the time_trac.h file included and linked with the libtime_trac.a library. See the examples for additional details.
If the application build system is different from the system that you installed the TimeTrac viewer, you must copy the time_trac.h include file and the libtime_trac.a library file to convenient build directories. You do not need a "dongle" to use these files; they can be copied to as many systems as needed for application development and deployment.
To run the TimeTrac viewer:
- You must have a usb dongle from SKY to run the TimeTrac viewer and it must be inserted into a spare USB port on the machine where the TimeTrac viewer has been installed.
- The user must have rw access to the directory and to the *.trc files where TimeTrac runs.
- The TimeTrac viewer must be named TimeTrac; renaming the executable will cause it to not run correctly.
This installation includes a set of TimeTrac examples to help get you started. It is recommended that you review each of these examples and code fragments prior to instrumenting your own application. The examples include the following:
- Some *.html files that help you walk through the packaged test code (see the examples for more info).
- Source code and Makefiles for each of the examples. The Makefile have been set up to automatically build and run (make w/ no arguments) each of the test programs. The Makefile also have the following build options:
make ;; no args, does a "make clean exe run" make clean ;; removes previously built executables make exe ;; rebuilds the execuables make run ;; causes the executables to be run- We have also included the TimeTrac User Guide and the TimeTrac data sheet in this release for your convenience.