aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorVincent Guittot <[email protected]>2014-05-13 11:11:01 +0200
committerIngo Molnar <[email protected]>2014-05-22 11:16:29 +0200
commitc515db8cd311ef77b2dc7cbd6b695022655bb0f3 (patch)
treeb3bdc7320f117e3c2b68e2a8ea6eef0892d370ce /tools/perf/util/trace-event-scripting.c
parent8bf21433f38b020c3d8a3805d1d7fb73d7b40c01 (diff)
sched/numa: Fix initialization of sched_domain_topology for NUMA
Jet Chen has reported a kernel panics when booting qemu-system-x86_64 with kvm64 cpu. A panic occured while building the sched_domain. In sched_init_numa, we create a new topology table in which both default levels and numa levels are copied. The last row of the table must have a null pointer in the mask field. The current implementation doesn't add this last row in the computation of the table size. So we add 1 row in the allocation size that will be used as the last row of the table. The kzalloc will ensure that the mask field is NULL. Reported-by: Jet Chen <[email protected]> Tested-by: Jet Chen <[email protected]> Signed-off-by: Vincent Guittot <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions