1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00
Bryn M. Reeves 5635cd3b03 dmstats: separate TIMERFD and useleep() exit conditions
The time management code mixes tests of the _timer_fd value with
code that should be timer agnostic: this causes problems for users
of the usleep() timer, since it cannot properly detect the start
of a new interval:

Beginning first interval
Interval     #18446744069414584348     time delta:   1000000000ns
Interval     #18446744069414584348   current err:            0ns
End interval #18446744069414584348  duration:   1000000000ns
Adjusted sample interval duration:   1000000000ns
[...]
Beginning first interval
Interval     #18446744069414584349     time delta:   1000000000ns
Interval     #18446744069414584349   current err:            0ns
End interval #18446744069414584349  duration:   1000000000ns
Adjusted sample interval duration:   1000000000ns

Separate these out, by defining a _timer_running() call that each
timer implements, and only define _timer_fd if we are compiling
with TIMERFD enabled.
2016-12-18 13:03:44 +00:00
..
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-05-27 15:47:24 +02:00
2016-01-21 12:11:37 +01:00
2016-11-23 17:55:03 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-05-25 15:05:49 -05:00
2016-06-22 13:13:10 -05:00
2016-06-28 02:30:31 +01:00
2016-01-21 12:11:37 +01:00
2016-06-28 02:30:31 +01:00
2016-06-28 02:30:31 +01:00
2016-12-11 23:24:19 +01:00
2016-01-21 12:11:37 +01:00
2016-11-25 14:58:28 +01:00
2016-06-28 02:30:31 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-12-13 22:07:52 +01:00
2016-06-20 11:33:42 +02:00
2016-06-28 02:30:31 +01:00
2016-12-13 22:07:52 +01:00
2016-12-13 22:07:52 +01:00
2016-06-28 02:30:31 +01:00
2016-01-21 12:11:37 +01:00
2016-06-28 02:30:31 +01:00
2016-06-28 02:30:31 +01:00
2016-12-13 22:07:52 +01:00