PERFORCE change 132545 for review
John Birrell
jb at FreeBSD.org
Fri Jan 4 20:42:51 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132545
Change 132545 by jb at jb_freebsd1 on 2008/01/05 04:42:27
Use a time function based on the TSC, not the per-CPU cycle counter.
Affected files ...
.. //depot/projects/dtrace/src/sys/cddl/dev/profile/profile.c#6 edit
Differences ...
==== //depot/projects/dtrace/src/sys/cddl/dev/profile/profile.c#6 (text+ko) ====
@@ -200,7 +200,7 @@
hrtime_t late;
solaris_cpu_t *c = &solaris_cpu[curcpu];
- late = dtrace_gethrtime() - pcpu->profc_expected;
+ late = gethrtime() - pcpu->profc_expected;
pcpu->profc_expected += pcpu->profc_interval;
dtrace_probe(prof->prof_id, c->cpu_profile_pc,
@@ -403,7 +403,7 @@
hdlr->cyh_arg = pcpu;
when->cyt_interval = prof->prof_interval;
- when->cyt_when = dtrace_gethrtime() + when->cyt_interval;
+ when->cyt_when = gethrtime() + when->cyt_interval;
pcpu->profc_expected = when->cyt_when;
pcpu->profc_interval = when->cyt_interval;
@@ -436,7 +436,7 @@
hdlr.cyh_arg = prof;
when.cyt_interval = prof->prof_interval;
- when.cyt_when = dtrace_gethrtime() + when.cyt_interval;
+ when.cyt_when = gethrtime() + when.cyt_interval;
} else {
ASSERT(prof->prof_kind == PROF_PROFILE);
omni.cyo_online = profile_online;
More information about the p4-projects
mailing list