lkml.org 
[lkml]   [2004]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] voluntary-preempt-2.6.9-rc2-mm1-S1
* Karsten Wiese <annabellesgarden@yahoo.de> wrote:

> Just 1 small correction:
> >>>>
> --- kernel/time.c~ 2004-09-19 15:09:38.000000000 +0200
> +++ kernel/time.c 2004-09-19 17:02:35.000000000 +0200
> @@ -96,8 +96,10 @@
> asmlinkage long sys_gettimeofday(struct timeval __user *tv, struct timezone
> __user *tz)
> {
> #ifdef CONFIG_LATENCY_TRACE
> - if (!tv && ((long)tz == 1))
> + if (!tv && ((long)tz == 1)) {
> user_trace_start();
> + tz = NULL;
> + }
> if (!tv && !tz)
> user_trace_stop();

The point is to let gettimeofday(0,1) start tracing and
gettimeofday(0,0) stop tracing - a system-call-controlled tracing
facility (if trace_enabled=2). This was used to trace weird latencies
before, but it's not the normal mode of operation.

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.035 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site