From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: Poornima Nayak <mpnayak@linux.vnet.ibm.com>
Cc: ltp-list@lists.sourceforge.net, arun@linux.vnet.ibm.com,
svaidy@linux.vnet.ibm.com, ego@in.ibm.com
Subject: Re: [LTP] [Patch 5/6] Modified library functions based on review comments
Date: Mon, 21 Sep 2009 21:50:16 +0530 [thread overview]
Message-ID: <1253550018.6736.22.camel@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <20090921072520.7307.560.sendpatchset@localhost.localdomain>
No Signed-off-by: here.
On Mon, 2009-09-21 at 12:55 +0530, Poornima Nayak wrote:
> diff -uprN ltp-full-20090831/testcases/kernel/power_management/pm_include.sh ltp-full-20090831_patched/testcases/kernel/power_management/pm_include.sh
> --- ltp-full-20090831/testcases/kernel/power_management/pm_include.sh 2009-08-31 10:45:45.000000000 +0530
> +++ ltp-full-20090831_patched/testcases/kernel/power_management/pm_include.sh 2009-09-21 12:29:26.056970343 +0530
> @@ -71,7 +71,7 @@ get_supporting_govr() {
> is_hyper_threaded() {
> siblings=`cat /proc/cpuinfo | grep siblings | uniq | cut -f2 -d':'`
> cpu_cores=`cat /proc/cpuinfo | grep "cpu cores" | uniq | cut -f2 -d':'`
> - [ $siblins > $cpu_cores ]; return $?
> + [ $siblings > $cpu_cores ]; return $?
> }
>
> check_input() {
> @@ -146,152 +146,74 @@ get_valid_input() {
> esac
> }
>
> -check_supp_wkld() {
> - sched_mcsmt=$1
> - work_load=$2
> -
> - case "$sched_mcsmt" in
> - 1) [ "$work_load" == "ebizzy" ]; return $?
> - ;;
> - 2) [ "$work_load" == "ebizzy" -o "$work_load" == "kernbench" ]; return $?
> - ;;
> - *)
> - return 1
> - ;;
> - esac
> -}
> -
> -analyze_wrt_workload_hyperthreaded() {
> - sched_mc=$1
> - work_load=$2
> - pass_count=$3
> - sched_smt=$4
> -
> - if [ $sched_mc -gt $sched_smt ]; then
> - check_supp_wkld $sched_mc $work_load; valid_workload=$?
> - else
> - check_supp_wkld $sched_smt $work_load; valid_workload=$?
> - fi
> -
> - case "$valid_workload" in
> - 0)
> - if [ $pass_count -lt 5 ]; then
> - RC=1
> - tst_resm TFAIL "Consolidation at package level failed for \
> -sched_mc=$sched_mc, sched_smt=$sched_smt for workload=$work_load"
> - else
> - tst_resm TPASS "Consolidation at package level passed for \
> -sched_mc=$sched_mc, sched_smt=$sched_smt & workload=$work_load"
> - fi ;;
> - 1)
> - if [ $pass_count -lt 5 ]; then
> - tst_resm TPASS "Consolidation at package level failed for \
> -unsupported workload $work_load when sched_mc=$sched_mc & sched_smt=$sched_smt"
> - else
> - RC=1
> - tst_resm TFAIL "Consolidation at package level passed for \
> -unsupported workload $work_load when sched_mc=$sched_mc & sched_smt=$sched_smt"
> - fi ;;
> - esac
> -}
> -
> -analyze_wrt_wkld() {
> - sched_mc=$1
> - work_load=$2
> - pass_count=$3
> - sched_smt=$4
> -
> - check_supp_wkld $sched_mc $work_load; valid_workload=$?
> - if [ $hyper_threaded -eq $YES ]; then
> - analyze_wrt_workload_hyperthreaded $sched_mc $work_load $pass_count\
> - $sched_smt
> - else
> - case "$valid_workload" in
> - 0)
> - if [ "$pass_count" -lt 5 ]; then
> - RC=1
> - tst_resm TFAIL "cpu consolidation failed for \
> -sched_mc=$sched_mc for workload=$work_load"
> - else
> - tst_resm TPASS "cpu consolidation passed for \
> -sched_mc=$sched_mc for workload=$work_load"
> - fi ;;
> - 1)
> - if [ "$pass_count" -lt 5 ]; then
> - tst_resm TPASS "cpu consolidation failed for \
> -unsupported workload $work_load when sched_mc=$sched_mc"
> - else
> - RC=1
> - tst_resm TFAIL "cpu consolidation passed for \
> -unsupported workload $work_load when sched_mc=$sched_mc"
> - fi ;;
> - esac
> - fi
> -}
> -
> analyze_result_hyperthreaded() {
> sched_mc=$1
> - work_load=$2
> pass_count=$3
> sched_smt=$4
>
> - echo "sched_mc =$sched_mc work-load=$work_load pass_count=$pass_count sched_smt=$sched_smt"
> case "$sched_mc" in
> 0)
> - if [ $sched_smt ]; then
> - case "$sched_smt" in
> - 0)
> - if [ "$pass_count" -lt 5 ]; then
> - tst_resm TPASS "cpu consolidation failed for sched_mc=\
> -$sched_mc & sched_smt=$sched_smt for workload=$work_load"
> - else
> - RC=1
> - tst_resm TFAIL "cpu consolidation passed for sched_mc=\
> -$sched_mc & sched_smt=$sched_smt for workload=$work_load"
> - fi
> - ;;
> - *)
> - analyze_wrt_wkld $sched_mc $work_load $pass_count $sched_smt
> - ;;
> - esac
> - else
> + case "$sched_smt" in
> + 0)
> if [ $pass_count -lt 5 ]; then
> tst_resm TPASS "cpu consolidation failed for sched_mc=\
> -$sched_mc for workload=$work_load"
> +$sched_mc & sched_smt=$sched_smt"
> else
> RC=1
> tst_resm TFAIL "cpu consolidation passed for sched_mc=\
> -$sched_mc for workload=$work_load"
> +$sched_mc & sched_smt=$sched_smt"
> fi
> - fi
> - ;;
> + ;;
> + *)
> + if [ $pass_count -lt 5 ]; then
> + tst_resm TFAIL "cpu consolidation for sched_mc=\
> +$sched_mc & sched_smt=$sched_smt"
> + else
> + RC=1
> + tst_resm TPASS "cpu consolidation for sched_mc=\
> +$sched_mc & sched_smt=$sched_smt"
> + fi
> + ;;
> + esac ;;
> *)
> - analyze_wrt_wkld $sched_mc $work_load $pass_count $sched_smt
> + if [ $pass_count -lt 5 ]; then
> + tst_resm TFAIL "cpu consolidation for sched_mc=\
> +$sched_mc & sched_smt=$sched_smt"
> + else
> + RC=1
> + tst_resm TPASS "cpu consolidation for sched_mc=\
> +$sched_mc & sched_smt=$sched_smt"
> + fi
> ;;
> esac
> }
>
> analyze_package_consolidation_result() {
> sched_mc=$1
> - work_load=$2
> pass_count=$3
> sched_smt=$4
>
> - if [ $hyper_threaded -eq $YES ]; then
> - analyze_result_hyperthreaded $sched_mc $work_load $pass_count $sched_smt
> + if [ $hyper_threaded -eq $YES -a $sched_smt ]; then
> + analyze_result_hyperthreaded $sched_mc $pass_count $sched_smt
> else
> case "$sched_mc" in
> 0)
> if [ $pass_count -lt 5 ]; then
> tst_resm TPASS "cpu consolidation failed for sched_mc=\
> -$sched_mc for workload=$work_load"
> +$sched_mc"
> else
> RC=1
> tst_resm TFAIL "cpu consolidation passed for sched_mc=\
> -$sched_mc for workload=$work_load"
> +$sched_mc"
> fi ;;
> *)
> - analyze_wrt_wkld $sched_mc $work_load $pass_count
> + if [ $pass_count -lt 5 ]; then
> + tst_resm TFAIL "Consolidation at package level failed for \
> +sched_mc=$sched_mc & sched_smt=$sched_smt"
> + else
> + tst_resm TPASS "Consolidation at package level passed for \
> +sched_mc=$sched_mc & sched_smt=$sched_smt"
> + fi
> ;;
> esac
> fi
> @@ -299,27 +221,25 @@ $sched_mc for workload=$work_load"
>
> analyze_core_consolidation_result() {
> sched_smt=$1
> - work_load=$2
> pass_count=$3
>
> - case "$valid_workload" in
> + case "$sched_smt" in
> 0)
> if [ $pass_count -lt 5 ]; then
> + tst_resm TPASS "Consolidation at core level failed \
> +when sched_smt=$sched_smt"
> + else
> + tst_resm TFAIL "Consolidation at core level passed for \
> +sched_smt=$sched_smt"
> + fi ;;
> + *)
> + if [ $pass_count -lt 5 ]; then
> RC=1
> tst_resm TFAIL "Consolidation at core level failed for \
> -sched_mc=$sched_mc, sched_smt=$sched_smt for workload=$work_load"
> +sched_smt=$sched_smt"
> else
> tst_resm TPASS "Consolidation at core level passed for \
> -sched_mc=$sched_mc, sched_smt=$sched_smt & workload=$work_load"
> - fi ;;
> - 1)
> - if [ $pass_count -lt 5 ]; then
> - tst_resm TPASS "Consolidation at core level failed for \
> -unsupported workload $work_load when sched_mc=$sched_mc & sched_smt=$sched_smt"
> - else
> - RC=1
> - tst_resm TFAIL "Consolidation at core level passed for \
> -unsupported workload $work_load when sched_mc=$sched_mc & sched_smt=$sched_smt"
> +sched_smt=$sched_smt"
> fi ;;
> esac
> }
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2009-09-21 16:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-21 7:24 [LTP] [Patch 1/6] To test consolidation resets when interfaces are set to 0 Poornima Nayak
2009-09-21 7:24 ` [LTP] [Patch 2/6] To fix issue in get_sched_values Poornima Nayak
2009-09-21 16:20 ` Subrata Modak
2009-09-21 7:25 ` [LTP] [Patch 3/6] To incorporate changes in reusable function Poornima Nayak
2009-09-21 16:20 ` Subrata Modak
2009-09-21 7:25 ` [LTP] [Patch 4/6] To include Additional 5 new test cases Poornima Nayak
2009-09-21 16:20 ` Subrata Modak
2009-09-21 7:25 ` [LTP] [Patch 5/6] Modified library functions based on review comments Poornima Nayak
2009-09-21 16:20 ` Subrata Modak [this message]
2009-09-21 7:25 ` [LTP] [Patch 6/6] Modified python functions based on requirement for new testcase Poornima Nayak
2009-09-21 16:20 ` Subrata Modak
2009-09-21 16:20 ` [LTP] [Patch 1/6] To test consolidation resets when interfaces are set to 0 Subrata Modak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1253550018.6736.22.camel@subratamodak.linux.ibm.com \
--to=subrata@linux.vnet.ibm.com \
--cc=arun@linux.vnet.ibm.com \
--cc=ego@in.ibm.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=mpnayak@linux.vnet.ibm.com \
--cc=svaidy@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox