]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib symbol: Skip non-address kallsyms line
authorJiri Olsa <jolsa@kernel.org>
Thu, 15 Feb 2018 12:26:27 +0000 (13:26 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Feb 2018 17:25:56 +0000 (14:25 -0300)
commit470ab7dcac0dd4fcfbf343d0084a70b9f6da935c
treeffe56249f50fd1655934f65300c0f79e2ea2635b
parent435cdff128008cd65c636b3ad26ea085c064ef8a
tools lib symbol: Skip non-address kallsyms line

Adding check on failed attempt to parse the address and skip the line
parsing early in that case.

The address can be replaced with '(null)' string in case user don't have
enough permissions, like:

  $ cat /proc/kallsyms
      (null) A irq_stack_union
      (null) A __per_cpu_start
      ...

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180215122635.24029-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/symbol/kallsyms.c