X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fdoc%2Fdeveloper%2Ftsc-smallv2.txt;h=d65cfed3bfd332dfd907acc5b7afb11b991fa897;hb=8de10cc008f0aa8a90e5bb0a29d38b3201396778;hp=e21cb9eee939fa5e4a12f4e0d0bf9f0dff11f8bc;hpb=0a0a32ee3219a1e77e06748c0c7ee9eacea9502d;p=lttv.git diff --git a/ltt/branches/poly/doc/developer/tsc-smallv2.txt b/ltt/branches/poly/doc/developer/tsc-smallv2.txt index e21cb9ee..d65cfed3 100644 --- a/ltt/branches/poly/doc/developer/tsc-smallv2.txt +++ b/ltt/branches/poly/doc/developer/tsc-smallv2.txt @@ -122,7 +122,8 @@ Granularity : 800ns (200 cycles@4GHz) : 2^9 = 512 (remove 9 LSB) Min wrap : 100HZ system, each 3 timer ticks : 0.03s (32-4 MSB for 4 GHZ : 0.26s) (heartbeat each 100HZ, to be safe) Number of MSB to skip : - 32 - find_first_bit(( (expected_longest_interrupt_latency()[ms] + max_timer_interval[ms]) / cpu_khz )) - 1 + 32 - find_first_bit(( (expected_longest_interrupt_latency()[ms] + + max_timer_interval[ms]) * cpu_khz[kcycles/s] )) - 1 (the last -1 is to make sure we remove less or exact amount of bits, round near to 0, not round up).