From edbaa39842793fc4ac6603b277f2ad76f2057a45 Mon Sep 17 00:00:00 2001 From: Alexey Fisher Date: Thu, 3 Nov 2011 09:39:37 -0300 Subject: [media] uvcvideo: Add debugfs support Create a debugfs entry per UVC stream. This will be used to export stream statistics. Signed-off-by: Alexey Fisher Signed-off-by: Laurent Pinchart [mchehab@redhat.com: add incude to avoid compilation breakage] Signed-off-by: Mauro Carvalho Chehab --- drivers/media/video/uvc/uvcvideo.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/media/video/uvc/uvcvideo.h') diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h index 2b84cbb4966..d975636cbb1 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h @@ -403,6 +403,9 @@ struct uvc_streaming { __u32 sequence; __u8 last_fid; + + /* debugfs */ + struct dentry *debugfs_dir; }; enum uvc_device_state { @@ -606,4 +609,10 @@ extern struct usb_host_endpoint *uvc_find_endpoint( void uvc_video_decode_isight(struct urb *urb, struct uvc_streaming *stream, struct uvc_buffer *buf); +/* debugfs */ +int uvc_debugfs_init(void); +void uvc_debugfs_cleanup(void); +int uvc_debugfs_init_stream(struct uvc_streaming *stream); +void uvc_debugfs_cleanup_stream(struct uvc_streaming *stream); + #endif -- cgit v1.2.3-70-g09d2