* [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
@ 2009-07-06 10:15 gowrishankar
2009-07-06 11:38 ` Francesco RUNDO
2009-07-06 15:51 ` Subrata Modak
0 siblings, 2 replies; 15+ messages in thread
From: gowrishankar @ 2009-07-06 10:15 UTC (permalink / raw)
To: subrata; +Cc: ltp-list
[-- Attachment #1: Type: text/plain, Size: 812 bytes --]
Hi Subrata,
Please accept the patch below.
Thanks,
Gowri
---
cgroups: conditionally enable building cgroup tests
controllers tests gets included into default ltp build if "/proc/cgroup"
exists. It stops the ltp build in realtime kernel environment where kernel
is new and supports cgroups, but necessary file "linux/cgroupstats.h" may not
exist in the base OS (like RHEL5.3). So configure command enables the build,
but actual build fails, due to missing header file.
Below patch proposes new symbol LTP_CHECK_CGROUPSTATS to check for header file
"linux/cgroupstats.h" and include controllers in the list of tests to build.
Tested the patch in non-RT as well as RT environment for the changes.
Signed-off-by: Gowrishankar <gowrishankar.m@in.ibm.com>
Tested-by: Gowrishankar <gowrishankar.m@in.ibm.com>
---
[-- Attachment #2: controllers-build.patch --]
[-- Type: text/x-patch, Size: 1608 bytes --]
Index: ltp-full-20090630/m4/ltp-cgroupstats.m4
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ ltp-full-20090630/m4/ltp-cgroupstats.m4 2009-07-03 13:41:55.000000000 +0530
@@ -0,0 +1,9 @@
+dnl
+dnl LTP_CHECK_CGROUPSTATS
+dnl ----------------------------
+dnl
+AC_DEFUN([LTP_CHECK_CGROUPSTATS],
+[dnl
+AC_CHECK_HEADERS(linux/cgroupstats.h,[LTP_CHECK_CGROUPSTATS_HEADER=yes])
+AC_SUBST(LTP_CHECK_CGROUPSTATS_HEADER)
+])
Index: ltp-full-20090630/configure.ac
===================================================================
--- ltp-full-20090630.orig/configure.ac 2009-07-03 13:59:48.000000000 +0530
+++ ltp-full-20090630/configure.ac 2009-07-03 14:00:14.000000000 +0530
@@ -21,5 +21,6 @@
LTP_CHECK_SELINUX
LTP_CHECK_CRYPTO
LTP_CHECK_TASKSTATS
+LTP_CHECK_CGROUPSTATS
AC_OUTPUT
Index: ltp-full-20090630/testcases/kernel/Makefile
===================================================================
--- ltp-full-20090630.orig/testcases/kernel/Makefile 2009-07-03 14:01:25.000000000 +0530
+++ ltp-full-20090630/testcases/kernel/Makefile 2009-07-03 14:02:42.000000000 +0530
@@ -1,6 +1,12 @@
-SUBDIRS = power_management numa containers controllers connectors include fs io ipc mem pty sched security syscalls timers
+include ../../config.mk
+
+SUBDIRS = power_management numa containers connectors include fs io ipc mem pty sched security syscalls timers
UCLINUX_SUBDIRS = include syscalls
+ifeq ($(LTP_CHECK_CGROUPSTATS_HEADER),yes)
+ SUBDIRS+= controllers
+endif
+
all:
@set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
[-- Attachment #3: Type: text/plain, Size: 79 bytes --]
------------------------------------------------------------------------------
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 10:15 [LTP] [PATCH] cgroups: conditionally enable building cgroup tests gowrishankar
@ 2009-07-06 11:38 ` Francesco RUNDO
2009-07-06 12:00 ` gowrishankar
2009-07-06 17:28 ` Garrett Cooper
2009-07-06 15:51 ` Subrata Modak
1 sibling, 2 replies; 15+ messages in thread
From: Francesco RUNDO @ 2009-07-06 11:38 UTC (permalink / raw)
To: gowrishankar; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 3265 bytes --]
Hi Gowri,
I've already fixed the same issue you reported. I've tested it successfully.
Subrata has already merged my patch (please, find it in attachment).
Please, check it before to submit another patch.
Thanks
Regards
Francesco Rundo
gowrishankar wrote:
> Hi Subrata,
> Please accept the patch below.
>
> Thanks,
> Gowri
> ---
> cgroups: conditionally enable building cgroup tests
>
> controllers tests gets included into default ltp build if "/proc/cgroup"
> exists. It stops the ltp build in realtime kernel environment where
> kernel
> is new and supports cgroups, but necessary file "linux/cgroupstats.h"
> may not
> exist in the base OS (like RHEL5.3). So configure command enables the
> build,
> but actual build fails, due to missing header file.
>
> Below patch proposes new symbol LTP_CHECK_CGROUPSTATS to check for
> header file
> "linux/cgroupstats.h" and include controllers in the list of tests to
> build.
>
> Tested the patch in non-RT as well as RT environment for the changes.
>
> Signed-off-by: Gowrishankar <gowrishankar.m@in.ibm.com>
> Tested-by: Gowrishankar <gowrishankar.m@in.ibm.com>
> ---
>
>------------------------------------------------------------------------
>
>Index: ltp-full-20090630/m4/ltp-cgroupstats.m4
>===================================================================
>--- /dev/null 1970-01-01 00:00:00.000000000 +0000
>+++ ltp-full-20090630/m4/ltp-cgroupstats.m4 2009-07-03 13:41:55.000000000 +0530
>@@ -0,0 +1,9 @@
>+dnl
>+dnl LTP_CHECK_CGROUPSTATS
>+dnl ----------------------------
>+dnl
>+AC_DEFUN([LTP_CHECK_CGROUPSTATS],
>+[dnl
>+AC_CHECK_HEADERS(linux/cgroupstats.h,[LTP_CHECK_CGROUPSTATS_HEADER=yes])
>+AC_SUBST(LTP_CHECK_CGROUPSTATS_HEADER)
>+])
>Index: ltp-full-20090630/configure.ac
>===================================================================
>--- ltp-full-20090630.orig/configure.ac 2009-07-03 13:59:48.000000000 +0530
>+++ ltp-full-20090630/configure.ac 2009-07-03 14:00:14.000000000 +0530
>@@ -21,5 +21,6 @@
> LTP_CHECK_SELINUX
> LTP_CHECK_CRYPTO
> LTP_CHECK_TASKSTATS
>+LTP_CHECK_CGROUPSTATS
>
> AC_OUTPUT
>Index: ltp-full-20090630/testcases/kernel/Makefile
>===================================================================
>--- ltp-full-20090630.orig/testcases/kernel/Makefile 2009-07-03 14:01:25.000000000 +0530
>+++ ltp-full-20090630/testcases/kernel/Makefile 2009-07-03 14:02:42.000000000 +0530
>@@ -1,6 +1,12 @@
>-SUBDIRS = power_management numa containers controllers connectors include fs io ipc mem pty sched security syscalls timers
>+include ../../config.mk
>+
>+SUBDIRS = power_management numa containers connectors include fs io ipc mem pty sched security syscalls timers
> UCLINUX_SUBDIRS = include syscalls
>
>+ifeq ($(LTP_CHECK_CGROUPSTATS_HEADER),yes)
>+ SUBDIRS+= controllers
>+endif
>+
> all:
> @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
>
>
>
>------------------------------------------------------------------------
>
>------------------------------------------------------------------------------
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Ltp-list mailing list
>Ltp-list@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/ltp-list
>
>
[-- Attachment #1.2: Type: text/html, Size: 3942 bytes --]
[-- Attachment #2: ltp-full-20090430-fix-cgroups-testcase.patch --]
[-- Type: text/plain, Size: 1533 bytes --]
This patch allows the cross-build of kernel/controllers (cgroups tests) testcase changing the policy to check the cgroups capability at build-time.
Signed-off-by: Francesco Rundo <francesco.rundo@st.com>
--- ltp-full-20090430-cross/testcases/kernel/controllers/Makefile.orig 2009-05-26 15:37:35.140000000 +0200
+++ ltp-full-20090430-cross/testcases/kernel/controllers/Makefile 2009-05-28 13:36:36.669998000 +0200
@@ -1,10 +1,26 @@
+ifdef CROSS_COMPILE
+CHECK_CGROUP := $(shell test -f $(TARGET_DIR)/usr/include/linux/cgroupstats.h && echo 'cgroup')
+else
CHECK_CGROUP := $(shell test -f /proc/cgroups && echo 'cgroup')
CHECK_CPUCTL := $(shell grep -w cpu /proc/cgroups 2>/dev/null|cut -f1)
CHECK_MEMCTL := $(shell grep -w memory /proc/cgroups 2>/dev/null|cut -f1)
CHECK_BLOCKIOCTL := $(shell grep -w blockio /proc/cgroups 2>/dev/null|cut -f1)
CHECK_FREEZER := $(shell grep -w freezer /proc/cgroups 2>/dev/null| cut -f1)
CHECK_CPUSETCTL = $(shell grep -w cpuset /proc/cgroups 2>/dev/null|cut -f1)
+endif
+ifdef CROSS_COMPILE
+ifeq ($(CHECK_CGROUP),cgroup)
+SUBDIRS += cgroup
+SUBDIRS += cpuctl
+SUBDIRS += memctl
+SUBDIRS += io-throttle
+SUBDIRS += freezer
+SUBDIRS += cpuset
+else
+$(info "Kernel is not compiled with control cgroup support")
+endif
+else
ifeq ($(CHECK_CGROUP),cgroup)
SUBDIRS += cgroup
else
@@ -36,6 +52,7 @@
else
$(info "Kernel is not compiled with cpuset resource controller support")
endif
+endif
# If at least one of the controllers is available then build libcontrollers.
ifneq ($(SUBDIRS),)
[-- Attachment #3: Type: text/plain, Size: 79 bytes --]
------------------------------------------------------------------------------
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 11:38 ` Francesco RUNDO
@ 2009-07-06 12:00 ` gowrishankar
2009-07-06 12:42 ` Francesco RUNDO
2009-07-06 17:22 ` Garrett Cooper
2009-07-06 17:28 ` Garrett Cooper
1 sibling, 2 replies; 15+ messages in thread
From: gowrishankar @ 2009-07-06 12:00 UTC (permalink / raw)
To: Francesco RUNDO; +Cc: ltp-list
Hi Francesco,
Francesco RUNDO wrote:
> Hi Gowri,
>
> I've already fixed the same issue you reported. I've tested it successfully.
>
> Subrata has already merged my patch (please, find it in attachment).
>
> Please, check it before to submit another patch.
>
I had already seen your patch and generated mine on top of Jun release (which
has your fix for CROSS_COMPILE).Your patch could not help in a scenario where
kernel has cgroup support but cgroupstat.h file is missing in base OS, and
build failed. And hence, I am proposing this patch.
Thanks,
Gowri
> Thanks
> Regards
> Francesco Rundo
>
> gowrishankar wrote:
>> Hi Subrata,
>> Please accept the patch below.
>>
>> Thanks,
>> Gowri
>> ---
>> cgroups: conditionally enable building cgroup tests
>>
>> controllers tests gets included into default ltp build if "/proc/cgroup"
>> exists. It stops the ltp build in realtime kernel environment where
>> kernel
>> is new and supports cgroups, but necessary file "linux/cgroupstats.h"
>> may not
>> exist in the base OS (like RHEL5.3). So configure command enables the
>> build,
>> but actual build fails, due to missing header file.
>>
>> Below patch proposes new symbol LTP_CHECK_CGROUPSTATS to check for
>> header file
>> "linux/cgroupstats.h" and include controllers in the list of tests to
>> build.
>>
>> Tested the patch in non-RT as well as RT environment for the changes.
>>
>> Signed-off-by: Gowrishankar <gowrishankar.m@in.ibm.com>
>> Tested-by: Gowrishankar <gowrishankar.m@in.ibm.com>
>> ---
>>
>> ------------------------------------------------------------------------
>>
>> Index: ltp-full-20090630/m4/ltp-cgroupstats.m4
>> ===================================================================
>> --- /dev/null 1970-01-01 00:00:00.000000000 +0000
>> +++ ltp-full-20090630/m4/ltp-cgroupstats.m4 2009-07-03 13:41:55.000000000 +0530
>> @@ -0,0 +1,9 @@
>> +dnl
>> +dnl LTP_CHECK_CGROUPSTATS
>> +dnl ----------------------------
>> +dnl
>> +AC_DEFUN([LTP_CHECK_CGROUPSTATS],
>> +[dnl
>> +AC_CHECK_HEADERS(linux/cgroupstats.h,[LTP_CHECK_CGROUPSTATS_HEADER=yes])
>> +AC_SUBST(LTP_CHECK_CGROUPSTATS_HEADER)
>> +])
>> Index: ltp-full-20090630/configure.ac
>> ===================================================================
>> --- ltp-full-20090630.orig/configure.ac 2009-07-03 13:59:48.000000000 +0530
>> +++ ltp-full-20090630/configure.ac 2009-07-03 14:00:14.000000000 +0530
>> @@ -21,5 +21,6 @@
>> LTP_CHECK_SELINUX
>> LTP_CHECK_CRYPTO
>> LTP_CHECK_TASKSTATS
>> +LTP_CHECK_CGROUPSTATS
>>
>> AC_OUTPUT
>> Index: ltp-full-20090630/testcases/kernel/Makefile
>> ===================================================================
>> --- ltp-full-20090630.orig/testcases/kernel/Makefile 2009-07-03 14:01:25.000000000 +0530
>> +++ ltp-full-20090630/testcases/kernel/Makefile 2009-07-03 14:02:42.000000000 +0530
>> @@ -1,6 +1,12 @@
>> -SUBDIRS = power_management numa containers controllers connectors include fs io ipc mem pty sched security syscalls timers
>> +include ../../config.mk
>> +
>> +SUBDIRS = power_management numa containers connectors include fs io ipc mem pty sched security syscalls timers
>> UCLINUX_SUBDIRS = include syscalls
>>
>> +ifeq ($(LTP_CHECK_CGROUPSTATS_HEADER),yes)
>> + SUBDIRS+= controllers
>> +endif
>> +
>> all:
>> @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
>>
>>
>> ------------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Ltp-list mailing list
>> Ltp-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ltp-list
>>
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 12:00 ` gowrishankar
@ 2009-07-06 12:42 ` Francesco RUNDO
2009-07-06 12:55 ` Subrata Modak
2009-07-06 17:22 ` Garrett Cooper
1 sibling, 1 reply; 15+ messages in thread
From: Francesco RUNDO @ 2009-07-06 12:42 UTC (permalink / raw)
To: gowrishankar; +Cc: ltp-list
Hi Gowri,
thanks so much for your quick reply.
My question is: "Is there a 'real' scenario in which cgroup is enabled
in the Kernel without cgroupstat.h header" ?
Because I think the above scenario (cgroup enabled but no cgroupstat.h
header) is wrong so that your patch provide a "cover" for an error
placed in the system. Is it true ?
If my understanding is wrong, for me there are no concerns about your patch.
Regards
Francesco Rundo
gowrishankar wrote:
> Hi Francesco,
>
> Francesco RUNDO wrote:
>
>> Hi Gowri,
>>
>> I've already fixed the same issue you reported. I've tested it
>> successfully.
>>
>> Subrata has already merged my patch (please, find it in attachment).
>>
>> Please, check it before to submit another patch.
>>
>
> I had already seen your patch and generated mine on top of Jun release
> (which
> has your fix for CROSS_COMPILE).Your patch could not help in a
> scenario where kernel has cgroup support but cgroupstat.h file is
> missing in base OS, and
> build failed. And hence, I am proposing this patch.
>
> Thanks,
> Gowri
>
>> Thanks
>> Regards
>> Francesco Rundo
>>
>> gowrishankar wrote:
>>
>>> Hi Subrata,
>>> Please accept the patch below.
>>>
>>> Thanks,
>>> Gowri
>>> ---
>>> cgroups: conditionally enable building cgroup tests
>>>
>>> controllers tests gets included into default ltp build if
>>> "/proc/cgroup"
>>> exists. It stops the ltp build in realtime kernel environment where
>>> kernel
>>> is new and supports cgroups, but necessary file
>>> "linux/cgroupstats.h" may not
>>> exist in the base OS (like RHEL5.3). So configure command enables
>>> the build,
>>> but actual build fails, due to missing header file.
>>>
>>> Below patch proposes new symbol LTP_CHECK_CGROUPSTATS to check for
>>> header file
>>> "linux/cgroupstats.h" and include controllers in the list of tests
>>> to build.
>>>
>>> Tested the patch in non-RT as well as RT environment for the changes.
>>>
>>> Signed-off-by: Gowrishankar <gowrishankar.m@in.ibm.com>
>>> Tested-by: Gowrishankar <gowrishankar.m@in.ibm.com>
>>> ---
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> Index: ltp-full-20090630/m4/ltp-cgroupstats.m4
>>> ===================================================================
>>> --- /dev/null 1970-01-01 00:00:00.000000000 +0000
>>> +++ ltp-full-20090630/m4/ltp-cgroupstats.m4 2009-07-03
>>> 13:41:55.000000000 +0530
>>> @@ -0,0 +1,9 @@
>>> +dnl
>>> +dnl LTP_CHECK_CGROUPSTATS
>>> +dnl ----------------------------
>>> +dnl
>>> +AC_DEFUN([LTP_CHECK_CGROUPSTATS],
>>> +[dnl
>>> +AC_CHECK_HEADERS(linux/cgroupstats.h,[LTP_CHECK_CGROUPSTATS_HEADER=yes])
>>>
>>> +AC_SUBST(LTP_CHECK_CGROUPSTATS_HEADER)
>>> +])
>>> Index: ltp-full-20090630/configure.ac
>>> ===================================================================
>>> --- ltp-full-20090630.orig/configure.ac 2009-07-03
>>> 13:59:48.000000000 +0530
>>> +++ ltp-full-20090630/configure.ac 2009-07-03 14:00:14.000000000
>>> +0530
>>> @@ -21,5 +21,6 @@
>>> LTP_CHECK_SELINUX
>>> LTP_CHECK_CRYPTO
>>> LTP_CHECK_TASKSTATS
>>> +LTP_CHECK_CGROUPSTATS
>>>
>>> AC_OUTPUT
>>> Index: ltp-full-20090630/testcases/kernel/Makefile
>>> ===================================================================
>>> --- ltp-full-20090630.orig/testcases/kernel/Makefile 2009-07-03
>>> 14:01:25.000000000 +0530
>>> +++ ltp-full-20090630/testcases/kernel/Makefile 2009-07-03
>>> 14:02:42.000000000 +0530
>>> @@ -1,6 +1,12 @@
>>> -SUBDIRS = power_management numa containers controllers connectors
>>> include fs io ipc mem pty sched security syscalls timers
>>> +include ../../config.mk
>>> +
>>> +SUBDIRS = power_management numa containers connectors include fs io
>>> ipc mem pty sched security syscalls timers
>>> UCLINUX_SUBDIRS = include syscalls
>>>
>>> +ifeq ($(LTP_CHECK_CGROUPSTATS_HEADER),yes)
>>> + SUBDIRS+= controllers
>>> +endif
>>> +
>>> all:
>>> @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> Ltp-list mailing list
>>> Ltp-list@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/ltp-list
>>>
>>
>
>
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 12:42 ` Francesco RUNDO
@ 2009-07-06 12:55 ` Subrata Modak
2009-07-06 13:05 ` Francesco RUNDO
0 siblings, 1 reply; 15+ messages in thread
From: Subrata Modak @ 2009-07-06 12:55 UTC (permalink / raw)
To: Francesco RUNDO; +Cc: ltp-list
On Mon, 2009-07-06 at 14:42 +0200, Francesco RUNDO wrote:
> Hi Gowri,
>
> thanks so much for your quick reply.
> My question is: "Is there a 'real' scenario in which cgroup is enabled
> in the Kernel without cgroupstat.h header" ?
>
Yes, there can be many situations.
> Because I think the above scenario (cgroup enabled but no cgroupstat.h
> header) is wrong so that your patch provide a "cover" for an error
> placed in the system. Is it true ?
>
Say you have a older distro with kernel 2.6.18, where those stuff are
not there. Now, you have built kernel 2.6.30 on it with CGROUP enabled,
and booted in that kernel. So, your kernel is enabled with CGROUP, but
you may not have the user utilities like the libcgroup, etc. And until
you upgrade your system with latest glibc-headers or kernel-headers, any
build for userspace tools using CGROUP*.h fiel fail.
Regards--
Subrata
> If my understanding is wrong, for me there are no concerns about your patch.
>
> Regards
> Francesco Rundo
>
> gowrishankar wrote:
>
> > Hi Francesco,
> >
> > Francesco RUNDO wrote:
> >
> >> Hi Gowri,
> >>
> >> I've already fixed the same issue you reported. I've tested it
> >> successfully.
> >>
> >> Subrata has already merged my patch (please, find it in attachment).
> >>
> >> Please, check it before to submit another patch.
> >>
> >
> > I had already seen your patch and generated mine on top of Jun release
> > (which
> > has your fix for CROSS_COMPILE).Your patch could not help in a
> > scenario where kernel has cgroup support but cgroupstat.h file is
> > missing in base OS, and
> > build failed. And hence, I am proposing this patch.
> >
> > Thanks,
> > Gowri
> >
> >> Thanks
> >> Regards
> >> Francesco Rundo
> >>
> >> gowrishankar wrote:
> >>
> >>> Hi Subrata,
> >>> Please accept the patch below.
> >>>
> >>> Thanks,
> >>> Gowri
> >>> ---
> >>> cgroups: conditionally enable building cgroup tests
> >>>
> >>> controllers tests gets included into default ltp build if
> >>> "/proc/cgroup"
> >>> exists. It stops the ltp build in realtime kernel environment where
> >>> kernel
> >>> is new and supports cgroups, but necessary file
> >>> "linux/cgroupstats.h" may not
> >>> exist in the base OS (like RHEL5.3). So configure command enables
> >>> the build,
> >>> but actual build fails, due to missing header file.
> >>>
> >>> Below patch proposes new symbol LTP_CHECK_CGROUPSTATS to check for
> >>> header file
> >>> "linux/cgroupstats.h" and include controllers in the list of tests
> >>> to build.
> >>>
> >>> Tested the patch in non-RT as well as RT environment for the changes.
> >>>
> >>> Signed-off-by: Gowrishankar <gowrishankar.m@in.ibm.com>
> >>> Tested-by: Gowrishankar <gowrishankar.m@in.ibm.com>
> >>> ---
> >>>
> >>> ------------------------------------------------------------------------
> >>>
> >>>
> >>> Index: ltp-full-20090630/m4/ltp-cgroupstats.m4
> >>> ===================================================================
> >>> --- /dev/null 1970-01-01 00:00:00.000000000 +0000
> >>> +++ ltp-full-20090630/m4/ltp-cgroupstats.m4 2009-07-03
> >>> 13:41:55.000000000 +0530
> >>> @@ -0,0 +1,9 @@
> >>> +dnl
> >>> +dnl LTP_CHECK_CGROUPSTATS
> >>> +dnl ----------------------------
> >>> +dnl
> >>> +AC_DEFUN([LTP_CHECK_CGROUPSTATS],
> >>> +[dnl
> >>> +AC_CHECK_HEADERS(linux/cgroupstats.h,[LTP_CHECK_CGROUPSTATS_HEADER=yes])
> >>>
> >>> +AC_SUBST(LTP_CHECK_CGROUPSTATS_HEADER)
> >>> +])
> >>> Index: ltp-full-20090630/configure.ac
> >>> ===================================================================
> >>> --- ltp-full-20090630.orig/configure.ac 2009-07-03
> >>> 13:59:48.000000000 +0530
> >>> +++ ltp-full-20090630/configure.ac 2009-07-03 14:00:14.000000000
> >>> +0530
> >>> @@ -21,5 +21,6 @@
> >>> LTP_CHECK_SELINUX
> >>> LTP_CHECK_CRYPTO
> >>> LTP_CHECK_TASKSTATS
> >>> +LTP_CHECK_CGROUPSTATS
> >>>
> >>> AC_OUTPUT
> >>> Index: ltp-full-20090630/testcases/kernel/Makefile
> >>> ===================================================================
> >>> --- ltp-full-20090630.orig/testcases/kernel/Makefile 2009-07-03
> >>> 14:01:25.000000000 +0530
> >>> +++ ltp-full-20090630/testcases/kernel/Makefile 2009-07-03
> >>> 14:02:42.000000000 +0530
> >>> @@ -1,6 +1,12 @@
> >>> -SUBDIRS = power_management numa containers controllers connectors
> >>> include fs io ipc mem pty sched security syscalls timers
> >>> +include ../../config.mk
> >>> +
> >>> +SUBDIRS = power_management numa containers connectors include fs io
> >>> ipc mem pty sched security syscalls timers
> >>> UCLINUX_SUBDIRS = include syscalls
> >>>
> >>> +ifeq ($(LTP_CHECK_CGROUPSTATS_HEADER),yes)
> >>> + SUBDIRS+= controllers
> >>> +endif
> >>> +
> >>> all:
> >>> @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
> >>>
> >>>
> >>> ------------------------------------------------------------------------
> >>>
> >>>
> >>> ------------------------------------------------------------------------------
> >>>
> >>>
> >>> ------------------------------------------------------------------------
> >>>
> >>>
> >>> _______________________________________________
> >>> Ltp-list mailing list
> >>> Ltp-list@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/ltp-list
> >>>
> >>
> >
> >
>
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 12:55 ` Subrata Modak
@ 2009-07-06 13:05 ` Francesco RUNDO
0 siblings, 0 replies; 15+ messages in thread
From: Francesco RUNDO @ 2009-07-06 13:05 UTC (permalink / raw)
To: subrata; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 5599 bytes --]
Hi Subrata,
Ok, thanks for your reply.
Currently I'm working with kernel 2.6.23-17 ported for SH platforms,
without cgroup features.
My target was to understand if my previous patch can help Gowri....but I
think no.... ;-)
Regards
Francesco Rundo
Subrata Modak wrote:
>On Mon, 2009-07-06 at 14:42 +0200, Francesco RUNDO wrote:
>
>
>>Hi Gowri,
>>
>>thanks so much for your quick reply.
>>My question is: "Is there a 'real' scenario in which cgroup is enabled
>>in the Kernel without cgroupstat.h header" ?
>>
>>
>>
>
>Yes, there can be many situations.
>
>
>
>>Because I think the above scenario (cgroup enabled but no cgroupstat.h
>>header) is wrong so that your patch provide a "cover" for an error
>>placed in the system. Is it true ?
>>
>>
>>
>
>Say you have a older distro with kernel 2.6.18, where those stuff are
>not there. Now, you have built kernel 2.6.30 on it with CGROUP enabled,
>and booted in that kernel. So, your kernel is enabled with CGROUP, but
>you may not have the user utilities like the libcgroup, etc. And until
>you upgrade your system with latest glibc-headers or kernel-headers, any
>build for userspace tools using CGROUP*.h fiel fail.
>
>Regards--
>Subrata
>
>
>
>>If my understanding is wrong, for me there are no concerns about your patch.
>>
>>Regards
>>Francesco Rundo
>>
>>gowrishankar wrote:
>>
>>
>>
>>>Hi Francesco,
>>>
>>>Francesco RUNDO wrote:
>>>
>>>
>>>
>>>>Hi Gowri,
>>>>
>>>>I've already fixed the same issue you reported. I've tested it
>>>>successfully.
>>>>
>>>>Subrata has already merged my patch (please, find it in attachment).
>>>>
>>>>Please, check it before to submit another patch.
>>>>
>>>>
>>>>
>>>I had already seen your patch and generated mine on top of Jun release
>>>(which
>>>has your fix for CROSS_COMPILE).Your patch could not help in a
>>>scenario where kernel has cgroup support but cgroupstat.h file is
>>>missing in base OS, and
>>>build failed. And hence, I am proposing this patch.
>>>
>>>Thanks,
>>>Gowri
>>>
>>>
>>>
>>>>Thanks
>>>>Regards
>>>>Francesco Rundo
>>>>
>>>>gowrishankar wrote:
>>>>
>>>>
>>>>
>>>>>Hi Subrata,
>>>>>Please accept the patch below.
>>>>>
>>>>>Thanks,
>>>>>Gowri
>>>>>---
>>>>>cgroups: conditionally enable building cgroup tests
>>>>>
>>>>>controllers tests gets included into default ltp build if
>>>>>"/proc/cgroup"
>>>>>exists. It stops the ltp build in realtime kernel environment where
>>>>>kernel
>>>>>is new and supports cgroups, but necessary file
>>>>>"linux/cgroupstats.h" may not
>>>>>exist in the base OS (like RHEL5.3). So configure command enables
>>>>>the build,
>>>>>but actual build fails, due to missing header file.
>>>>>
>>>>>Below patch proposes new symbol LTP_CHECK_CGROUPSTATS to check for
>>>>>header file
>>>>>"linux/cgroupstats.h" and include controllers in the list of tests
>>>>>to build.
>>>>>
>>>>>Tested the patch in non-RT as well as RT environment for the changes.
>>>>>
>>>>>Signed-off-by: Gowrishankar <gowrishankar.m@in.ibm.com>
>>>>>Tested-by: Gowrishankar <gowrishankar.m@in.ibm.com>
>>>>>---
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>Index: ltp-full-20090630/m4/ltp-cgroupstats.m4
>>>>>===================================================================
>>>>>--- /dev/null 1970-01-01 00:00:00.000000000 +0000
>>>>>+++ ltp-full-20090630/m4/ltp-cgroupstats.m4 2009-07-03
>>>>>13:41:55.000000000 +0530
>>>>>@@ -0,0 +1,9 @@
>>>>>+dnl
>>>>>+dnl LTP_CHECK_CGROUPSTATS
>>>>>+dnl ----------------------------
>>>>>+dnl
>>>>>+AC_DEFUN([LTP_CHECK_CGROUPSTATS],
>>>>>+[dnl
>>>>>+AC_CHECK_HEADERS(linux/cgroupstats.h,[LTP_CHECK_CGROUPSTATS_HEADER=yes])
>>>>>
>>>>>+AC_SUBST(LTP_CHECK_CGROUPSTATS_HEADER)
>>>>>+])
>>>>>Index: ltp-full-20090630/configure.ac
>>>>>===================================================================
>>>>>--- ltp-full-20090630.orig/configure.ac 2009-07-03
>>>>>13:59:48.000000000 +0530
>>>>>+++ ltp-full-20090630/configure.ac 2009-07-03 14:00:14.000000000
>>>>>+0530
>>>>>@@ -21,5 +21,6 @@
>>>>> LTP_CHECK_SELINUX
>>>>> LTP_CHECK_CRYPTO
>>>>> LTP_CHECK_TASKSTATS
>>>>>+LTP_CHECK_CGROUPSTATS
>>>>>
>>>>> AC_OUTPUT
>>>>>Index: ltp-full-20090630/testcases/kernel/Makefile
>>>>>===================================================================
>>>>>--- ltp-full-20090630.orig/testcases/kernel/Makefile 2009-07-03
>>>>>14:01:25.000000000 +0530
>>>>>+++ ltp-full-20090630/testcases/kernel/Makefile 2009-07-03
>>>>>14:02:42.000000000 +0530
>>>>>@@ -1,6 +1,12 @@
>>>>>-SUBDIRS = power_management numa containers controllers connectors
>>>>>include fs io ipc mem pty sched security syscalls timers
>>>>>+include ../../config.mk
>>>>>+
>>>>>+SUBDIRS = power_management numa containers connectors include fs io
>>>>>ipc mem pty sched security syscalls timers
>>>>> UCLINUX_SUBDIRS = include syscalls
>>>>>
>>>>>+ifeq ($(LTP_CHECK_CGROUPSTATS_HEADER),yes)
>>>>>+ SUBDIRS+= controllers
>>>>>+endif
>>>>>+
>>>>> all:
>>>>> @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
>>>>>
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>------------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>Ltp-list mailing list
>>>>>Ltp-list@lists.sourceforge.net
>>>>>https://lists.sourceforge.net/lists/listinfo/ltp-list
>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 6271 bytes --]
[-- Attachment #2: Type: text/plain, Size: 79 bytes --]
------------------------------------------------------------------------------
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 10:15 [LTP] [PATCH] cgroups: conditionally enable building cgroup tests gowrishankar
2009-07-06 11:38 ` Francesco RUNDO
@ 2009-07-06 15:51 ` Subrata Modak
1 sibling, 0 replies; 15+ messages in thread
From: Subrata Modak @ 2009-07-06 15:51 UTC (permalink / raw)
To: gowrishankar; +Cc: ltp-list
On Mon, 2009-07-06 at 15:45 +0530, gowrishankar wrote:
> Hi Subrata,
> Please accept the patch below.
>
> Thanks,
> Gowri
> ---
> cgroups: conditionally enable building cgroup tests
>
> controllers tests gets included into default ltp build if "/proc/cgroup"
> exists. It stops the ltp build in realtime kernel environment where kernel
> is new and supports cgroups, but necessary file "linux/cgroupstats.h" may not
> exist in the base OS (like RHEL5.3). So configure command enables the build,
> but actual build fails, due to missing header file.
>
> Below patch proposes new symbol LTP_CHECK_CGROUPSTATS to check for header file
> "linux/cgroupstats.h" and include controllers in the list of tests to build.
>
> Tested the patch in non-RT as well as RT environment for the changes.
>
> Signed-off-by: Gowrishankar <gowrishankar.m@in.ibm.com>
Thanks Gowri.
Regards--
Subrata
> Tested-by: Gowrishankar <gowrishankar.m@in.ibm.com>
> ---
>
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 12:00 ` gowrishankar
2009-07-06 12:42 ` Francesco RUNDO
@ 2009-07-06 17:22 ` Garrett Cooper
1 sibling, 0 replies; 15+ messages in thread
From: Garrett Cooper @ 2009-07-06 17:22 UTC (permalink / raw)
To: gowrishankar; +Cc: ltp-list
On Mon, Jul 6, 2009 at 5:00 AM, gowrishankar<gomuthuk@linux.vnet.ibm.com> wrote:
> Hi Francesco,
>
> Francesco RUNDO wrote:
>> Hi Gowri,
>>
>> I've already fixed the same issue you reported. I've tested it successfully.
>>
>> Subrata has already merged my patch (please, find it in attachment).
>>
>> Please, check it before to submit another patch.
>>
>
> I had already seen your patch and generated mine on top of Jun release (which
> has your fix for CROSS_COMPILE).Your patch could not help in a scenario where
> kernel has cgroup support but cgroupstat.h file is missing in base OS, and
> build failed. And hence, I am proposing this patch.
It sounds like your issue is build related on your side, or the fact
that whatever checks are run don't appropriately take into account
necessary CFLAGS / CPPFLAGS.
Thanks,
-Garrett
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 11:38 ` Francesco RUNDO
2009-07-06 12:00 ` gowrishankar
@ 2009-07-06 17:28 ` Garrett Cooper
2009-07-06 22:06 ` Mike Frysinger
2009-07-07 6:53 ` Francesco RUNDO
1 sibling, 2 replies; 15+ messages in thread
From: Garrett Cooper @ 2009-07-06 17:28 UTC (permalink / raw)
To: Francesco RUNDO; +Cc: ltp-list
On Mon, Jul 6, 2009 at 4:38 AM, Francesco RUNDO<francesco.rundo@st.com> wrote:
> Hi Gowri,
>
> I've already fixed the same issue you reported. I've tested it successfully.
>
> Subrata has already merged my patch (please, find it in attachment).
>
> Please, check it before to submit another patch.
At the end of the day, the real problem is that we're not using the
--with- functionality in autoconf, e.g. --with-cgroups, and instead
we're hacking a lot of noise into Makefile's.
Also, you could have called SUBDIRS += once, like so:
+SUBDIRS += cgroup cpuctl memctl io-throttle freezer cpuset
I can tell at first glance that that Makefile is a mess anyhow,
because it's referencing _hardcoded_ /proc references and as such will
fail to cross-compile properly if the target or the host are setup
differently from one another, in the following two scenarios:
1. host has cgroups support and target doesn't. host will force the
cgroups testcases to compile, and we'll either run into make failures,
or CONF (if the source is setup properly).
2. target has cgroups support and host doesn't. target will miss out
on cgroups testcases.
Thanks,
-Garrett
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 17:28 ` Garrett Cooper
@ 2009-07-06 22:06 ` Mike Frysinger
2009-07-07 6:58 ` Francesco RUNDO
2009-07-07 6:53 ` Francesco RUNDO
1 sibling, 1 reply; 15+ messages in thread
From: Mike Frysinger @ 2009-07-06 22:06 UTC (permalink / raw)
To: ltp-list; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 1292 bytes --]
On Monday 06 July 2009 13:28:00 Garrett Cooper wrote:
> On Mon, Jul 6, 2009 at 4:38 AM, Francesco RUNDO wrote:
> > I've already fixed the same issue you reported. I've tested it
> > successfully.
> >
> > Subrata has already merged my patch (please, find it in attachment).
> >
> > Please, check it before to submit another patch.
>
> At the end of the day, the real problem is that we're not using the
> --with- functionality in autoconf, e.g. --with-cgroups, and instead
> we're hacking a lot of noise into Makefile's.
selectively compiling groups of code needs to be thought out before we start
throwing --with-foo options at the problem. otherwise we'll still end up with
crap, just in a different form.
> I can tell at first glance that that Makefile is a mess anyhow,
> because it's referencing _hardcoded_ /proc references and as such will
> fail to cross-compile properly if the target or the host are setup
> differently from one another, in the following two scenarios:
yes, the merged patch and that makefile suck. there should never be any
filesystem check in a Makefile anymore. while peeking in /proc is somewhat
forgivable, looking for headers never is ok. we have autoconf tests now and
Gowri's approach looks like the correct one.
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 79 bytes --]
------------------------------------------------------------------------------
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 17:28 ` Garrett Cooper
2009-07-06 22:06 ` Mike Frysinger
@ 2009-07-07 6:53 ` Francesco RUNDO
2009-07-07 9:11 ` Garrett Cooper
1 sibling, 1 reply; 15+ messages in thread
From: Francesco RUNDO @ 2009-07-07 6:53 UTC (permalink / raw)
To: Garrett Cooper; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 1442 bytes --]
Hi Garrett,
thanks for your comment. Below, my consideration:
Garrett Cooper wrote:
>On Mon, Jul 6, 2009 at 4:38 AM, Francesco RUNDO<francesco.rundo@st.com> wrote:
>
>
>>Hi Gowri,
>>
>>I've already fixed the same issue you reported. I've tested it successfully.
>>
>>Subrata has already merged my patch (please, find it in attachment).
>>
>>Please, check it before to submit another patch.
>>
>>
>
>At the end of the day, the real problem is that we're not using the
>--with- functionality in autoconf, e.g. --with-cgroups, and instead
>we're hacking a lot of noise into Makefile's.
>
Yes, you're right but your advice can't be applicable in the system in
which autoconf is not supported/used to build LTP (a possible scenario
in the embedded system).
>
>Also, you could have called SUBDIRS += once, like so:
>
>+SUBDIRS += cgroup cpuctl memctl io-throttle freezer cpuset
>
>I can tell at first glance that that Makefile is a mess anyhow,
>because it's referencing _hardcoded_ /proc references and as such will
>fail to cross-compile properly if the target or the host are setup
>differently from one another, in the following two scenarios:
>
Yes, check at "/proc" isn't safe as can't be applicable in case of
cross-compilation made off-line on the host.
I have provided a "work-around" patch to allow off-line
cross-compilation trying to reduce the number of changes to be applied
to the Makefile.
Regards
Francesco Rundo
[-- Attachment #1.2: Type: text/html, Size: 2124 bytes --]
[-- Attachment #2: Type: text/plain, Size: 390 bytes --]
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-06 22:06 ` Mike Frysinger
@ 2009-07-07 6:58 ` Francesco RUNDO
2009-07-07 14:24 ` Mike Frysinger
0 siblings, 1 reply; 15+ messages in thread
From: Francesco RUNDO @ 2009-07-07 6:58 UTC (permalink / raw)
To: Mike Frysinger; +Cc: ltp-list, ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 1504 bytes --]
Mike Frysinger wrote:
>On Monday 06 July 2009 13:28:00 Garrett Cooper wrote:
>
>
>>On Mon, Jul 6, 2009 at 4:38 AM, Francesco RUNDO wrote:
>>
>>
>>>I've already fixed the same issue you reported. I've tested it
>>>successfully.
>>>
>>>Subrata has already merged my patch (please, find it in attachment).
>>>
>>>Please, check it before to submit another patch.
>>>
>>>
>>At the end of the day, the real problem is that we're not using the
>>--with- functionality in autoconf, e.g. --with-cgroups, and instead
>>we're hacking a lot of noise into Makefile's.
>>
>>
>
>selectively compiling groups of code needs to be thought out before we start
>throwing --with-foo options at the problem. otherwise we'll still end up with
>crap, just in a different form.
>
>
>
>>I can tell at first glance that that Makefile is a mess anyhow,
>>because it's referencing _hardcoded_ /proc references and as such will
>>fail to cross-compile properly if the target or the host are setup
>>differently from one another, in the following two scenarios:
>>
>>
>
>yes, the merged patch and that makefile suck. there should never be any
>filesystem check in a Makefile anymore. while peeking in /proc is somewhat
>forgivable, looking for headers never is ok. we have autoconf tests now and
>Gowri's approach looks like the correct one.
>-mike
>
I agree with your explanation. My patch tried to address an issue on the
testcase when LTP is cross-compiled.
Thanks so much.
Best Regards
--
FR
[-- Attachment #1.2: Type: text/html, Size: 2099 bytes --]
[-- Attachment #2: Type: text/plain, Size: 390 bytes --]
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-07 6:53 ` Francesco RUNDO
@ 2009-07-07 9:11 ` Garrett Cooper
0 siblings, 0 replies; 15+ messages in thread
From: Garrett Cooper @ 2009-07-07 9:11 UTC (permalink / raw)
To: Francesco RUNDO; +Cc: ltp-list
On Mon, Jul 6, 2009 at 11:53 PM, Francesco RUNDO<francesco.rundo@st.com> wrote:
> Hi Garrett,
>
> thanks for your comment. Below, my consideration:
>
> Garrett Cooper wrote:
>
> On Mon, Jul 6, 2009 at 4:38 AM, Francesco RUNDO<francesco.rundo@st.com>
> wrote:
>
>
> Hi Gowri,
>
> I've already fixed the same issue you reported. I've tested it successfully.
>
> Subrata has already merged my patch (please, find it in attachment).
>
> Please, check it before to submit another patch.
>
>
> At the end of the day, the real problem is that we're not using the
> --with- functionality in autoconf, e.g. --with-cgroups, and instead
> we're hacking a lot of noise into Makefile's.
>
> Yes, you're right but your advice can't be applicable in the system in which
> autoconf is not supported/used to build LTP (a possible scenario in the
> embedded system).
Francisco,
Very soon cross-compilation will become a reality for LTP. We've been
using cross-compilation with LTP fairly thoroughly in-house, but the
solution's not even close to perfect. The one I'm working on now with
HEAD is a lot more holistic, and hence we should be able to do away
with manual compiles [of the source tree]. Manual submake compiles
will still be possible.
So, embedded systems can go back to executing code instead of
compiling it, like they should be... exercising *cc still is a good
workout for an embedded system's process [and threading] scheduler and
management system, but you can do it if you like and it'll no longer
be a hard requirement =].
Cheers,
-Garrett
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-07 6:58 ` Francesco RUNDO
@ 2009-07-07 14:24 ` Mike Frysinger
2009-07-08 7:40 ` Francesco RUNDO
0 siblings, 1 reply; 15+ messages in thread
From: Mike Frysinger @ 2009-07-07 14:24 UTC (permalink / raw)
To: ltp-list; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 1714 bytes --]
On Tuesday 07 July 2009 02:58:15 Francesco RUNDO wrote:
> Mike Frysinger wrote:
> >On Monday 06 July 2009 13:28:00 Garrett Cooper wrote:
> >>On Mon, Jul 6, 2009 at 4:38 AM, Francesco RUNDO wrote:
> >>>I've already fixed the same issue you reported. I've tested it
> >>>successfully.
> >>>
> >>>Subrata has already merged my patch (please, find it in attachment).
> >>>
> >>>Please, check it before to submit another patch.
> >>
> >>At the end of the day, the real problem is that we're not using the
> >>--with- functionality in autoconf, e.g. --with-cgroups, and instead
> >>we're hacking a lot of noise into Makefile's.
> >
> >selectively compiling groups of code needs to be thought out before we
> > start throwing --with-foo options at the problem. otherwise we'll still
> > end up with crap, just in a different form.
> >
> >>I can tell at first glance that that Makefile is a mess anyhow,
> >>because it's referencing _hardcoded_ /proc references and as such will
> >>fail to cross-compile properly if the target or the host are setup
> >>differently from one another, in the following two scenarios:
> >
> >yes, the merged patch and that makefile suck. there should never be any
> >filesystem check in a Makefile anymore. while peeking in /proc is
> > somewhat forgivable, looking for headers never is ok. we have autoconf
> > tests now and Gowri's approach looks like the correct one.
>
> I agree with your explanation. My patch tried to address an issue on the
> testcase when LTP is cross-compiled.
i'm not faulting you ... you worked with what is available and common. we now
have better methods of doing these checks, so we should transition to those.
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 390 bytes --]
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [LTP] [PATCH] cgroups: conditionally enable building cgroup tests
2009-07-07 14:24 ` Mike Frysinger
@ 2009-07-08 7:40 ` Francesco RUNDO
0 siblings, 0 replies; 15+ messages in thread
From: Francesco RUNDO @ 2009-07-08 7:40 UTC (permalink / raw)
To: Mike Frysinger; +Cc: ltp-list, ltp-list
> we now
>have better methods of doing these checks, so we should transition to those.
>-mike
>
Ok..no problem, what you say is exactly what I want to reach by
contributing to LTP community.
Thanks again.
Francesco
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2009-07-08 7:41 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06 10:15 [LTP] [PATCH] cgroups: conditionally enable building cgroup tests gowrishankar
2009-07-06 11:38 ` Francesco RUNDO
2009-07-06 12:00 ` gowrishankar
2009-07-06 12:42 ` Francesco RUNDO
2009-07-06 12:55 ` Subrata Modak
2009-07-06 13:05 ` Francesco RUNDO
2009-07-06 17:22 ` Garrett Cooper
2009-07-06 17:28 ` Garrett Cooper
2009-07-06 22:06 ` Mike Frysinger
2009-07-07 6:58 ` Francesco RUNDO
2009-07-07 14:24 ` Mike Frysinger
2009-07-08 7:40 ` Francesco RUNDO
2009-07-07 6:53 ` Francesco RUNDO
2009-07-07 9:11 ` Garrett Cooper
2009-07-06 15:51 ` Subrata Modak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox