Commit Graph

18 Commits

Author SHA1 Message Date
hrs
cb8b05054c Make usbusN logging pseudo-interface used by usbdump(8) clonable. One is
now created/destroyed automatically by usbdump(8).

Note that "hw.usb.no_pf" loader tunable is now obsolete.

Reviewed by:	hselasky
2012-07-09 07:25:09 +00:00
hselasky
99e455a390 Add missing and probably also mandatory -h option.
MFC after:	1 week
2012-04-24 14:06:07 +00:00
hselasky
e0380acdc0 Improve support for USB packet filtering also when reading dumps, and
allow filtered data to be dumped to a binary file.

MFC after:	1 week
2012-04-24 06:26:14 +00:00
hselasky
24eb4e2893 Create new file header format to simplify the endian and cross platform issues.
This patch does not break binary compatibility with previous versions.

MFC after:	1 week
2012-03-16 17:30:22 +00:00
hselasky
c54c4cd884 Fix cross-platform issue about the file-format in which
usbdump stores data. Until this patch it was not possible
to exchange traces between 32-bit, 64-bit, big- and
little endian platforms. The problem is the dynamic nature
of the BPF timestamp in the header. All other fields are
fixed size and little endian.

MFC after:	5 days
2012-03-16 16:29:21 +00:00
hselasky
d881ad2fe8 Add support for filtering USB devices and USB endpoints to the usbdump utility
when making software USB traces.

MFC after: 1 week
2012-02-16 21:18:36 +00:00
hselasky
cccdd4e875 Make the usbdump utility work again by using the correct BPF structures.
MFC after:	3 days
2011-10-17 15:54:20 +00:00
bcr
91ae7611d7 Minor wording adjustments to usbdump(8).
PR:		docs/157317
Submitted by:	Warren Block (wblock at wonkity dot com)
Reviewed by:	hps@
MFC after:	5 days
2011-05-31 07:13:07 +00:00
ru
2628ba45f7 [mdoc] Fixed .Dt call. 2011-05-25 14:13:53 +00:00
hselasky
5ab9e26ffc Minor usbdump update:
- Use memcpy() instead of bcopy().
- Replace all asserts() by standard error messages.
- Update usage().

MFC after:	7 days
2011-05-07 16:28:23 +00:00
thompsa
44e946c1dd Lower WARNS to unbreak the build, some archs may have alignment issues. 2011-04-04 03:43:13 +00:00
thompsa
076efb377c fix printing of tv_usec 2011-04-04 02:57:19 +00:00
hselasky
13be006e1b - Improvements to USB PF solution
- Add more fields for USB device and host mode
- Add more information to USB PF header so that decoding
  can easily be done by software analyzer tools like
  Wireshark.
- Optimise usbdump to display USB streams in text format
  more efficiently.
- Software using USB PF must be recompiled after
  this commit, due to structure changes.

MFC after:	7 days
Approved by:	thompsa (mentor)
2011-04-03 20:03:45 +00:00
hselasky
4d002160ce - Remove double semicolon.
- Remove reference to sprintf. Use printf directly. This part of
the code should be optimised further to avoid many small printouts.
Setting a sensible line buffer length could help aswell when printing
out megabytes of data per second.

Approved by:	thompsa (mentor)
2011-01-28 08:00:57 +00:00
weongyo
d3183a65c9 Documents OUTPUT formats. While I'm here cleans up styles and words.
Reviewed by:	brueffer@
2011-01-13 16:37:12 +00:00
weongyo
f7b9a54cd7 Changes the meaning of each characters '<' and '>' that it could be
confused with USB OUT or USB IN packets though it just represents USB
submit or done.  To know the USB packet direction, the endpoint address
should be referred.

Requested by:	jkim
2010-12-03 00:44:07 +00:00
weongyo
fe7e8c3873 As a refection of r215802 it should use BPF interfaces because the
duplication code of USB pf is removed.
2010-11-24 19:15:26 +00:00
weongyo
08a93ec3b7 Adds usbdump(8) tool that currently it only supports the very basic
feature set.  It's not connected to the build yet.

Reviewed by:	hps
2010-11-22 01:28:29 +00:00