mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sven-Thorsten Dietrich <sven@mvista.com>
To: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>
Subject: [PATCH 2.6.14-rt13] Latency Tracing Fix
Date: Tue, 15 Nov 2005 03:46:40 -0800	[thread overview]
Message-ID: <1132055200.4966.10.camel@imap.mvista.com> (raw)

Compile error with latency tracing and no ktimers on i386:

  CC      kernel/ktimers.o
kernel/ktimers.c: In function ‘enqueue_ktimer’:
kernel/ktimers.c:756: error: incompatible type for argument 1 of
‘trace_special_u64’
make[1]: *** [kernel/ktimers.o] Error 1
make: *** [kernel] Error 2

#diff defconfig .config
#4c4
#< # Tue Nov 15 03:19:31 2005
#---
#> # Tue Nov 15 03:20:21 2005
#163d162
#< # CONFIG_REGPARM is not set
#1434c1433,1434
#< # CONFIG_LATENCY_TRACE is not set
#---
#> CONFIG_LATENCY_TRACE=y
#> CONFIG_MCOUNT=y
#1437a1438
#> CONFIG_FRAME_POINTER=y

Index: linux-rt/include/linux/ktimer.h
===================================================================
--- linux-rt.orig/include/linux/ktimer.h
+++ linux-rt/include/linux/ktimer.h
@@ -167,8 +167,11 @@ static inline int ktimer_interrupt(void)
 	return 0;
 }
 
-#define ktimer_trace(a,b)		trace_special_u64(a,b)
-
+# if (BITS_PER_LONG == 64) 
+#  define ktimer_trace(a,b)		trace_special_u64(a,b)
+# else
+#  define ktimer_trace(a,b)		trace_special(ktime_get_high(a),ktime_get_low(a),b)
+# endif 
 #endif
 
 /* Exported timer functions: */






                 reply	other threads:[~2005-11-15 11:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1132055200.4966.10.camel@imap.mvista.com \
    --to=sven@mvista.com \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®