* New version of ClownToolKit
@ 2006-08-16 17:33 clowncoder
2006-08-16 18:48 ` Sam Ravnborg
0 siblings, 1 reply; 7+ messages in thread
From: clowncoder @ 2006-08-16 17:33 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hello,
The kernel module of the last version of the ClownToolKit has been
completly rewriten. It is now readable.
This kernel module permits the display of real-time plots for
bandwidth of tcp/udp connexions and for qdiscs monitoring.
It could be a usefull tool: http://clowncode.net
Regards to you all
Vincent Perrier.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New version of ClownToolKit
2006-08-16 17:33 clowncoder
@ 2006-08-16 18:48 ` Sam Ravnborg
2006-08-17 7:45 ` Jan Engelhardt
0 siblings, 1 reply; 7+ messages in thread
From: Sam Ravnborg @ 2006-08-16 18:48 UTC (permalink / raw)
To: clowncoder; +Cc: Linux Kernel Mailing List
On Wed, Aug 16, 2006 at 07:33:08PM +0200, clowncoder wrote:
> Hello,
>
> The kernel module of the last version of the ClownToolKit has been
> completly rewriten. It is now readable.
> This kernel module permits the display of real-time plots for
> bandwidth of tcp/udp connexions and for qdiscs monitoring.
> It could be a usefull tool: http://clowncode.net
A small nitpick about the way ou build the ekrnel module:
In mk_and_insmod you can replace:
make -C /usr/src/linux SUBDIRS=$PWD modules
with
LIBDIR=/lib/modules/`uname -r`
make -C $LIBDIR/source O=$LIBDIR/build SUBDIRS=`pwd` modules
For a normal kernel installation this will do the right thing.
source points to the kernel source and build point to the output
directory (they are often equal but not always).
$PWD is supplied by the shell, so it is better to use `pwd`.
Sam
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New version of ClownToolKit
[not found] ` <6KyCM-1w7-1@gated-at.bofh.it>
@ 2006-08-16 23:15 ` Bodo Eggert
2006-08-17 4:42 ` Sam Ravnborg
0 siblings, 1 reply; 7+ messages in thread
From: Bodo Eggert @ 2006-08-16 23:15 UTC (permalink / raw)
To: Sam Ravnborg, clowncoder, Linux Kernel Mailing List
Sam Ravnborg <sam@ravnborg.org> wrote:
> A small nitpick about the way ou build the ekrnel module:
>
> In mk_and_insmod you can replace:
> make -C /usr/src/linux SUBDIRS=$PWD modules
> with
> LIBDIR=/lib/modules/`uname -r`
> make -C $LIBDIR/source O=$LIBDIR/build SUBDIRS=`pwd` modules
>
> For a normal kernel installation this will do the right thing.
> source points to the kernel source and build point to the output
> directory (they are often equal but not always).
Please don't tell module authors to unconditionally use `uname -r`.
I frequently build kernels for differentd hosts, and if I don't, I'll
certainly compile the needed modules before installing the kernel.
Therefore /lib/modules/`uname -r` is most certainly the completely
wrong place to look for the kernel source.
--
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
http://david.woodhou.se/why-not-spf.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New version of ClownToolKit
2006-08-16 23:15 ` New version of ClownToolKit Bodo Eggert
@ 2006-08-17 4:42 ` Sam Ravnborg
2006-08-17 7:47 ` Jan Engelhardt
0 siblings, 1 reply; 7+ messages in thread
From: Sam Ravnborg @ 2006-08-17 4:42 UTC (permalink / raw)
To: 7eggert; +Cc: clowncoder, Linux Kernel Mailing List
On Thu, Aug 17, 2006 at 01:15:43AM +0200, Bodo Eggert wrote:
> Sam Ravnborg <sam@ravnborg.org> wrote:
>
> > A small nitpick about the way ou build the ekrnel module:
> >
> > In mk_and_insmod you can replace:
> > make -C /usr/src/linux SUBDIRS=$PWD modules
> > with
> > LIBDIR=/lib/modules/`uname -r`
> > make -C $LIBDIR/source O=$LIBDIR/build SUBDIRS=`pwd` modules
> >
> > For a normal kernel installation this will do the right thing.
> > source points to the kernel source and build point to the output
> > directory (they are often equal but not always).
>
> Please don't tell module authors to unconditionally use `uname -r`.
> I frequently build kernels for differentd hosts, and if I don't, I'll
> certainly compile the needed modules before installing the kernel.
> Therefore /lib/modules/`uname -r` is most certainly the completely
> wrong place to look for the kernel source.
/lib/modules/`uname -r` is the general solution that works for most
people and should be at least default. It is certainly better than
/usr/src/linux.
But yes they better make it override able.
Sam
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New version of ClownToolKit
2006-08-16 18:48 ` Sam Ravnborg
@ 2006-08-17 7:45 ` Jan Engelhardt
0 siblings, 0 replies; 7+ messages in thread
From: Jan Engelhardt @ 2006-08-17 7:45 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: clowncoder, Linux Kernel Mailing List
>> The kernel module of the last version of the ClownToolKit has been
>> completly rewriten. It is now readable.
>> This kernel module permits the display of real-time plots for
>> bandwidth of tcp/udp connexions and for qdiscs monitoring.
>> It could be a usefull tool: http://clowncode.net
>
>A small nitpick about the way ou build the ekrnel module:
>
>In mk_and_insmod you can replace:
>make -C /usr/src/linux SUBDIRS=$PWD modules
>with
>LIBDIR=/lib/modules/`uname -r`
>make -C $LIBDIR/source O=$LIBDIR/build SUBDIRS=`pwd` modules
Might like to replace with
make -C $LIBDIR/build M=`pwd` modules
>$PWD is supplied by the shell, so it is better to use `pwd`.
Does not harm really.
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New version of ClownToolKit
2006-08-17 4:42 ` Sam Ravnborg
@ 2006-08-17 7:47 ` Jan Engelhardt
2006-08-17 17:04 ` clowncoder
0 siblings, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2006-08-17 7:47 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: 7eggert, clowncoder, Linux Kernel Mailing List
>> > LIBDIR=/lib/modules/`uname -r`
>> > make -C $LIBDIR/source O=$LIBDIR/build SUBDIRS=`pwd` modules
>> >
>> > For a normal kernel installation this will do the right thing.
>> > source points to the kernel source and build point to the output
>> > directory (they are often equal but not always).
>>
>> Please don't tell module authors to unconditionally use `uname -r`.
>> I frequently build kernels for differentd hosts, and if I don't, I'll
>> certainly compile the needed modules before installing the kernel.
>> Therefore /lib/modules/`uname -r` is most certainly the completely
>> wrong place to look for the kernel source.
>
>/lib/modules/`uname -r` is the general solution that works for most
>people and should be at least default. It is certainly better than
>/usr/src/linux.
>But yes they better make it override able.
In some outoftree modules of mine, the Makefile reads like this
MODULES_DIR := /lib/modules/$(shell uname -r)
KSRC_DIR := ${MODULES_DIR}/source
KOBJ_DIR := ${MODULES_DIR}/build
all: modules
modules:
make -C "${KOBJ_DIR}" M="$$PWD";
and one can easily override it by calling `make MODULES_DIR=/foo/bar`
(instead of just `make`).
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New version of ClownToolKit
2006-08-17 7:47 ` Jan Engelhardt
@ 2006-08-17 17:04 ` clowncoder
0 siblings, 0 replies; 7+ messages in thread
From: clowncoder @ 2006-08-17 17:04 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Sam Ravnborg, 7eggert, Linux Kernel Mailing List
Le jeudi 17 août 2006 à 09:47 +0200, Jan Engelhardt a écrit :
> >> > LIBDIR=/lib/modules/`uname -r`
> >> > make -C $LIBDIR/source O=$LIBDIR/build SUBDIRS=`pwd` modules
> >> >
> >> > For a normal kernel installation this will do the right thing.
> >> > source points to the kernel source and build point to the output
> >> > directory (they are often equal but not always).
> >>
> >> Please don't tell module authors to unconditionally use `uname -r`.
> >> I frequently build kernels for differentd hosts, and if I don't, I'll
> >> certainly compile the needed modules before installing the kernel.
> >> Therefore /lib/modules/`uname -r` is most certainly the completely
> >> wrong place to look for the kernel source.
> >
> >/lib/modules/`uname -r` is the general solution that works for most
> >people and should be at least default. It is certainly better than
> >/usr/src/linux.
> >But yes they better make it override able.
>
> In some outoftree modules of mine, the Makefile reads like this
>
> MODULES_DIR := /lib/modules/$(shell uname -r)
> KSRC_DIR := ${MODULES_DIR}/source
> KOBJ_DIR := ${MODULES_DIR}/build
>
> all: modules
> modules:
> make -C "${KOBJ_DIR}" M="$$PWD";
>
> and one can easily override it by calling `make MODULES_DIR=/foo/bar`
> (instead of just `make`).
>
>
> Jan Engelhardt
Thank you all for all those tips, I will use this last one.
Vincent Perrier
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-08-17 17:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <6Kxx5-7PT-7@gated-at.bofh.it>
[not found] ` <6KyCM-1w7-1@gated-at.bofh.it>
2006-08-16 23:15 ` New version of ClownToolKit Bodo Eggert
2006-08-17 4:42 ` Sam Ravnborg
2006-08-17 7:47 ` Jan Engelhardt
2006-08-17 17:04 ` clowncoder
2006-08-16 17:33 clowncoder
2006-08-16 18:48 ` Sam Ravnborg
2006-08-17 7:45 ` Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox