3 extern void fuse_request_send_background_ex(struct fuse_conn
*fc
,
4 struct fuse_req
*req
, __u32 size
);
5 extern void fuse_request_send_ex(struct fuse_conn
*fc
, struct fuse_req
*req
,
8 #ifndef USER_BUILD_KERNEL /* IO log is only enabled in eng load */
12 #ifdef MET_FUSEIO_TRACE
13 #define MET_FUSE_IOLOG_INIT() struct timespec met_fuse_start_time, met_fuse_end_time
14 #define MET_FUSE_IOLOG_START() get_monotonic_boottime(&met_fuse_start_time)
15 #define MET_FUSE_IOLOG_END() get_monotonic_boottime(&met_fuse_end_time)
17 #define MET_FUSE_IOLOG_INIT(...)
18 #define MET_FUSE_IOLOG_START(...)
19 #define MET_FUSE_IOLOG_END(...)
24 #include <linux/sched.h>
25 #include <linux/xlog.h>
26 #include <linux/kthread.h>
28 extern void fuse_time_diff(struct timespec
*start
,
30 struct timespec
*diff
);
32 extern void fuse_iolog_add(__u32 io_bytes
, int type
,
33 struct timespec
*start
,
34 struct timespec
*end
);
36 extern __u32
fuse_iolog_timeus_diff(struct timespec
*start
,
37 struct timespec
*end
);
39 extern void fuse_iolog_exit(void);
40 extern void fuse_iolog_init(void);
54 struct fuse_rw_info read
;
55 struct fuse_rw_info write
;
56 struct fuse_rw_info misc
;
59 #define FUSE_IOLOG_MAX 12
60 #define FUSE_IOLOG_BUFLEN 512
61 #define FUSE_IOLOG_LATENCY 1
63 #define FUSE_IOLOG_INIT() struct timespec _tstart, _tend
64 #define FUSE_IOLOG_START() get_monotonic_boottime(&_tstart)
65 #define FUSE_IOLOG_END() get_monotonic_boottime(&_tend)
66 #define FUSE_IOLOG_US() fuse_iolog_timeus_diff(&_tstart, &_tend)
67 #define FUSE_IOLOG_PRINT(iobytes, type) fuse_iolog_add(iobytes, type, &_tstart, &_tend)
71 #define FUSE_IOLOG_INIT(...)
72 #define FUSE_IOLOG_START(...)
73 #define FUSE_IOLOG_END(...)
74 #define FUSE_IOLOG_PRINT(...)
75 #define fuse_iolog_init(...)
76 #define fuse_iolog_exit(...)