summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Add explicit casting in few places.pjd2009-02-231-12/+12
| | | | | | | | | It is only really necessary for open(2)'s third argument, which is optional and obtained through stdarg(3). open(2)'s third argument is 32bit and we pass 64 bits. On little endian it works, because we take lower 32 bits, but on big endian platforms we take upper 32 bits, so we end up with 0. Reported by: Milan Čermák <Milan.Cermak@Sun.COM>
* Delete files which serve no purpose in this environment.mr2009-02-205-237/+0
| | | | Inspired by: simon@
* Doh! r188813 modified an auto-generated file. Fix it for real:mtm2009-02-202-7/+4
| | | | | | | o grammar fix o remove mention of libkse Submitted by: Niclas Zeising <niclas.zeising@gmail.com>
* revamp after 1/2 and 1/4 rate changessam2009-02-191-89/+77
|
* add -z option to zero driver statistics (but note we don't yet zerosam2009-02-133-3/+18
| | | | stats obtained from the hal)
* add stats no frags and missing stat for no dma bufferssam2009-02-131-1/+9
|
* backout r188327, it broke summary printingsam2009-02-133-53/+43
|
* Add a regresion test to determine whether or not a file descriptor isrwatson2009-02-112-0/+129
| | | | | | | | | | | | | | | | | allocated in a fork(2)-inheritable way at the beginning or end of an accept(2) system call. This test creates a test thread and blocks it in accept(2), then forks a child process which tests to see if the next available file descriptor is defined or not (EBADF vs EINVAL for ftruncate(2)). This detects a regression introduced during the network stack locking work, in which a very narrow race during which fork(2) from one thread during accept(2) in a second thread lead to an extra inherited file descriptor turned into a very wide race ensuring that a descriptor was leaked into the child even though it hadn't been returned. PR: kern/130348
* Add files to build i386/amd64 bootable rescue ISO images using themr2009-02-1117-0/+1789
| | | | nanobsd framework.
* o use humanize_number to print totalssam2009-02-083-43/+53
| | | | o shrink some fields now that we don't have to worry about overflow
* for adhoc and ahdemo modes try to find the "bss node": use the bssidsam2009-02-051-1/+10
| | | | | | unless it's not setup or zero's; this may not work as the bssid of the ibss isn't certain to the "right mac address" but for many cases it is
* make -o handling like athstatssam2009-02-051-9/+30
|
* unbreak -osam2009-02-051-2/+1
|
* add new stats and missing tx_raw statsam2009-02-051-2/+12
|
* o fix identification of ahdemo modesam2009-02-051-11/+24
| | | | | o split out code to get the bssid for use in the future o include more information in error diags when unable to collect sta info/stats
* add cfi test toolsam2009-02-053-0/+164
| | | | | Sponsored by: Carlson Wireless Reviewed by: imp, Chris Andreson
* Get the right system makefiles for make distribution.phk2009-02-041-1/+2
|
* Test wprintf() in addition to printf().das2009-01-311-3/+19
|
* Add tests for conj{,f,l}() that I wrote some time ago. These test thedas2009-01-313-1/+169
| | | | versions in libm, not the gcc builtins.
* track hal changessam2009-01-291-1/+3
|
* update for hal changessam2009-01-292-456/+239
|
* - Update my copyright.jeff2009-01-221-16/+27
| | | | | | | | - Print human readable time as a float with two digits of precision. Use ns now as well since clock periods are well into the hundreds of picoseconds now. - Show the average duration in the stats frame. This is often more useful than total duration.
* - Permit timestamps to be as far as 2048 ticks apart before we complainjeff2009-01-201-20/+54
| | | | | | | | | | | | | | | | about invalid timestamps. Nehalem CPUs seem to be synchronized but only within a fraction of a microsecond. - Make the Counter code more flexible to poor timestamps. In general we now complain a lot but render as much as we can. - Change the scaler behavior so it works better with very long and very short traces. We now set the maximum scale such that it properly displays the entire file by default and doesn't permit zooming out beyond the file. This improves other awkward navigation behavior. The interval is now set very small which can't be achieved by simply dragging the mouse. Clicking to the left of or right of the scaler bar will produce increments of a single, very small, interval now. Sponsored by: Nokia
* - Add summary information to the title once the file is parsed rather thanjeff2009-01-181-24/+36
| | | | | | | | | | printing it to the terminal. Now only parse errors go to the terminal. - Speedup drawing by raising and lowering tags only once everything has been drawn. Surprisingly, it now takes a little longer to parse than it does to draw. - Parameterize the layout with X_ and Y_ defines that determine the sizes of various things. - Remove unnecessary tags.
* - Significantly speedup hiding and displaying multiple rows by writing anjeff2009-01-181-31/+224
| | | | | | | | | | | | optimized single pass function for each. This reduces the number of tkinter calls required to the minimum. - Add a right-click context menu for sources. Supported commands hide the source, hide the whole group the source is in, and bring up a stat window. - Add a source stat frame that gives an event frequency table as well as the total duration for each event type that has a duration. This can be used to see, for example, the total time a thread spent running or blocked by a wchan or lock.
* Fix typophk2009-01-171-1/+1
| | | | Spotted by: juli
* Release the evil twin of nanobsd.sh: sysbuild.shphk2009-01-172-0/+681
| | | | | | | | | | | | | | | | | | | | quoth the README: I have been running -current on my laptop since before FreeBSD 2.0 was released and along the way developed this little trick to making the task easier. sysbuild.sh is a way to build a new FreeBSD system on a computer from a specification, while leaving the current installation intact. sysbuild.sh assume you have two partitions that can hold your rootfs and can be booted, and roughly speaking, all it does is build a new system into the one you don't use, from the one you do use. A partition named /freebsd is assumed to be part of your layout, and that is where the sources and ports will be found. If you know how nanobsd works, you will find a lot of similarity.
* - Add a new source configuration menu option that allows hiding andjeff2009-01-171-4/+173
| | | | | | | displaying sources. - Add functions to the main SchedGraph to facilitate source hiding. The source is simply moved off screen and all other sources are moved to compensate.
* - Rewrite the parser to support the new generic schedgraph interface.jeff2009-01-171-1002/+608
| | | | | | | | | | | | | | | | | | | This no longer requires any custom classes or parsers to support new event types. - Add an optional command line argument for specifying the clock frequency in ghz. This is useful for traces that do not include KTR_SCHED. Sponsored by: Nokia - Add support for sorting rows by clicking and dragging them to their new position. - Add support for configuring the cpu background colors. - Improve the scaling so a better center is maintained as you zoom. This is not perfect due to precision loss with floats used in the window views. - Add new colors and a random assignment for unknown event types. A table is used for known event types. This is the only event specific information.
* Be more Solaris-friendly.pjd2009-01-162-4/+8
| | | | Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
* Allow jot(1) regression tests to be checked out on Windows filesystems.ed2009-01-162-1/+1
| | | | | | | | The jot(1) regression tests directory contained two tests named `wx' and `wX', which doesn't work on case insensitive filesystems. Rename `wX' to `wX1'. MFC after: 1 month
* add athrd tool that dumps ath hal regulatory info; note this is soon tosam2009-01-156-4/+2106
| | | | obsolete but commit now so it's available for anyone that's interested
* simple scripts to demonstrate tdma setupsam2009-01-142-0/+39
|
* Add support for two new event source types:jhb2009-01-131-2/+224
| | | | | | | | | | | | | | | | | | | - Callwheels traced via KTR_CALLOUT. Each CPU is assigned a callwheel source. The events on this source are the execution of individual callout routines. Each routine shows up as a green rectangle while it is executed and the event details include the function pointer and argument. - Locks traced via KTR_LOCK. Currently, each lock name is assigned an event source (since the existing KTR_LOCK traces only include lock names and not pointers). This does mean that if multiple locks of the same name are manipulated, the source line for that name may be confusing. However, for many cases this can be useful. Locks are blue when they are held and purple when contested. The contention support is a bit weak due to limitations in the rw_rlock() and mtx_lock_spin() logging messages currently. I also have not added support for contention on lockmgr, sx, or rmlocks yet. What is there now can be profitably used to examine activity on Giant however. - Expand the width of the event source names column a bit to allow for some of the longer names of these new source types.
* - Add some rudimentary support for sorting the list of event sourcesjhb2009-01-131-13/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | (threads, CPU load counters, etc.). Each source is tagged with a group and an order similar to the SYSINIT SI_SUB_* and SI_ORDER_*. After the file is parsed, all the sources are then sorted. Currently, the only affects of this are that the CPU loads are now sorted by CPU ID (so CPU 0 is always first). However, this makes it easier to add new types of event sources in the future and have them all clustered together instead of intertwined with threads. - Python lists perform insertions at the tail much faster than insertions at the head. For a trace that had a lot of events for a single event source, the constant insertions of new events to the head of the per-source event list caused a noticable slow down. To compensate, append new events to the end of the list during parsing and then reverse the list prior to drawing. - Somewhere in the tkinter internals the coordinates of a canvas are stored in a signed 32-bit integer. As a result, if an the box for an event spans 2^31, it would actually end up having a negative X offset at one end. The result was a single box that covered the entire event source. Kris worked around this for some traces by bumping up the initial ticks/pixel ratio from 1 to 10. However, a divisor of 10 can still be too small for large tracefiles (e.g. with 4 million entries). Instead of hardcoding the initial scaling ratio, calculate it from the time span of the trace file. - Add support for using the mouse wheel to scroll the graph window up and down.
* add tool to calculate air time for 802.11 packetssam2009-01-123-1/+604
|
* Vi got me in trouble in r187102 - fix typo of duplicate output filename.obrien2009-01-121-1/+1
| | | | Submitted by: several
* Update fech URL.obrien2009-01-121-1/+1
| | | | Submitted by: Alexander Best <alexbestms@math.uni-muenster.de>
* example configurations for cross-building to Gateworks 2348 and 2358 boards;sam2009-01-099-0/+773
| | | | | | probably needs cleanups to be less specific to my needs/uses MFC after: 2 weeks
* TDMA support for long distance point-to-point links using ath devices:sam2009-01-084-4/+21
| | | | | | | | | | | | | | | o add net80211 support for a tdma vap that is built on top of the existing adhoc-demo support o add tdma scheduling of frame transmission to the ath driver; it's conceivable other devices might be capable of this too in which case they can make use of the 802.11 protocol additions etc. o add minor bits to user tools that need to know: ifconfig to setup and configure, new statistics in athstats, and new debug mask bits While the architecture can support >2 slots in a TDMA BSS the current design is intended (and tested) for only 2 slots. Sponsored by: Intel
* Add a new program, ether_reflect, which is useful in testing ethernetgnn2008-12-234-0/+283
| | | | devices and switches.
* Fix a bug in the man page where we were not showing the correct flagsgnn2008-12-231-2/+2
| | | | | in the explanation. Several of the flags were -i, since it was a copy/paste operation.
* Add the mctest program and description to the README.gnn2008-12-231-0/+1
|
* Add new tool tionxcl to bring ttys out of exclusive mode whenbms2008-12-182-0/+107
| | | | left by e.g. legacy uucp or tip.
* Make it possible to cherry-pick packages out of a directory.phk2008-12-161-1/+6
|
* bring in diagnostic tools that are useful now that we have hal source codesam2008-12-0723-7/+4222
|
* This is simple testing program for revision 185647.ganbold2008-12-061-0/+81
| | | | | | | It invokes multiple parallel threads and each thread calls vfork() system call. Approved by: kib
* Update for 185401, errors now go to stderr.stefanf2008-11-281-0/+0
|
* Add tools-level test for POSIX.1e functionality.trasz2008-11-253-0/+632
| | | | Approved by: rwatson (mentor)
* This actually works on Linux, I just had wrong directory permission.pjd2008-11-241-4/+0
| | | | Found by: trasz
OpenPOWER on IntegriCloud