Date: Sat, 5 Jan 2008 04:42:48 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 132545 for review Message-ID: <200801050442.m054gmTh005719@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132545 Change 132545 by jb@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801050442.m054gmTh005719>