perf symbols: Make a separate function to parse /proc/modules
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 8 Oct 2013 08:45:48 +0000 (11:45 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Oct 2013 15:17:57 +0000 (12:17 -0300)
commit316d70d6dbde540b275289563cbddd9f0c903fc6
treefdd1330b99d40d3a418ffa6e680fdd13660a6eec
parent2969b12993ca7a8b9692048431e075a67815002d
perf symbols: Make a separate function to parse /proc/modules

Make a separate function to parse /proc/modules so that it can be
reused.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1381221956-16699-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
tools/perf/util/symbol.c
tools/perf/util/symbol.h