>>> On 9/17/2010 at 03:22 PM, in message
<[email protected]>, Garrett Cooper
<[email protected]> wrote:
> On Fri, Sep 17, 2010 at 12:25 PM, Murlin Wenzel <[email protected]> wrote:
>> Currently the hyperthreading tests will only run on 32bit (i386) os
> versions. HT is also supported on x86_64, so I changed defines to allow
> either os version.
>>
>> Signed-off-by: Murlin Ray Wenzel <[email protected]>
>
> Seems sane. Could you change `i386 architecture' to `x86 architecture'
> please?
> Thanks,
> -Garrett
Added requested change from i386 to x86 in print statements.
Murlin
diff -urN
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_affinity/ht_affinity.c
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_affinity/ht_affinity.c
---
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_affinity/ht_affinity.c
2010-09-14 05:04:34.000000000 -0600
+++
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_affinity/ht_affinity.c
2010-09-20 08:09:29.000000000 -0600
@@ -233,8 +233,8 @@
int main(int argc, char *argv[])
{
-#ifndef __i386__
- tst_brkm(TCONF, NULL, "This test suite can only execute on i386
architecture.");
+#if (!defined __i386__ && !defined __x86_64__)
+ tst_brkm(TCONF, NULL, "This test suite can only execute on x86
architecture.");
#else
if (!check_ht_capability())
{
diff -urN
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_affinity/ht_utils.c
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_affinity/ht_utils.c
---
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_affinity/ht_utils.c
2010-09-14 05:04:34.000000000 -0600
+++
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_affinity/ht_utils.c
2010-09-17 11:08:44.000000000 -0600
@@ -17,7 +17,7 @@
inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx)
{
-#ifndef __i386__
+#if (!defined __i386__ && !defined __x86_64__)
return;
#else
__asm__("cpuid"
diff -urN
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_enabled/ht_enabled.c
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_enabled/ht_enabled.c
---
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_enabled/ht_enabled.c
2010-09-14 05:04:34.000000000 -0600
+++
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_enabled/ht_enabled.c
2010-09-20 08:10:44.000000000 -0600
@@ -22,8 +22,8 @@
int main(int argc, char *argv[])
{
int ret_val = 1;
-#ifndef __i386__
- tst_brkm(TCONF, NULL, "This test suite can only execute on i386
architecture.");
+#if (!defined __x86_64__ && !defined __i386__)
+ tst_brkm(TCONF, NULL, "This test suite can only execute on x86
architecture.");
#else
ret_val = check_ht_capability();
#endif
diff -urN
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_enabled/ht_utils.c
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_enabled/ht_utils.c
---
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_enabled/ht_utils.c
2010-09-14 05:04:34.000000000 -0600
+++
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_enabled/ht_utils.c
2010-09-17 11:06:02.000000000 -0600
@@ -20,7 +20,7 @@
inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx)
{
-#ifndef __i386__
+#if (!defined __i386__ && !defined __x86_64__)
return;
#else
__asm__("cpuid"
@@ -47,8 +47,7 @@
/*printf("The processor in this system supports HT\n");*/
return 1;
} else {
- /*printf("The processor in this system does not support
- * HT\n");*/
+ /*printf("The processor in this system does not support
HT\n");*/
return 0;
}
}
diff -urN
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_interrupt/ht_interrupt.c
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_interrupt/ht_interrupt.c
---
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_interrupt/ht_interrupt.c
2010-09-14 05:04:34.000000000 -0600
+++
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_interrupt/ht_interrupt.c
2010-09-20 08:11:40.000000000 -0600
@@ -111,8 +111,8 @@
{
tst_resm(TINFO, "Begin: HyperThreading Interrupt");
-#ifndef __i386__
- tst_brkm(TCONF, NULL, "This test suite can only execute on i386
architecture.");
+#if (!defined __i386__ && !defined __x86_64__)
+ tst_brkm(TCONF, NULL, "This test suite can only execute on x86
architecture.");
#else
if (!check_ht_capability())
{
diff -urN
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_interrupt/ht_utils.c
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_interrupt/ht_utils.c
---
ltp-full-20100831/testcases/kernel/sched/hyperthreading//ht_interrupt/ht_utils.c
2010-09-14 05:04:34.000000000 -0600
+++
ltp-full-20100831.mrw/testcases/kernel/sched/hyperthreading//ht_interrupt/ht_utils.c
2010-09-17 11:10:58.000000000 -0600
@@ -60,7 +60,7 @@
inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx)
{
-#ifndef __i386__
+#if (!defined __i386__ && !defined __x86_64__)
return;
#else
__asm__("cpuid"
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list