From: George Dunlap <george.dun...@citrix.com> Signed-off-by: George Dunlap <george.dun...@citrix.com> --- 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@lists.xen.org https://lists.xen.org/xen-devel