summaryrefslogtreecommitdiffstats
path: root/usr.bin/tcopy
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2007-01-24 21:19:56 +0000
committerjeff <jeff@FreeBSD.org>2007-01-24 21:19:56 +0000
commit04228656e71c877675d0eb41d19af982a1ce0f29 (patch)
treeecd54a60b1039a1b93cd0fb91b9699900f0b4e52 /usr.bin/tcopy
parent743ea48fbc06018d80117c8840e26b18854a2a3d (diff)
downloadFreeBSD-src-04228656e71c877675d0eb41d19af982a1ce0f29.zip
FreeBSD-src-04228656e71c877675d0eb41d19af982a1ce0f29.tar.gz
- Add a horrible bit of code to detect tsc differences between processors.
This only works if there is no significant drift and all processors are running at the same frequency. Fortunately, schedgraph traces on MP machines tend to cover less than a second so drift shouldn't be an issue. - KTRFile::synchstamp() iterates once over the whole list to determine the lowest tsc value and syncs adjusts all other values to match. We assume that the first tick recorded on all cpus happened at the same instant to start with. - KTRFile::monostamp() iterates again over the whole file and checks for a cpu agnostic monotonically increasing clock. If the time ever goes backwards the cpu responsible is adjusted further to fit. This will make the possible incorrect delta between cpus as small as the shortest time between two events. This time can be fairly large due to sched_lock essentially protecting all events. - KTRFile::checkstamp() now returns an adjusted timestamp. - StateEvent::draw() detects states that occur out of order in time and draws them as 0 pixels after printing a warning.
Diffstat (limited to 'usr.bin/tcopy')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud