On Tue, 2009-03-24 at 19:10 +0530, Poornima Nayak wrote:
> [Patch 1/4] Modified cpu consolidation testcase to support
> sched_smt_mc_power_savings & sched_smt_power_saving FVT.
> 
> Signed-off-by: poornima nayak <[email protected]>

This applied fine too.

Regards--
Subrata

> 
> diff -uprN ltp_orig/testcases/kernel/power_management/cpu_consolidation.py 
> ltp_patched//testcases/kernel/power_management/cpu_consolidation.py
> --- ltp_orig/testcases/kernel/power_management/cpu_consolidation.py   
> 2009-03-24 09:25:27.000000000 -0500
> +++ ltp_patched//testcases/kernel/power_management/cpu_consolidation.py       
> 2009-03-24 10:03:42.000000000 -0500
> @@ -18,19 +18,38 @@ if __name__ == "__main__":
>      parser = OptionParser(usage)
>      parser.add_option("-w", "--workload", dest="workload",
>          help="Test name that has be triggered")
> -    parser.add_option("-l", "--mc_level", dest="mc_level",
> +    parser.add_option("-c", "--mc_level", dest="mc_level",
>          help="Sched mc power saving value 0/1/2")
> +    parser.add_option("-t", "--smt_level", dest="smt_level",
> +        default=0, help="Sched smt power saving value 0/1/2")
>      (options, args) = parser.parse_args()
> +    test_thread_consld = 0
> +    
> 
>      try:
>          set_sched_mc_power(options.mc_level)
> -     print "INFO: sched mc power saving set to %s" %options.mc_level
>          count_num_cpu()
>          map_cpuid_pkgid()
>          print "INFO: Created table mapping cpu to package"
> -        trigger_workld(options.workload)
> +        
> +        if int(options.smt_level) == 1 or int(options.smt_level) == 2 :
> +            if is_hyper_threaded():
> +                set_sched_smt_power(options.smt_level)
> +                # Trigger ebizzy with 2 threads only to verify logical CPU
> +                # consolidation
> +                test_thread_consld = 1
> +                trigger_workld(options.workload, test_thread_consld)
> +                generate_report()
> +                validate_cpu_consolidation(options.mc_level, 
> options.smt_level)
> +                test_thread_consld = 0
> +            else:
> +                print "INFO: No Hyper-threading support in this machine"
> +                sys.exit(0)
> +        
> +        trigger_workld(options.workload, test_thread_consld)
>          generate_report()
> -        validate_cpu_consolidation(options.mc_level)
> +        validate_cpu_consolidation(options.mc_level, options.smt_level)
>          sys.exit(0)
> -    except Exception:
> +    except Exception, details:
> +        print "INFO(: CPU consolidation failed", details
>          sys.exit(1)
> 
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to