Skip to content

Commit 5974703

Browse files
DLPX-88179 estat JSON mode gives histogram keys in nanoseconds rather than microseconds
PR URL: https://www.github.com/delphix/performance-diagnostics/pull/94
1 parent 729afed commit 5974703

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bpf/estat/backend-io.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ disk_io_start(struct pt_regs *ctx, struct request *reqp)
4747
int
4848
disk_io_done(struct pt_regs *ctx, struct request *reqp)
4949
{
50-
u64 ts = bpf_ktime_get_ns();
50+
// bpf diplays it in microsecs. so here divide by 1000 to get microsecs
51+
u64 ts = bpf_ktime_get_ns() / 1000;
5152
io_data_t *data = io_base_data.lookup((u64 *) &reqp);
5253
struct bio *bp = reqp->bio;
5354

0 commit comments

Comments
 (0)