* hrtimer.h
@ 2006-11-30 0:42 Ariel Chÿffffe1vez Lorenzo
2006-11-30 12:06 ` hrtimer.h Arjan van de Ven
2006-12-14 1:09 ` hrtimer.h Steven Rostedt
0 siblings, 2 replies; 3+ messages in thread
From: Ariel Chÿffffe1vez Lorenzo @ 2006-11-30 0:42 UTC (permalink / raw)
To: linux-kernel
Hi,
Since the kernel 2.6.18 has incorporated the high
resolution timer itself, I'm trying to test it, but on
my GNU/Debian I can't figure out how to include
hrtimer.h, that is on /usr/src/linux/include/, the
headers.
I use the following command to try to compile it.
gcc -D__KERNEL__ -I /usr/src/linux/include ex.c
ex.c is just the inclusion of hrtimer.h
#include <linux/hrtimer.h>
int main()
{
return 0;
}
and I get this:
In file included from
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/asm/thread_info.h:16,
from
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/linux/thread_info.h:21,
from
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/linux/preempt.h:9,
from
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/linux/spinlock.h:49,
from
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/linux/seqlock.h:29,
from
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/linux/time.h:7,
from
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/linux/ktime.h:24,
from
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/linux/hrtimer.h:19,
from ex.c:1:
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/asm/processor.h:80:
error: CONFIG_X86_L1_CACHE_SHIFT undeclared here
(not in a function)
/usr/src/linux-headers-2.6.18sbr-24-11-06/include/asm/processor.h:80:
error: requested alignment is not a constant
I will appreciate any hint.
Thanks in advance..
Ariel
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: hrtimer.h
2006-11-30 0:42 hrtimer.h Ariel Chÿffffe1vez Lorenzo
@ 2006-11-30 12:06 ` Arjan van de Ven
2006-12-14 1:09 ` hrtimer.h Steven Rostedt
1 sibling, 0 replies; 3+ messages in thread
From: Arjan van de Ven @ 2006-11-30 12:06 UTC (permalink / raw)
To: Ariel Chÿffffe1vez Lorenzo; +Cc: linux-kernel
On Thu, 2006-11-30 at 01:42 +0100, Ariel Chÿffffe1vez Lorenzo wrote:
> Hi,
>
> Since the kernel 2.6.18 has incorporated the high
> resolution timer itself, I'm trying to test it, but on
> my GNU/Debian I can't figure out how to include
> hrtimer.h, that is on /usr/src/linux/include/, the
> headers.
>
> I use the following command to try to compile it.
>
> gcc -D__KERNEL__ -I /usr/src/linux/include ex.c
never use __KERNEL__ for userspace programs!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hrtimer.h
2006-11-30 0:42 hrtimer.h Ariel Chÿffffe1vez Lorenzo
2006-11-30 12:06 ` hrtimer.h Arjan van de Ven
@ 2006-12-14 1:09 ` Steven Rostedt
1 sibling, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2006-12-14 1:09 UTC (permalink / raw)
To: Ariel Chÿffffe1vez Lorenzo; +Cc: linux-kernel
On Thu, 2006-11-30 at 01:42 +0100, Ariel Chÿffffe1vez Lorenzo wrote:
> Hi,
>
> Since the kernel 2.6.18 has incorporated the high
> resolution timer itself, I'm trying to test it, but on
> my GNU/Debian I can't figure out how to include
> hrtimer.h, that is on /usr/src/linux/include/, the
> headers.
>
> I use the following command to try to compile it.
>
> gcc -D__KERNEL__ -I /usr/src/linux/include ex.c
>
>
> ex.c is just the inclusion of hrtimer.h
>
> #include <linux/hrtimer.h>
> int main()
> {
> return 0;
> }
>
As stated, the kernel headers have nothing to do with user space code.
But I'll educate you a little more.
First, high resolution timers are not in 2.6.18. The hrtimers are, but
the actual meat that makes them high resolution wont be in until
(hopefully) 2.6.20 (or perhaps a little later).
To use the high resolution timers (when they are in), you don't need to
do anything special. nanosleep, and all the posix timers will get them
automatically.
-- Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-12-14 1:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-30 0:42 hrtimer.h Ariel Chÿffffe1vez Lorenzo
2006-11-30 12:06 ` hrtimer.h Arjan van de Ven
2006-12-14 1:09 ` hrtimer.h Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome