public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] UML + High-Res-Timers on 2.4.25 kernel
@ 2005-10-07 13:24 Serge Goodenko
  2005-10-07 16:21 ` George Anzinger
  0 siblings, 1 reply; 5+ messages in thread
From: Serge Goodenko @ 2005-10-07 13:24 UTC (permalink / raw)
  To: linux-kernel

Hello!

I am trying to compile 2.4.25 UML kernel together with High Resolution Timers patch and it fails to compile saying the following during linking:

gcc -Wl,-T,arch/um/link.ld -static -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc \
        -o linux arch/um/main.o vmlinux.o -L/usr/lib -lutil
vmlinux.o(.text+0x2688): In function `schedule_timeout':
/usr/src/linux-2.4.25/kernel/sched.c:443: undefined reference to `jiffies'
vmlinux.o(.text+0x26cd):/usr/src/linux-2.4.25/kernel/sched.c:454: undefined reference to `jiffies'
vmlinux.o(.text+0x27a4): In function `schedule':
/usr/src/linux-2.4.25/include/linux/sched.h:929: undefined reference to `jiffies'
vmlinux.o(.text+0x489e): In function `do_fork':
/usr/src/linux-2.4.25/kernel/fork.c:740: undefined reference to `jiffies'
vmlinux.o(.text+0xabd5): In function `do_getitimer':
/usr/src/linux-2.4.25/kernel/itimer.c:55: undefined reference to `jiffies'
vmlinux.o(.text+0xacd3):/usr/src/linux-2.4.25/kernel/itimer.c:103: more undefined references to `jiffies' follow
collect2: ld returned 1 exit status
make: *** [linux] Error 1

is there any solution to this problem?
or HRT patch is not supposed to work under UML at all?

thanks in advance,
Serge, MIPT
Russia

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] UML + High-Res-Timers on 2.4.25 kernel
  2005-10-07 13:24 [PATCH] UML + High-Res-Timers on 2.4.25 kernel Serge Goodenko
@ 2005-10-07 16:21 ` George Anzinger
  2005-10-13  7:55   ` Serge Goodenko
  0 siblings, 1 reply; 5+ messages in thread
From: George Anzinger @ 2005-10-07 16:21 UTC (permalink / raw)
  To: Serge Goodenko
  Cc: linux-kernel,
	'high-res-timers-discourse@lists.sourceforge.net'

Serge Goodenko wrote:
> Hello!
> 
> I am trying to compile 2.4.25 UML kernel together with High Resolution Timers patch and it fails to compile saying the following during linking:
> 
> gcc -Wl,-T,arch/um/link.ld -static -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc \
>         -o linux arch/um/main.o vmlinux.o -L/usr/lib -lutil
> vmlinux.o(.text+0x2688): In function `schedule_timeout':
> /usr/src/linux-2.4.25/kernel/sched.c:443: undefined reference to `jiffies'
> vmlinux.o(.text+0x26cd):/usr/src/linux-2.4.25/kernel/sched.c:454: undefined reference to `jiffies'
> vmlinux.o(.text+0x27a4): In function `schedule':
> /usr/src/linux-2.4.25/include/linux/sched.h:929: undefined reference to `jiffies'
> vmlinux.o(.text+0x489e): In function `do_fork':
> /usr/src/linux-2.4.25/kernel/fork.c:740: undefined reference to `jiffies'
> vmlinux.o(.text+0xabd5): In function `do_getitimer':
> /usr/src/linux-2.4.25/kernel/itimer.c:55: undefined reference to `jiffies'
> vmlinux.o(.text+0xacd3):/usr/src/linux-2.4.25/kernel/itimer.c:103: more undefined references to `jiffies' follow
> collect2: ld returned 1 exit status
> make: *** [linux] Error 1
> 
> is there any solution to this problem?
> or HRT patch is not supposed to work under UML at all?
>
You might do better on the HRT list (cc'ed).

I don't know what UML needs.  I would have thought that jiffies would be defined...  especially for 
things like do_fork.  Which patch are you using?
-- 
George Anzinger   george@mvista.com
HRT (High-res-timers):  http://sourceforge.net/projects/high-res-timers/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: [PATCH] UML + High-Res-Timers on 2.4.25 kernel
  2005-10-07 16:21 ` George Anzinger
@ 2005-10-13  7:55   ` Serge Goodenko
  2005-10-13 19:44     ` George Anzinger
  0 siblings, 1 reply; 5+ messages in thread
From: Serge Goodenko @ 2005-10-13  7:55 UTC (permalink / raw)
  To: George Anzinger; +Cc: linux-kernel, high-res-timers-discourse



> 
> Serge Goodenko wrote:
> > Hello!
> > 
> > I am trying to compile 2.4.25 UML kernel together with High Resolution Timers patch and it fails to compile saying the following during linking:
> > 
> > gcc -Wl,-T,arch/um/link.ld -static -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc \
> >         -o linux arch/um/main.o vmlinux.o -L/usr/lib -lutil
> > vmlinux.o(.text+0x2688): In function `schedule_timeout':
> > /usr/src/linux-2.4.25/kernel/sched.c:443: undefined reference to `jiffies'
> > vmlinux.o(.text+0x26cd):/usr/src/linux-2.4.25/kernel/sched.c:454: undefined reference to `jiffies'
> > vmlinux.o(.text+0x27a4): In function `schedule':
> > /usr/src/linux-2.4.25/include/linux/sched.h:929: undefined reference to `jiffies'
> > vmlinux.o(.text+0x489e): In function `do_fork':
> > /usr/src/linux-2.4.25/kernel/fork.c:740: undefined reference to `jiffies'
> > vmlinux.o(.text+0xabd5): In function `do_getitimer':
> > /usr/src/linux-2.4.25/kernel/itimer.c:55: undefined reference to `jiffies'
> > vmlinux.o(.text+0xacd3):/usr/src/linux-2.4.25/kernel/itimer.c:103: more undefined references to `jiffies' follow
> > collect2: ld returned 1 exit status
> > make: *** [linux] Error 1
> > 
> > is there any solution to this problem?
> > or HRT patch is not supposed to work under UML at all?
> >
> You might do better on the HRT list (cc'ed).
> 
> I don't know what UML needs.  I would have thought that jiffies would be defined...  especially for 
> things like do_fork.  Which patch are you using?

Well, as far as I understood recently HRT patch is not what I exactly need. It provides just API for using in user space applications and I need to use High-Resolution timer in kernel (particulary in TCP/IP stack)...
therefore my problem now is to find suitable hi-res timer patch for use in 2.4 kernel...
and I would be pleased if you could recommend me something...

thanks,

Serge, MIPT,
Russia



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] UML + High-Res-Timers on 2.4.25 kernel
  2005-10-13  7:55   ` Serge Goodenko
@ 2005-10-13 19:44     ` George Anzinger
  2005-10-14  8:02       ` Re[2]: " Serge Goodenko
  0 siblings, 1 reply; 5+ messages in thread
From: George Anzinger @ 2005-10-13 19:44 UTC (permalink / raw)
  To: Serge Goodenko; +Cc: linux-kernel, high-res-timers-discourse

Serge Goodenko wrote:
> ~
>>>is there any solution to this problem?
>>>or HRT patch is not supposed to work under UML at all?
>>>
>>
>>You might do better on the HRT list (cc'ed).
>>
>>I don't know what UML needs.  I would have thought that jiffies would be defined...  especially for 
>>things like do_fork.  Which patch are you using?

HRT (in all its versions) requires the availability of a hardware timer to provide an interrupt at 
timer expiry.  I am not sure how this is done in UML but my guess is that the host kernel would need 
to have HRT running on it.  Then the UML kernel(s) would transform the HRT requests into the proper 
user call to the host.
> 
> 
> Well, as far as I understood recently HRT patch is not what I exactly need. It provides just API for using in user space applications and I need to use High-Resolution timer in kernel (particulary in TCP/IP stack)...
> therefore my problem now is to find suitable hi-res timer patch for use in 2.4 kernel...

There are several 2.4 HRT patches on the HRT site, see signature below.

Still, these patches do not provide kernel access to the high-res timers.  This has been done in one 
case, but the interface is not really defined nor stable (i.e. we may change it in the next 
release...).  Look for HIGH_RES_TIMERS in the ipmi driver in the 2.6 kernel tree to see how to go 
about this.

> and I would be pleased if you could recommend me something...
> 
> thanks,
> 
> Serge, MIPT,
> Russia
> 
> 
> -
> 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/
> 

-- 
George Anzinger   george@mvista.com
HRT (High-res-timers):  http://sourceforge.net/projects/high-res-timers/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re[2]: [PATCH] UML + High-Res-Timers on 2.4.25 kernel
  2005-10-13 19:44     ` George Anzinger
@ 2005-10-14  8:02       ` Serge Goodenko
  0 siblings, 0 replies; 5+ messages in thread
From: Serge Goodenko @ 2005-10-14  8:02 UTC (permalink / raw)
  To: george; +Cc: linux-kernel, high-res-timers-discourse

> Still, these patches do not provide kernel access to the high-res timers.  This has been done in one 
> case, but the interface is not really defined nor stable (i.e. we may change it in the next 
> release...).  Look for HIGH_RES_TIMERS in the ipmi driver in the 2.6 kernel tree to see how to go 
> about this.

yeah...
all these problems finally persuaded me to start playing with 2.6 kernel... )

thank you for replies!


Serge
MIPT
Moscow
Russia

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-14  8:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-07 13:24 [PATCH] UML + High-Res-Timers on 2.4.25 kernel Serge Goodenko
2005-10-07 16:21 ` George Anzinger
2005-10-13  7:55   ` Serge Goodenko
2005-10-13 19:44     ` George Anzinger
2005-10-14  8:02       ` Re[2]: " Serge Goodenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox