Lines Matching full:we
80 * We adjust a single wrap-around but fail if the distance is bigger than that.
90 /* Correct a single wrap-around. If we lost enough MTCs to wrap in pt_time_ctc_delta()
96 /* Since we only store the CTC between TMA/MTC or MTC/TMC a in pt_time_ctc_delta()
146 /* We got the full time; we recover from previous losses. */ in pt_time_update_tsc()
188 /* We shouldn't have more than one TMA per TSC. */ in pt_time_update_tma()
192 /* We're ignoring MTC between TSC and TMA. */ in pt_time_update_tma()
212 * value, we can use the TMA as an MTC. in pt_time_update_tma()
214 * If it isn't, we will estimate the preceding MTC based on the CTC bits in pt_time_update_tma()
215 * the TMA provides at the next MTC. We forget about the previous MTC in pt_time_update_tma()
218 * If no MTC packets are dropped around TMA, we will estimate the in pt_time_update_tma()
221 * If MTC packets are dropped, we can't really tell where in this in pt_time_update_tma()
228 /* In both cases, we store the TMA's CTC bits until the next MTC. */ in pt_time_update_tma()
250 /* We ignore MTCs between TSC and TMA to avoid apparent CTC overflows. in pt_time_update_mtc()
253 * enough bits. If TMA doesn't provide any of the MTC bits we may place in pt_time_update_mtc()
265 /* Store our CTC value if we have or would have reset FC. */ in pt_time_update_mtc()
269 /* Prepare for the next packet in case we error out below. */ in pt_time_update_mtc()
274 /* We recover from previous CYC losses. */ in pt_time_update_mtc()
277 /* Avoid a big jump when we see the first MTC with an arbitrary CTC in pt_time_update_mtc()
283 /* If we have not seen a TMA, we ignore this first MTC. in pt_time_update_mtc()
285 * We have no idea where in this MTC period tracing started. in pt_time_update_mtc()
286 * We could lose an entire MTC period or just a tiny fraction. in pt_time_update_mtc()
288 * On the other hand, if we assumed a previous MTC value, we in pt_time_update_mtc()
295 * we would have treated the TMA as an MTC. in pt_time_update_mtc()
306 /* We estimate the high-order CTC bits that are not provided by in pt_time_update_mtc()
309 * We assume that no MTC packets were dropped around TMA. If in pt_time_update_mtc()
310 * there are, we might place the TSC into the wrong MTC period in pt_time_update_mtc()
314 * Note that we may underflow which results in more bits to be in pt_time_update_mtc()
344 * Depending on the CYC threshold, we may not get a CYC for each MTC, so a CYC
347 * We can't do much about the overlap case without examining all packets in
348 * the respective periods. We leave this as expected imprecision.
350 * If we find a CYC packet to span multiple MTC packets, though, we try to
354 * We only consider MTC. For the first CYC after TSC, the corresponding TMA
395 /* Make sure we don't wrap around. If we would, attribute the entire in pt_time_adjust_cyc()
398 * We lost an unknown portion of the CYC payload for the current MTC in pt_time_adjust_cyc()
508 /* A TSC outside of PSB+ may indicate loss of time. We do not use it in pt_tcal_update_tsc()
509 * for calibration. We store the TSC value for calibration at the next in pt_tcal_update_tsc()
554 /* We shift the nominator to improve rounding precision. in pt_tcal_header_tsc()
556 * Since we're only collecting the CYCs between two TSC, we shouldn't in pt_tcal_header_tsc()
592 /* If we know the nominal frequency, we can use it for calibration. */ in pt_tcal_header_cbr()
635 /* We need at least two MTC (including this). */ in pt_tcal_update_mtc()
644 /* Without any cycles, we can't calibrate. Try again at the next in pt_tcal_update_mtc()
650 /* Prepare for the next packet in case we error out below. */ in pt_tcal_update_mtc()
655 /* Let's pretend we will fail. We'll correct it at the end. */ in pt_tcal_update_mtc()
666 /* We shift the nominator to improve rounding precision. in pt_tcal_update_mtc()
668 * Since we're only collecting the CYCs between two MTC, we shouldn't in pt_tcal_update_mtc()
679 * We skip this MTC if we lost one or more MTC since the last PSB or if in pt_tcal_update_mtc()
680 * it looks like we lost a wrap CYC packet. in pt_tcal_update_mtc()
682 * This is not an error but we count that MTC as lost. in pt_tcal_update_mtc()
685 /* If we lost one or more MTC, the case is clear. */ in pt_tcal_update_mtc()
689 /* The case is less clear for a lost wrap CYC packet since we do in pt_tcal_update_mtc()
696 * We restrict the workaround to higher MTC frequencies (lower in pt_tcal_update_mtc()
699 * We also need a previous FCR so we know how many cycles to in pt_tcal_update_mtc()
705 /* We choose a slightly lower adjustment to account for in pt_tcal_update_mtc()
710 /* If we didn't drop a wrap CYC, @dfc should be way in pt_tcal_update_mtc()
711 * bigger than @fc. If it isn't, we assume that the in pt_tcal_update_mtc()
723 /* We updated the FCR. This recovers from previous MTC losses. */ in pt_tcal_update_mtc()