diff options
| author | David Rientjes <[email protected]> | 2011-02-07 14:08:53 -0800 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2011-02-14 13:29:27 +0100 |
| commit | 14392fd329eca9b59d51c0aa5d0acfb4965424d1 (patch) | |
| tree | 8008ec19841352f00ef82cdd338bae1fd5088245 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | b366801c95bdbeda811ac9668a3943051a18c188 (diff) | |
x86, numa: Add error handling for bad cpu-to-node mappings
CONFIG_DEBUG_PER_CPU_MAPS may return NUMA_NO_NODE when an
early_cpu_to_node() mapping hasn't been initialized. In such a
case, it emits a warning and continues without an issue but
callers may try to use the return value to index into an array.
We can catch those errors and fail silently since a warning has
already been emitted. No current user of numa_add_cpu()
requires this error checking to avoid a crash, but it's better
to be proactive in case a future user happens to have a bug and
a user tries to diagnose it with CONFIG_DEBUG_PER_CPU_MAPS.
Reported-by: Jesper Juhl <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Cc: Tejun Heo <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions