[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH RFC 56/59] controller/plan: Add NumaDisable to SimpleMatrix



From: George Dunlap <george.dunlap@xxxxxxxxxx>

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxx>
---
 plan.go | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/plan.go b/plan.go
index 736d9f3..b8e0c6b 100644
--- a/plan.go
+++ b/plan.go
@@ -26,6 +26,7 @@ type PlanSimpleMatrix struct {
        Schedulers []string
        Workers []string
        Count []int
+       NumaDisable []bool
 }
 
 type PlanInput struct {
@@ -127,6 +128,27 @@ func (plan *BenchmarkPlan) ExpandInput() (err error) {
                b = nil
        }
 
+       // ...and NumaDisable
+       if len(plan.Input.SimpleMatrix.NumaDisable) > 0 {
+               for _, base := range a {
+                       for _, d := range plan.Input.SimpleMatrix.NumaDisable {
+                               run := base
+                               // Need to make a copy of this so that
+                               // we have a pointer to use as a tristate
+                               run.RunConfig.NumaDisable = new(bool)
+                               *run.RunConfig.NumaDisable = d
+                               if d {
+                                       run.Label = run.Label+" NumaOff"
+                               } else {
+                                       run.Label = run.Label+" NumaOn "
+                               }
+                               b = append(b, run)
+                       }
+               }
+               a = b
+               b = nil
+       }
+
        for i := range a {
                fmt.Printf("%s\n", a[i].Label)
        }
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.