Commit Graph

2620 Commits

Author SHA1 Message Date
emaste
db806db21d Add regression test for kern/172075.
Sponsored by:	ADARA Networks
PR:		kern/172075
2012-09-26 00:25:09 +00:00
jilles
c0470c839d sh: Add some tests for aliasing a utility to itself. 2012-09-22 12:52:41 +00:00
zeising
ebc127bf11 Add documentation for the WITHOUT_KDUMP switch.
This swtich was introduced in r240404

Approved by:	joel (mentor)
2012-09-19 11:38:37 +00:00
eadler
8600cbb5b6 Correct double "the the"
Approved by:	cperciva
MFC after:	3 days
2012-09-14 21:28:56 +00:00
eadler
777230d53d Remove scripts and tools which only functioned when src was using CVS
Approved by:	cperciva
MFC after:	1 week
2012-09-13 17:49:11 +00:00
obrien
7b9a39e571 r235638 is not the clean way to add support for building on ancient FreeBSD
versions.  Instead use Imp's good work on "legacy" and follow the outcome
of the previous TRB discussions on this topic.

Now use the libc getline() if it exists, and only where it doesn't
create a bootstraping version.
2012-09-11 22:38:33 +00:00
fabient
886e70314c Add SOFT as a possible section to exclude from counter list. 2012-09-10 16:32:28 +00:00
adrian
dc0b46fdc3 Add some colour to make it easy (well, easier) to see what the current
selected rates and current sample rates are.

(Note: when run under high traffic and with -s 0.1 the display becomes very
mesmerising.  You've been warned.)
2012-09-10 06:07:28 +00:00
adrian
7f13a2e391 Add a '-s <timeout>' option which will display live rate control
statistics.
2012-09-08 01:14:13 +00:00
adrian
652b16f79f Tidy up the output quite substantially, making it fit well within
80 columns.

This makes it much easier to use in a shell script, to display a "top"
style output with live rate control data.
2012-09-07 06:02:40 +00:00
adrian
ec006196aa Make this build again! 2012-09-07 06:02:01 +00:00
emaste
78d26d09cb Failure to open netmap device is unrecoverable.
There's no reason to "fail later" since there's nothing this tool can do in
netmap mode without /dev/netmap open.
2012-09-04 20:51:25 +00:00
gnn
618d9246d7 Add a reasonable error message telling the caller to specify a program
to be executed under hwpmc.  If there is no program to run then
exit.
2012-09-04 20:14:37 +00:00
joel
d666707f2a Minor mdoc fix. 2012-09-01 07:11:25 +00:00
des
7bb834a124 The error syntax has changed. 2012-08-30 22:56:32 +00:00
adrian
714dc451ce Do a bunch of fixing and refactoring.
Fix up gzip to crunch right.

Add kenv, although I'm not yet sure why it isn't working on my MIPS
boards (reading kenv always returns blank.)
2012-08-29 22:55:50 +00:00
adrian
41ab51583c Disable fsck_ffs for now, 4MB target size issues. 2012-08-29 22:54:39 +00:00
adrian
7dbe059b5b Disable building textproc for now, it doesn't fit on my 4MB flash
partition.

Add -lcrypt as a dynamic target.
2012-08-29 22:54:27 +00:00
adrian
4a4898787c For now, disable building wpa_supplicant.
My 4MB flash builds can't handle the bloat.
2012-08-29 22:53:54 +00:00
dim
a4812d49a1 Add libc++ and libcxxrt related files to OptionalObsoleteFiles.inc.
MFC after:	1 week
2012-08-26 14:30:14 +00:00
dim
ddcb543796 Add three additional clang intrinsics headers, which I missed in the
previous import.
2012-08-20 20:56:40 +00:00
dim
ea718b0e08 Upgrade our copy of llvm/clang to trunk r162107. With thanks to
Benjamin Kramer and Joerg Sonnenberger for their input and fixes.
2012-08-20 18:33:03 +00:00
dim
554bcb69c2 Vendor import of clang trunk r161861:
http://llvm.org/svn/llvm-project/cfe/trunk@161861
2012-08-15 20:02:54 +00:00
dim
721c201bd5 Vendor import of llvm trunk r161861:
http://llvm.org/svn/llvm-project/llvm/trunk@161861
2012-08-15 19:34:23 +00:00
adrian
cebcfc8500 Add a missing HAL_DMA_ADDR definition. 2012-08-09 23:08:22 +00:00
adrian
bfe847db64 Add HAL_DMA_ADDR. 2012-08-09 23:04:20 +00:00
jilles
4d961f95f8 nftw(): POSIX says directories causing loops should be silently skipped.
Formerly, loops caused nftw() to abort the traversal with ELOOP.
2012-08-09 22:05:40 +00:00
emaste
e3d2617c9b Be more descriptive about poll error / timeout when transmitting. 2012-08-08 19:15:01 +00:00
emaste
0e7adfb291 Round displayed pps (instead of truncating) 2012-08-08 13:54:26 +00:00
ae
798113957d Add to the debug output the offset from the parent partitioning scheme. 2012-08-06 08:39:29 +00:00
ae
23e8ad15ba Add simple test program that uses the partition tables handling code.
It is useful to test and debug how boot loader handles partition tables
metadata.
2012-08-05 15:40:16 +00:00
adrian
6a9b72c2bc Break out the parsing code from main() and modularise things a little.
The eventual aim will be to support listing "one" and "all" stations for
the given ath device.
2012-07-30 01:42:22 +00:00
dim
32ec1fa0f5 When WITHOUT_CLANG is being used, also clean out the clang 3.1 headers
in OptionalObsoleteFiles.inc.

PR:		misc/169902
Submitted by:	Thomas Eberhardt <sneakywumpus@googlemail.com>
MFC after:	3 days
2012-07-23 16:36:13 +00:00
phk
e4dd41f394 Derive FREEBSD_PART from /etc/fstab, and make it full device name.
Give suggestion for next steps when done.

Inspired by patches from:	Flemming "F3" Jacobsen
2012-07-22 20:55:42 +00:00
phk
5f88891912 Replace hardcoded /mnt with ${SBMNT} which defaults to /mnt.sysbuild
Submitted by:	Flemming "F3" Jacobsen
2012-07-22 19:32:27 +00:00
adrian
555bfe85d8 Add a needed #include due to my recent change. 2012-07-20 07:49:26 +00:00
adrian
64ddb429bd Add missing SRCS. 2012-07-20 07:38:11 +00:00
adrian
a42011453b Add the new athratestats tool. 2012-07-20 07:17:24 +00:00
adrian
1303e3bf5c Tidy things up substantially:
* remove some debugging;
* introduce command line arguments;
* introduce support for non-ath0 interfaces.
2012-07-20 06:11:26 +00:00
adrian
a343cd6779 Use the rate control table to display the rate rather than the rix,
making the output of this program much more meaningful.
2012-07-20 02:18:47 +00:00
adrian
6618076433 Implement a first cut of the 'sample' rate statistics userland utility.
This outputs almost exactly the same information as the kernel sysctl does,
however the rix -> rate mapping isn't yet available as a TLV.
2012-07-20 01:38:03 +00:00
jilles
6e014f4c11 sh: Add a simple test for the "local" builtin. 2012-07-15 10:22:13 +00:00
jilles
689774f8e7 sh: Expand assignment-like words specially for export/readonly/local.
Examples:
  export x=~
now expands the tilde
  local y=$1
is now safe, even if $1 contains IFS characters or metacharacters.

For a word to "look like an assignment", it must start with a name followed
by an equals sign, none of which may be quoted.

The special treatment applies when the first word (potentially after
"command") is "export", "readonly" or "local". There may be quoting
characters but no expansions. If "local" is overridden with a function there
is no special treatment ("export" and "readonly" cannot be overridden with a
function).

If things like
  local arr=(1 2 3)
are ever allowed in the future, they cannot call a "local" function. This
would either be a run-time error or it would call the builtin.

This matches Austin Group bug #351, planned for the next issue of POSIX.1.

PR:		bin/166771
2012-07-15 10:19:43 +00:00
zeising
b0fedc4f6d Change language in WITH_BSDCONFIG to match other options, and regen
src.conf(5), which was missed in r238438.

Approved by:	joel (mentor)
2012-07-14 10:17:47 +00:00
dteske
3981b9b76a Import bsdconfig(8) as a replacement for the post-install abilities of
deprecated sysinstall(8). NOTE: WITH_BSDCONFIG is currently required.

Submitted by:	Devin Teske (dteske), Ron McDowell <rcm@fuzzwad.org>
Reviewed by:	Ron McDowell <rcm@fuzzwad.org>
Approved by:	Ed Maste (emaste)
2012-07-14 03:16:57 +00:00
jilles
5bce107d09 sh: Add tests where "export" does not parse differently.
It is planned to expand variable assignments as assignments (no word
splitting, different tilde expansion) when they follow a "declaration
utility" (export, readonly or local). However, a quoted character cannot be
part of a "name" so things like \v=~ are not assignments, and the existing
behaviour applies.
2012-07-13 22:29:02 +00:00
jhb
2b8d56f3cf The etcupdate utility is a tool for managing updates to files that are
not updated as part of `make installworld' such as files in /etc.  It
manages updates by doing a three-way merge of changes made to these files
against the local versions.  It is also designed to minimize the amount
of user intervention with the goal of simplifying upgrades for clusters
of machines.

The primary difference from mergemaster is that etcupdate requires less
manual work.  The primary difference from etcmerge is that etcupdate
updates files in-place similar to mergemaster rather than building a
separate /etc tree.

Requested by:	obrien, kib, theraven, joeld (among others)
2012-07-13 13:23:48 +00:00
kib
003ccf85fa Add a test program, written by Stephan Uphoff, which demonstrates the
deadlock due to i/o performed over the buffers backed by file mappings.

MFC after:	2 weeks
Approved by:	ups
2012-07-11 19:12:10 +00:00
emaste
66fc945ab8 Allow continuous packet transmission (via -t 0)
Also add a missing check for the cancel flag while waiting for the first
packet in receive mode.
2012-07-06 17:03:43 +00:00
emaste
5d3526c6d6 Also report tx bandwidth with Ethernet overhead 2012-07-06 15:36:39 +00:00