Messages in this thread Patch in this message | | | From | Jiri Olsa <> | Subject | [PATCH 4/4] perf tools: Make kmem work for non numa machines | Date | Thu, 12 Sep 2013 18:39:36 +0200 |
| |
The commit '2814eb0 perf kmem: Remove die() calls' disabled kmem command for machines without numa support. It made the command fail if '/sys/devices/system/node' dir wasn't found.
Skipping the numa based initialization in case the directory is not found and continue execution.
Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> --- tools/perf/builtin-kmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index c2dff9c..9b5f077 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c @@ -101,7 +101,7 @@ static int setup_cpunode_map(void) dir1 = opendir(PATH_SYS_NODE); if (!dir1) - return -1; + return 0; while ((dent1 = readdir(dir1)) != NULL) { if (dent1->d_type != DT_DIR || -- 1.7.11.7
| |