perf symbols: Introduce map__is_(kernel,kmodule)()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 23 Jul 2015 14:06:16 +0000 (11:06 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 23 Jul 2015 14:28:36 +0000 (11:28 -0300)
commite6ce712634ea038ce42bbb11932b692696756882
treebdefdc3edf5cd341e5106ba344f8ae864ab5e1f1
parentb685ac22b436455db9c9c16b384d7aa4531cdd80
perf symbols: Introduce map__is_(kernel,kmodule)()

To, with members we already have, check if a kernel level map is for the
kernel proper or for a module.

Acked-by: David Ahern <dsahern@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-m5ic7h0z2crmtj7vi1a1rj3b@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/map.c
tools/perf/util/map.h