]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Improve robustness of topology parsing code
authorStephane Eranian <eranian@google.com>
Wed, 14 Aug 2013 10:04:26 +0000 (12:04 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Aug 2013 14:42:53 +0000 (11:42 -0300)
commitc743333b5fe2c5cce91ba7f3c9c395492a921a1b
tree143ce6ecec02d49bc1d1cb1bf644c13bc996ea31
parent92bff15098eed064c39dd1ffda589a55500fb093
perf tools: Improve robustness of topology parsing code

This patch improves the robustness of the build_cpu_topo() routine by
allowing either the CPU parsing or the thread parsing to fail and yet
get perf to produce some topology data which could be useful for the
analysis.

Without this patch, if the cpu parsing fails, the thread parsing is not
attempted vice-versa.

Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20130814100426.GA3444@quad
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c