diff options
author | Bandan Das | 2015-11-23 22:37:04 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2015-12-15 09:26:10 +0100 |
commit | 8e3e3897ce6d9e927053229ab0672f079c9c1501 (patch) | |
tree | 479ddf0f9b247b65a8ccbc449837f29d06c349a7 /trace-events | |
parent | usb-mtp: free objects on a mtp reset (diff) | |
download | qemu-8e3e3897ce6d9e927053229ab0672f079c9c1501.tar.gz qemu-8e3e3897ce6d9e927053229ab0672f079c9c1501.tar.xz qemu-8e3e3897ce6d9e927053229ab0672f079c9c1501.zip |
usb-mtp: Add support for inotify based file monitoring
For now, we use inotify watches to track only a small number of
events, namely, add, delete and modify. Note that for delete, the kernel
already deactivates the watch for us and we just need to
take care of modifying our internal state.
inotify is a linux only mechanism.
Suggested-by: Gerd Hoffman <kraxel@redhat.com>
Signed-off-by: Bandan Das <bsd@redhat.com>
Message-id: 1448314625-3855-4-git-send-email-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'trace-events')
-rw-r--r-- | trace-events | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trace-events b/trace-events index e2a20cffd0..3686e95d98 100644 --- a/trace-events +++ b/trace-events @@ -553,6 +553,7 @@ usb_mtp_op_unknown(int dev, uint32_t code) "dev %d, command code 0x%x" usb_mtp_object_alloc(int dev, uint32_t handle, const char *path) "dev %d, handle 0x%x, path %s" usb_mtp_object_free(int dev, uint32_t handle, const char *path) "dev %d, handle 0x%x, path %s" usb_mtp_add_child(int dev, uint32_t handle, const char *path) "dev %d, handle 0x%x, path %s" +usb_mtp_inotify_event(int dev, const char *path, uint32_t mask, const char *s) "dev %d, path %s mask 0x%x event %s" # hw/usb/host-libusb.c usb_host_open_started(int bus, int addr) "dev %d:%d" |