From: Subrata M. <tos...@gm...> - 2009-03-09 10:33:50
|
On Fri, Mar 6, 2009 at 12:47 PM, poornima nayak <mp...@li...>wrote: > Signed-off-by: poornima nayak <mp...@li...> Thanks.... > > > diff -uprN > ltp-full-20090228_orig/testcases/kernel/power_management/sched_domain.py > ltp-full-20090228/testcases/kernel/power_management/sched_domain.py > --- > ltp-full-20090228_orig/testcases/kernel/power_management/sched_domain.py > 1969-12-31 18:00:00.000000000 -0600 > +++ ltp-full-20090228/testcases/kernel/power_management/sched_domain.py > 2009-03-04 17:22:59.000000000 -0600 > @@ -0,0 +1,26 @@ > +#!/usr/bin/python > +''' This Python script validates sched domain information in dmesg > + with information in sysfs topology > +''' > + > +import os > +import sys > +LIB_DIR = "%s/testcases/kernel/power_management/lib" % > os.environ['LTPROOT'] > +sys.path.append(LIB_DIR) > +from sched_mc import * > + > +__author__ = "Poornima Nayak <mp...@li...>" > + > +# Run test based on the command line arguments > +if __name__ == "__main__": > + > + try: > + clear_dmesg() > + count_num_cpu() > + map_cpuid_pkgid() > + set_sched_mc_power(1) > + verify_sched_domain_dmesg(1) > + set_sched_mc_power(0) > + verify_sched_domain_dmesg(0) > + except: > + sys.exit(1) > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Ltp-list mailing list > Ltp...@li... > https://lists.sourceforge.net/lists/listinfo/ltp-list > -- Regards & Thanks-- Subrata |