Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127234
b: refs/heads/master
c: f150fa1
h: refs/heads/master
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Jan 7, 2009
1 parent 7e95301 commit a1be207
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e5b0e5d6a354f6f457368149eb2e9a61e5576cf
refs/heads/master: f150fa1afbf69a87f54752579ff2bb769aad88b3
4 changes: 2 additions & 2 deletions trunk/drivers/usb/core/hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ EXPORT_SYMBOL_GPL(usb_hcd_platform_shutdown);

/*-------------------------------------------------------------------------*/

#if defined(CONFIG_USB_MON)
#if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE)

struct usb_mon_operations *mon_ops;

Expand Down Expand Up @@ -2064,4 +2064,4 @@ void usb_mon_deregister (void)
}
EXPORT_SYMBOL_GPL (usb_mon_deregister);

#endif /* CONFIG_USB_MON */
#endif /* CONFIG_USB_MON || CONFIG_USB_MON_MODULE */
4 changes: 2 additions & 2 deletions trunk/drivers/usb/core/hcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static inline void usbfs_cleanup(void) { }

/*-------------------------------------------------------------------------*/

#if defined(CONFIG_USB_MON)
#if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE)

struct usb_mon_operations {
void (*urb_submit)(struct usb_bus *bus, struct urb *urb);
Expand Down Expand Up @@ -463,7 +463,7 @@ static inline void usbmon_urb_submit_error(struct usb_bus *bus, struct urb *urb,
static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb,
int status) {}

#endif /* CONFIG_USB_MON */
#endif /* CONFIG_USB_MON || CONFIG_USB_MON_MODULE */

/*-------------------------------------------------------------------------*/

Expand Down
13 changes: 6 additions & 7 deletions trunk/drivers/usb/mon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
#

config USB_MON
bool "USB Monitor"
depends on USB!=n
default y
tristate "USB Monitor"
depends on USB
default y if USB=y
default m if USB=m
help
If you say Y here, a component which captures the USB traffic
If you select this option, a component which captures the USB traffic
between peripheral-specific drivers and HC drivers will be built.
For more information, see <file:Documentation/usb/usbmon.txt>.

This is somewhat experimental at this time, but it should be safe.

If unsure, say Y.
If unsure, say Y (if allowed), otherwise M.
3 changes: 1 addition & 2 deletions trunk/drivers/usb/mon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

usbmon-objs := mon_main.o mon_stat.o mon_text.o mon_bin.o mon_dma.o

# This does not use CONFIG_USB_MON because we want this to use a tristate.
obj-$(CONFIG_USB) += usbmon.o
obj-$(CONFIG_USB_MON) += usbmon.o
2 changes: 1 addition & 1 deletion trunk/include/linux/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ struct usb_bus {
#endif
struct device *dev; /* device for this bus */

#if defined(CONFIG_USB_MON)
#if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE)
struct mon_bus *mon_bus; /* non-null when associated */
int monitored; /* non-zero when monitored */
#endif
Expand Down

0 comments on commit a1be207

Please sign in to comment.