aboutsummaryrefslogtreecommitdiff
path: root/tools/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in comment.Robert Watson2011-12-291-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=228956
* Reencode files from latin1 to UTF-8.Ulrich Spörlein2011-12-296-6/+6
| | | | Notes: svn path=/head/; revision=228953
* Oops, if we want to check from 0 to nsock, the test condition should beOlivier Houchard2011-12-281-1/+1
| | | | | | | | | | < nsock, not >. Pointy hat to: cognet Submitted by: Olivier Cochard-Labbe <olivier AT cochard doT me> Notes: svn path=/head/; revision=228927
* Oops, my bad. Fix a broken thing I introduced earlier.Adrian Chadd2011-12-261-1/+1
| | | | Notes: svn path=/head/; revision=228903
* Add in ath_ee_9287_print.Adrian Chadd2011-12-231-2/+2
| | | | Notes: svn path=/head/; revision=228831
* Catch up with new driver ioctls in cxgbe.Navdeep Parhar2011-12-161-0/+175
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=228594
* Many updates to cxgbe(4)Navdeep Parhar2011-12-161-29/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Device configuration via plain text config file. Also able to operate when not attached to the chip as the master driver. - Generic "work request" queue that serves as the base for both ctrl and ofld tx queues. - Generic interrupt handler routine that can process any event on any kind of ingress queue (via a dispatch table). - A couple of new driver ioctls. cxgbetool can now install a firmware to the card ("loadfw" command) and can read the card's memory ("memdump" and "tcb" commands). - Lots of assorted information within dev.t4nex.X.misc.* This is primarily for debugging and won't show up in sysctl -a. - Code to manage the L2 tables on the chip. - Updates to cxgbe(4) man page to go with the tunables that have changed. - Updates to the shared code in common/ - Updates to the driver-firmware interface (now at fw 1.4.16.0) MFC after: 1 month Notes: svn path=/head/; revision=228561
* 1. Fix the handling of link reset while in netmap more.Luigi Rizzo2011-12-051-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A link reset now is completely transparent for the netmap client: even if the NIC resets its own ring (e.g. restarting from 0), the client will not see any change in the current rx/tx positions, because the driver will keep track of the offset between the two. 2. make the device-specific code more uniform across different drivers There were some inconsistencies in the implementation of the netmap support routines, now drivers have been aligned to a common code structure. 3. import netmap support for ixgbe . This is implemented as a very small patch for ixgbe.c (233 lines, 11 chunks, mostly comments: in total the patch has only 54 lines of new code) , as most of the code is in an external file sys/dev/netmap/ixgbe_netmap.h , following some initial comments from Jack Vogel about making changes less intrusive. (Note, i have emailed Jack multiple times asking if he had comments on this structure of the code; i got no reply so i assume he is fine with it). Support for other drivers (em, lem, re, igb) will come later. "ixgbe" is now the reference driver for netmap support. Both the external file (sys/dev/netmap/ixgbe_netmap.h) and the device-specific patches (in sys/dev/ixgbe/ixgbe.c) are heavily commented and should serve as a reference for other device drivers. Tested on i386 and amd64 with the pkt-gen program in tools/tools/netmap, the sender does 14.88 Mpps at 1050 Mhz and 14.2 Mpps at 900 MHz on an i7-860 with 4 cores and 82599 card. Haven't tried yet more aggressive optimizations such as adding 'prefetch' instructions in the time-critical parts of the code. Notes: svn path=/head/; revision=228276
* Tidy up the statistic documentation.Adrian Chadd2011-11-231-2/+2
| | | | | | | Sponsored by: Hobnob, Inc. Notes: svn path=/head/; revision=227870
* Add the new statistics introduced in r227868.Adrian Chadd2011-11-231-7/+14
| | | | | | | Sponsored by: Hobnob, Inc. Notes: svn path=/head/; revision=227869
* Bring in support for netmap, a framework for very efficient packetLuigi Rizzo2011-11-177-0/+2294
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I/O from userspace, capable of line rate at 10G, see http://info.iet.unipi.it/~luigi/netmap/ At this time I am bringing in only the generic code (sys/dev/netmap/ plus two headers under sys/net/), and some sample applications in tools/tools/netmap. There is also a manpage in share/man/man4 [1] In order to make use of the framework you need to build a kernel with "device netmap", and patch individual drivers with the code that you can find in sys/dev/netmap/head.diff The file will go away as the relevant pieces are committed to the various device drivers, which should happen in a few days after talking to the driver maintainers. Netmap support is available at the moment for Intel 10G and 1G cards (ixgbe, em/lem/igb), and for the Realtek 1G card ("re"). I have partial patches for "bge" and am starting to work on "cxgbe". Hopefully changes are trivial enough so interested third parties can submit their patches. Interested people can contact me for advice on how to add netmap support to specific devices. CREDITS: Netmap has been developed by Luigi Rizzo and other collaborators at the Universita` di Pisa, and supported by EU project CHANGE (http://www.change-project.eu/) The code is distributed under a BSD Copyright. [1] In my opinion is a bad idea to have all manpage in one directory. We should place kernel documentation in the same dir that contains the code, which would make it much simpler to keep doc and code in sync, reduce the clutter in share/man/ and incidentally is the policy used for all of userspace code. Makefiles and doc tools can be trivially adjusted to find the manpages in the relevant subdirs. Notes: svn path=/head/; revision=227614
* Add IPv6 support to netblast/netsend/netreceiveOlivier Houchard2011-11-083-50/+159
| | | | | | | | PR: bin/161368 Submitted by: Olivier Cochard-Labbe <olivier AT cochard doT me> Notes: svn path=/head/; revision=227345
* Bring over the new aggregate statistics from the 11n branch.Adrian Chadd2011-10-261-12/+85
| | | | | | | | Some of these values are currently updated by the driver (the 11n RX related statistics) so they are immediately useful. Notes: svn path=/head/; revision=226799
* Add a "-P olddistfiles" facility to prefetch ports distfiles, using anPoul-Henning Kamp2011-10-231-12/+43
| | | | | | | | | | | | | | | | old distfile directory as primary source: mkdir /freebsd/ports/distfiles.old mv /freebsd/ports/distfiles/* /freebsd/ports/distfiles.old sh sysbuild.sh -c $yourconfig -P /freebsd/ports/distfiles.old rm -rf /freebsd/ports/distfiles.old Unfortunately bsd.ports.mk does not attempt to use a hard-link so while this runs you need diskspace for both your old and your "new" distfiles. Notes: svn path=/head/; revision=226672
* Because ZFS boot code was very fragile in the past and real PITA to debug,Pawel Jakub Dawidek2011-10-212-0/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduce zfsboottest.sh script that will verify if it will be possible to boot from the given pool. # zfsboottest.sh system Where "system" is pool name of the pool we want to boot from. What is being verified by the script: - Does the pool exist? - Does it have bootfs property configured? - Is mountpoint property of the boot dataset set to 'legacy'? Dataset configured in bootfs property has to be mounted to perform more checks: - Does the /boot directory in boot dataset exist? - Is this dataset configured as root file system in /etc/fstab or set in vfs.root.mountfrom variable in /boot/loader.conf? By using zfsboottest tool the script will read all the files in /boot directory using ZFS boot code and calculate their checksums. Then, it will walk /boot directory using find(1) though regular file sytem and also read all the files in /boot directory and calculate their checksums. If any of the files cannot be looked up, read or checksum is invalid it will be reported and booting off of this pool is probably not possible. Some additional checks may be interesting as well. For example if the disks contain proper pmbr and gptzfsboot code or if all expected files in /boot/ are present. When upgrading FreeBSD, one should snapshot datasets that contain operating system, upgrade (install new world and kernel) and use zfsboottest.sh to verify if it will be possible to boot from new configuration. If all is good one should upgrade boot blocks, by eg.: # gpart -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1 If something is wrong, one should rollback datasets and report the problems. MFC after: 3 days Notes: svn path=/head/; revision=226612
* - Allow to specify multiple files to check, eg.Pawel Jakub Dawidek2011-10-212-35/+69
| | | | | | | | | | | | | zfsboottest gpt/system0 gpt/system1 - /boot/kernel/kernel /boot/zfsloader - Instead of printing file's content calculate MD5 hash of the file, so it can be easly compared to the hash calculated via file system. - Some other minor improvements. MFC after: 3 days Notes: svn path=/head/; revision=226611
* Fix build after TARGET_BIG_ENDIAN was nuked from orbit.Andrew Thompson2011-10-111-2/+1
| | | | Notes: svn path=/head/; revision=226242
* zfsboottest: some additional enhancementsAndriy Gapon2011-09-161-5/+10
| | | | | | | | | | | | | - redirect diagnostics printfs in the boot code to stderr - do not read trailing garbage from a trailing block of a file Also add my copyright to the file after making so many changes. Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225609
* zfstest: rename to zfsboottest and move to toolsAndriy Gapon2011-09-162-0/+167
| | | | | | | | Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225608
* Fix alignment assumptions.Marius Strobl2011-09-022-6/+4
| | | | | | | | | PR: 160289 Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=225334
* Move cxgbtool from usr.sbin to tools/tools.Navdeep Parhar2011-08-108-0/+11278
| | | | | | | | Approved by: re (kib) MFC after: 1 month Notes: svn path=/head/; revision=224768
* update smp related documentation after recent changesAndriy Gapon2011-07-301-16/+4
| | | | | | | | | | | | | | | Remove references to machdep.hlt_logical_cpus and machdep.hlt_cpus sysctls and tunables. Document machdep.hyperthreading_allowed and hint.lapic.X.disabled tunables. Prompted by: ru Proofreading: bf Reviewed by: jhb Approved by: re (kib) Notes: svn path=/head/; revision=224528
* Add athradar, an implementation of the radar parameter diagnosticAdrian Chadd2011-07-223-0/+304
| | | | | | | | | | | API. This is a reimplementation from scratch. Approved by: re (kib) Notes: svn path=/head/; revision=224266
* Garbage-collect the tools for maintaining the previous PCI vendors list. ThePhilip Paeps2011-07-161-263/+0
| | | | | | | | | sources this tool collates are no longer available and the format of the current database is directly usable by pciconf(8) without needing any special processing. Notes: svn path=/head/; revision=224103
* - Need to respect the module name and the USB mode when accumulating device ↵Hans Petter Selasky2011-06-253-10/+24
| | | | | | | | | | | | ID's. - Be more verbose on file seek failures. Allow a file size of zero. - Improve the wrapper shell. MFC after: 14 days Notes: svn path=/head/; revision=223535
* - Improve bus_autoconf tool.Hans Petter Selasky2011-06-2511-416/+1005
| | | | | | | | | | | | | - Implement simple and generic language which can be used to describe any kind of device ID structures. - Fix endian issues. - Add an example format file. Suggested by: imp @ MFC after: 14 days Notes: svn path=/head/; revision=223534
* - We need to sort all USB device ID's together. Else the matching order willHans Petter Selasky2011-06-243-54/+163
| | | | | | | | | be wrong. This is required because devd only executes one entry. MFC after: 14 days Notes: svn path=/head/; revision=223518
* - Make sure we don't match the wrong device by addingHans Petter Selasky2011-06-241-0/+1
| | | | | | | | | | a match for the bus the device belongs to. PR: misc/157903 MFC after: 14 days Notes: svn path=/head/; revision=223490
* - Add additional information to the PnP info of USB HUBs children whichHans Petter Selasky2011-06-241-8/+1
| | | | | | | | | | | | | is now required by bus_autoconf. - Allow interface class matching even if device class is vendor specific. - Update bus_autoconf tool to not generate system and subsystem match lines for the nomatch event. PR: misc/157903 MFC after: 14 days Notes: svn path=/head/; revision=223489
* - Move all USB device ID arrays into so-called sections,Hans Petter Selasky2011-06-244-0/+511
| | | | | | | | | | | | | | | sorted according to the mode which they support: host, device or dual mode - Add generic tool to extract these data: tools/bus_autoconf Discussed with: imp Suggested by: Robert Millan <rmh@debian.org> PR: misc/157903 MFC after: 14 days Notes: svn path=/head/; revision=223486
* Add "context" subcommand to fetch and display SGE context.Navdeep Parhar2011-06-111-0/+235
| | | | Notes: svn path=/head/; revision=222974
* cxgbetool: a tool for the cxgbe(4) driver.Navdeep Parhar2011-06-095-0/+41744
| | | | Notes: svn path=/head/; revision=222900
* Don't need (and can't use) -L to copy links here.Warner Losh2011-05-311-1/+1
| | | | Notes: svn path=/head/; revision=222535
* Include an EEPROM dump program for the AR9287 EEPROM format.Adrian Chadd2011-05-266-0/+508
| | | | Notes: svn path=/head/; revision=222322
* [mdoc] Fixed .Dt call.Ruslan Ermilov2011-05-251-1/+1
| | | | Notes: svn path=/head/; revision=222286
* Update URLs and fix regex to work with current version of the files.Ulrich Spörlein2011-05-221-5/+5
| | | | Notes: svn path=/head/; revision=222171
* Restore BOOT2CFG, accidentally removed in r212938.Warner Losh2011-05-141-1/+1
| | | | | | | PR: 157020 Notes: svn path=/head/; revision=221877
* If there's no package directory, don't try to install packages fromWarner Losh2011-05-131-0/+6
| | | | | | | | | it. Instead, report that 0 packages are reported. PR: misc/140436 Notes: svn path=/head/; revision=221856
* Add ${} around variable dereference...Warner Losh2011-05-131-1/+1
| | | | | | | Submitted by: garrett coopper Notes: svn path=/head/; revision=221852
* Implement -f to inhibit copying s1 partition out for speed.Warner Losh2011-05-131-4/+12
| | | | | | | | | | | (-z not taken from PR, it is no longer needed since we basically always do that now) PR: misc/151698 Submitted by: lev@ Notes: svn path=/head/; revision=221851
* Copy symbolic links as files rather than recreating the links.Warner Losh2011-05-131-3/+3
| | | | | | | | | PR: misc/151697 Submitted by: lev@ MFC after: 2 weeks Notes: svn path=/head/; revision=221850
* This is a full 32 bit field for kite.Adrian Chadd2011-05-091-1/+1
| | | | Notes: svn path=/head/; revision=221691
* Give some sort of message when the program is not run as root.George V. Neville-Neil2011-05-031-0/+10
| | | | | | | | | | Root privileges are required to talk to the device. Submitted by: Sriram Rapuru at Wipro for Exar Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=221391
* A diagnostic tool to go along with the vxge(4) 10GbE driver.George V. Neville-Neil2011-04-287-0/+3681
| | | | | | | | | | | | This tool can be used to print statistics, registers, and other device specific information once the driver is loaded into the kernel. Submitted by: Sriram Rapuru from Exar MFC after: 2 weeks Notes: svn path=/head/; revision=221175
* Generate opt_ah.h now for all ath tools, a recent HAL change of mineAdrian Chadd2011-04-115-0/+44
| | | | | | | now requires it. Notes: svn path=/head/; revision=220534
* * re-enable marker stuff, I accidentally disabled it during debuggingAdrian Chadd2011-04-051-4/+2
| | | | | | | * correct arg check Notes: svn path=/head/; revision=220366
* Flesh out a simple tool to print the ALQ dump generated by the HAL.Adrian Chadd2011-04-053-1/+126
| | | | Notes: svn path=/head/; revision=220364
* Use ${NANO_WORLDDIR}/var/empty as copy source since it has no schg flag set.Michael Reifenberger2011-03-281-2/+2
| | | | | | | | Copying over /var/empty's schg flag had unpleasant side effects (schg flag on /etc and /cfg) during nanobsd boot before. Notes: svn path=/head/; revision=220091
* Oops, fix badness i must've introduced earlier.Adrian Chadd2011-03-231-4/+4
| | | | Notes: svn path=/head/; revision=219901
* Delete all GPT partitions at once. (Suggested by Andrey V. Elsukov ↵Michael Reifenberger2011-03-212-4/+8
| | | | | | | | | <bu7cher@yandex.ru>) Fix amd64 merge script. Notes: svn path=/head/; revision=219823